/* =============================================================
   contact.css — Contact page only (loaded after common.css)
   Sections: hero, schedule (details sidebar + form),
   What To Expect, contact footer.
   ============================================================= */

/* ---- Hero ---- */
.chero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.chero__bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background-image: url('../assets/contact/contact-background.webp');
  background-size: cover;
  background-position: center right;
  opacity: .9;
}
.chero__overlay {
  position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
      linear-gradient(90deg, var(--dark) 1%, rgba(15, 11, 8, .82) 5%, rgba(15, 11, 8, .3) 72%, rgba(15, 11, 8, .5) 100%),
      linear-gradient(0deg, var(--dark) 4%, rgba(15, 11, 8, 0) 34%);
  }
.chero__content {
  position: relative;
  z-index: 3;
  padding-top: 48px;
  padding-bottom: 52px;
  max-width: 700px;
}
.chero__content .eyebrow { margin-bottom: 18px; }
.chero__title {
  font-family: var(--serif);
  /* Fluid: scales down on smaller screens; capped at 44px on desktop.
     No white-space:nowrap, so it wraps gracefully rather than overflowing. */
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.5px;
}
.chero__lead {
  margin-top: 20px;
  max-width: 470px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
}
.chero__features { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.chero__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
}
.hf-icon { color: var(--gold); }
.hf-icon svg { width: 26px; height: 26px; }

/* ---- Schedule ---- */
.schedule { padding: 80px 0 90px; }
.schedule__grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }

/* Sidebar */
.details__card { background: #eee7db; border: 1px solid var(--line); padding: 30px 26px; }
.details__title { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 24px; }
.detail { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.detail:last-child { border-bottom: 0; }
.detail__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
}
.detail__icon svg { width: 20px; height: 20px; }
.detail h4 { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text); margin-bottom: 3px; }
.detail p { font-size: 14px; color: var(--muted); }

.talk { display: flex; gap: 16px; background: #eee7db; border: 1px solid var(--line); padding: 24px 26px; margin-top: 22px; }
.talk__icon { flex: none; color: var(--gold); margin-top: 2px; }
.talk h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.talk p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.talk__phone { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; color: var(--text); }
.talk__phone svg { color: var(--gold); }

/* Form */
.form__title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 16px 8px;          /* extra top room for the floating label */
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { padding-top: 24px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .14); }

/* The placeholder is intentionally blank (" ") so :placeholder-shown can
   detect an empty field; the visible cue is the floating <label>. */
.field > label {
  position: absolute;
  left: 16px;
  top: 17px;
  font-size: 14px;
  color: #9a948b;
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, color .15s ease;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field input[type="date"]:valid ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  top: 7px;
  font-size: 11px;
  letter-spacing: .3px;
  color: var(--gold);
}

/* ---- Date Input (Cross-Browser & iOS Safari Support) ---- */
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 53px;
  color-scheme: light;
  cursor: pointer;
  position: relative;
}

/* iOS Safari: Left-align date value properly */
.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.4em;
  margin: 0;
  padding: 0;
}

/* Hide date format placeholder when empty & not focused so floating label is clean */
.field input[type="date"]:not(:focus):invalid {
  color: transparent;
}
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit,
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit-fields-wrapper,
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit-text,
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit-month-field,
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit-day-field,
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit-year-field {
  color: transparent;
  opacity: 0;
}

/* Restore visible text when focused or filled */
.field input[type="date"]:focus,
.field input[type="date"]:valid {
  color: var(--text);
}
.field input[type="date"]:focus::-webkit-datetime-edit,
.field input[type="date"]:valid::-webkit-datetime-edit {
  color: var(--text);
  opacity: 1;
}

/* Expand the native calendar picker indicator across the entire input box on WebKit */
.field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.field--icon svg {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--gold); }
.consent a { color: var(--gold); font-weight: 500; }

.form__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.form__note svg { width: 15px; height: 15px; color: var(--gold); }

/* ---- What To Expect ---- */
.expect {
  background:
    radial-gradient(circle at 15% 25%, rgba(176, 141, 87, .12), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(176, 141, 87, .09), transparent 42%),
    var(--dark);
  color: #fff;
  padding: 84px 0 90px;
}
.expect .section-title { margin-bottom: 44px; }
.expect__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.expect__item { text-align: center; padding: 0 14px; }
.expect__icon { display: inline-grid; place-items: center; margin-bottom: 18px; color: var(--gold); transition: transform .45s var(--ease-lux); }
.expect__item:hover .expect__icon { transform: scale(1.14) translateY(-2px); }
.expect__icon svg { width: 38px; height: 38px; }
.expect__item h4 { font-size: 13px; font-weight: 700; letter-spacing: .8px; margin-bottom: 10px; }
.expect__item p { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .62); }

/* ---- Footer (contact variant) ---- */
.footer { background: var(--dark-2); }
.footer__grid--contact { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .schedule__grid { grid-template-columns: 1fr; gap: 36px; }
  .details__card,
  .talk { max-width: 520px; }
  .expect__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 40px; }
  .footer__grid--contact { grid-template-columns: 1fr 1fr; }
  .chero__bg { width: 100%; opacity: .35; }
}

@media (max-width: 760px) {
  .chero__features { gap: 22px 36px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid--contact { grid-template-columns: 1fr; }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* Prevents iOS Safari from auto-zooming into fields on focus */
  }
}

/* ---- Form validation states & success ---- */
.field--error input,
.field--error select,
.field--error textarea { border-color: #c0392b; }
.field--error input:focus,
.field--error select:focus,
.field--error textarea:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .14); }
.field__error { display: block; margin-top: 6px; font-size: 12px; color: #c0392b; }
.consent { flex-wrap: wrap; }
.consent.field--error .field__error { flex-basis: 100%; margin-top: 4px; }
.consent.field--error > span { color: #c0392b; }

.form__alert {
  display: none;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: all .25s ease;
}

.form__success { text-align: center; padding: 54px 20px; }
.form__success svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--gold); }
.form__success h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.form__success p { color: var(--muted); font-size: 15px; max-width: 380px; margin: 0 auto; }
