/* H2Oasis free-estimate scheduler — scoped under .h2o-schedule-root */
.h2o-schedule-root {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  text-transform: none;
}

html.h2o-dark .h2o-schedule-root {
  background: var(--h2o-surface, #1f2c4a);
  border-color: rgba(255, 255, 255, 0.08);
}

.h2os-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
html.h2o-dark .h2os-title { color: var(--h2o-ink, #f2f6fb); }

.h2os-sub {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}
html.h2o-dark .h2os-sub { color: var(--h2o-ink-soft, #c2ccdb); }

.h2os-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
html.h2o-dark .h2os-label { color: var(--h2o-ink-soft, #c2ccdb); }

.h2os-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
}
.h2os-input:focus {
  outline: none;
  border-color: #27b0cc;
  box-shadow: 0 0 0 3px rgba(39, 176, 204, 0.15);
}
/* Flatpickr marks the date field readonly; theme readonly resets strip its box —
   re-assert the input chrome at higher specificity so it matches the selects. */
input.h2os-input[readonly],
input.h2os-input.flatpickr-input {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
input.h2os-input[readonly]::placeholder { color: #64748b; opacity: 1; }
.h2os-textarea { resize: vertical; }

.h2os-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: #27b0cc;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.h2os-btn:hover { background: #1f93ac; }
.h2os-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.h2os-btn--ghost {
  background: transparent;
  color: #27b0cc;
  border: 1px solid #27b0cc;
  margin-right: 12px;
}
.h2os-btn--ghost:hover { background: rgba(39, 176, 204, 0.08); }

.h2os-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.h2os-error {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #dc2626;
  font-size: 0.85rem;
}

.h2os-turnstile { margin-top: 20px; }

/* TCPA consent checkbox. Legally this text has to be legible and adjacent to the box —
   it is deliberately NOT shrunk to fine print, and the whole row is a <label> so the
   text itself is a hit target. Fixed-size box so it can't be squashed by flex. */
.h2os-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
  cursor: pointer;
  text-transform: none;
}
.h2os-consent-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #27b0cc;
  cursor: pointer;
}
.h2os-consent-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
}
.h2os-consent-text a { text-decoration: underline; }
html.h2o-dark .h2os-consent-text { color: var(--h2o-ink-soft, #c2ccdb); }

/* Diagnostic-fee note sits under the service picker; warmer than .h2os-hint because it
   corrects the "Free Estimate" heading and must not read as decorative helper text. */
.h2os-diag-note { color: #b45309; }
html.h2o-dark .h2os-diag-note { color: #fbbf24; }

/* photo picker */
.h2os-hint {
  margin: 4px 0 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #0e7490;
}
html.h2o-dark .h2os-hint { color: #7dd3e8; }

.h2os-file { display: none; }

.h2os-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 2px;
}
.h2os-photo-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex: 0 0 auto;
}
html.h2o-dark .h2os-photo-thumb { border-color: rgba(255, 255, 255, 0.15); }
.h2os-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h2os-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h2os-photo-remove:hover { background: #dc2626; }

.h2os-photo-add {
  margin-top: 10px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.h2os-done { text-align: center; }
.h2os-done .h2os-btn { margin-top: 16px; }

/* flatpickr calendar — keep it legible in dusk mode */
html.h2o-dark .flatpickr-calendar {
  background: var(--h2o-surface, #1f2c4a);
  color: var(--h2o-ink, #f2f6fb);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.h2o-dark .flatpickr-day { color: var(--h2o-ink, #f2f6fb); }
html.h2o-dark .flatpickr-day.flatpickr-disabled { color: #5a6478; }
html.h2o-dark .flatpickr-months .flatpickr-month,
html.h2o-dark .flatpickr-current-month .flatpickr-monthDropdown-months,
html.h2o-dark .flatpickr-weekday { background: var(--h2o-surface, #1f2c4a); color: var(--h2o-ink, #f2f6fb); }
