/* Quote calculator: matches the homepage (light) and contact page (dark) forms. */
.dq {
  --dq-blue: #5BA3C7;
  --dq-text: #000;
  --dq-muted: #555;
  --dq-line: #ccc;
  --dq-field: #f9f9f9;
  --dq-tile: #fff;
  --dq-tile-on: #eef6fa;
  font-family: 'Lato', sans-serif;
  color: var(--dq-text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.dq[data-theme="dark"] {
  --dq-text: #ccc;
  --dq-muted: #777;
  --dq-line: #1e1e1e;
  --dq-field: #080808;
  --dq-tile: #080808;
  --dq-tile-on: #0d1a21;
}
.dq * { box-sizing: border-box; }
.dq-step { display: flex; flex-direction: column; gap: 0.6rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.dq-step > legend, .dq-label {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0.6rem;
}
.dq[data-theme="dark"] .dq-step > legend, .dq[data-theme="dark"] .dq-label {
  font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: #555;
}
.dq-num {
  display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; margin-right: 0.5rem;
  border-radius: 50%; background: var(--dq-blue); color: #000;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0;
}
.dq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.dq-tiles.dq-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 540px) { .dq-tiles.dq-3 { grid-template-columns: 1fr; } }
.dq-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 0.2rem; justify-content: center;
  min-height: 3.6rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--dq-line); border-radius: 4px; background: var(--dq-tile);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  font-size: 0.92rem; line-height: 1.3;
}
.dq-tile:hover { border-color: var(--dq-blue); }
.dq-tile input { position: absolute; opacity: 0; pointer-events: none; }
.dq-tile:has(input:checked) { border-color: var(--dq-blue); background: var(--dq-tile-on); box-shadow: inset 0 0 0 1px var(--dq-blue); }
.dq-tile:has(input:focus-visible) { outline: 2px solid var(--dq-blue); outline-offset: 2px; }
.dq-tile strong { font-weight: 700; }
.dq-tile small { color: var(--dq-muted); font-size: 0.8rem; }
.dq-price { color: var(--dq-blue); font-weight: 700; font-size: 0.85rem; }

.dq-addons { display: flex; flex-direction: column; gap: 0.5rem; }
.dq-addon {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  padding: 0.65rem 0.9rem; border: 1px solid var(--dq-line); border-radius: 4px; background: var(--dq-tile);
  cursor: pointer; font-size: 0.92rem;
}
.dq-addon:has(input[type=checkbox]:checked) { border-color: var(--dq-blue); background: var(--dq-tile-on); }
.dq-addon input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--dq-blue); margin: 0; }
.dq-addon span { flex: 1; min-width: 8rem; }
.dq .dq-addon select { width: auto; padding: 0.35rem 0.6rem; }

.dq-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.2rem; border-left: 3px solid var(--dq-blue); background: var(--dq-tile-on);
}
.dq-total .dq-amt { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--dq-text); }
.dq[data-theme="dark"] .dq-total .dq-amt { color: #fff; }
.dq-total p { margin: 0; font-size: 0.8rem; color: var(--dq-muted); flex-basis: 100%; }
.dq-lines { margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--dq-muted); flex-basis: 100%; }
.dq-lines li { display: flex; justify-content: space-between; gap: 1rem; }

.dq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .dq-row { grid-template-columns: 1fr; } }
.dq-field { display: flex; flex-direction: column; gap: 0.4rem; }
.dq-field label { font-weight: 700; font-size: 0.9rem; }
.dq[data-theme="dark"] .dq-field label { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: #555; }
.dq input[type=text], .dq input[type=tel], .dq input[type=email], .dq textarea, .dq select {
  width: 100%; padding: 0.85rem 0.9rem;
  border: 1px solid var(--dq-line); border-radius: 4px; background: var(--dq-field); color: var(--dq-text);
  font: inherit; font-size: 0.95rem;
}
.dq[data-theme="dark"] input, .dq[data-theme="dark"] textarea, .dq[data-theme="dark"] select { border-radius: 0; }
.dq input:focus, .dq textarea:focus, .dq select:focus { outline: none; border-color: var(--dq-blue); }
.dq textarea { min-height: 90px; resize: vertical; }
.dq select option { background: var(--dq-field); color: var(--dq-text); }

.dq-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 540px) { .dq-seg { grid-template-columns: 1fr; } }
.dq-days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }
.dq-day { flex: 0 0 auto; min-width: 4.4rem; text-align: center; padding: 0.5rem 0.4rem; }
.dq-day b { display: block; font-size: 1.15rem; }
.dq-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.5rem; }
.dq-time { min-height: 2.6rem; text-align: center; align-items: center; padding: 0.5rem; }
.dq-empty { font-size: 0.88rem; color: var(--dq-muted); margin: 0; }

.dq-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--dq-muted); line-height: 1.5; cursor: pointer; }
.dq-consent input { margin-top: 0.2rem; width: 1rem; height: 1rem; accent-color: var(--dq-blue); flex: 0 0 auto; }
.dq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.dq-submit {
  align-self: center;
  padding: 1rem 3rem;
  border: 2px solid #000; border-radius: 4px; background: transparent; color: #000;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: bold;
  cursor: pointer; transition: all 0.3s ease;
}
.dq-submit:hover:not(:disabled) { background: #000; color: #fff; transform: translateY(-2px); }
.dq[data-theme="dark"] .dq-submit {
  align-self: flex-start; border: none; border-radius: 0; background: var(--dq-blue); color: #000;
  font-family: inherit; font-size: 0.88rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
}
.dq[data-theme="dark"] .dq-submit:hover:not(:disabled) { background: #fff; color: #000; transform: none; }
.dq-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.dq-err { color: #c0392b; font-size: 0.9rem; margin: 0; min-height: 1.2em; text-align: center; }
.dq[data-theme="dark"] .dq-err { color: #ff8a80; text-align: left; }
.dq-note { font-size: 0.82rem; color: var(--dq-muted); margin: 0; text-align: center; }
.dq[data-theme="dark"] .dq-note { text-align: left; }
.dq-note a { color: var(--dq-blue); text-decoration: none; }

.dq-done { padding: 1.5rem; border-left: 3px solid var(--dq-blue); background: var(--dq-tile-on); line-height: 1.7; }
.dq-done strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--dq-text); }
.dq[data-theme="dark"] .dq-done strong { color: #fff; }
.dq-done a { color: var(--dq-blue); }
.dq [hidden] { display: none !important; }
/* Keep the calculator inside the page column on phones (the scrolling day picker must not widen it). */
.dq, .dq-step, .dq-days, #dq-when { min-width: 0; max-width: 100%; }
.ct-form-wrap:has(.dq), .contact-form-card:has(.dq) { min-width: 0; max-width: 100%; }
@media (max-width: 400px) { .contact-form-card:has(.dq) { padding: 1.5rem 1rem; } }

/* Booking page: who's booking, and a month calendar of open days. */
.dq-hello { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-left: 3px solid var(--dq-blue); background: var(--dq-tile-on); font-size: 0.92rem; }
.dq-cal { border: 1px solid var(--dq-line); border-radius: 4px; background: var(--dq-tile); padding: 0.8rem; max-width: 420px; }
.dq-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.dq-cal-head strong { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.dq-nav { width: 2.2rem; height: 2.2rem; border: 1px solid var(--dq-line); border-radius: 4px; background: var(--dq-field); color: var(--dq-text); font-size: 1.2rem; cursor: pointer; }
.dq-nav:hover:not(:disabled) { border-color: var(--dq-blue); }
.dq-nav:disabled { opacity: 0.3; cursor: default; }
.dq-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; text-align: center; }
.dq-dow { font-size: 0.72rem; font-weight: 700; color: var(--dq-muted); padding-bottom: 0.2rem; }
.dq-cday { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; font-size: 0.92rem; color: var(--dq-muted); opacity: 0.45; position: relative; }
.dq-cday.full { text-decoration: line-through; }
.dq-cday.open { opacity: 1; color: var(--dq-text); font-weight: 700; border: 1px solid var(--dq-blue); background: var(--dq-tile-on); cursor: pointer; }
.dq-cday.open:hover { background: var(--dq-blue); color: #000; }
.dq-cday input { position: absolute; opacity: 0; pointer-events: none; }
.dq-cday.open:has(input:checked) { background: var(--dq-blue); color: #000; }
.dq-cday:has(input:focus-visible) { outline: 2px solid var(--dq-blue); outline-offset: 2px; }

/* Booking-link form: what the link will let them do. */
.dq-intro { margin: 0; font-size: 0.95rem; color: var(--dq-text); line-height: 1.55; }
.dq-how { margin: 0 0 0.4rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.dq-how li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: var(--dq-muted); }
.dq-how li::before { content: '✓'; position: absolute; left: 0; color: var(--dq-blue); font-weight: 700; }

/* Booking page: two pages with a step indicator. */
.dq-steps { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.dq-steps li { flex: 1; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; border-bottom: 3px solid var(--dq-line); font-size: 0.85rem; font-weight: 700; color: var(--dq-muted); }
.dq-steps li span { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--dq-line); color: #000; font-size: 0.75rem; }
.dq-steps li.on { border-color: var(--dq-blue); color: var(--dq-text); }
.dq-steps li.on span, .dq-steps li.done span { background: var(--dq-blue); }
.dq-steps li.done { border-color: var(--dq-blue); }
.dq-link { background: none; border: 0; padding: 0.3rem 0; color: var(--dq-blue); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.dq-times > .dq-empty { grid-column: 1 / -1; }
