/* ============================================================
   O Eyecare — 2026 UI Renewal · Appointment flow styles
   (register / review / confirm). New file; never edit the shared
   oeyecare-2026.css. Loaded by layout_appointment.jsp.
   Design source: _delivery/ui_kits/website/booking.html · booking-page.jsx
   ============================================================ */

/* ------------------------------------------------------------
   Solid header (light form page) — same technique as siblings.
   ------------------------------------------------------------ */
.oe-appt-page .oe-header {
  background: rgba(246, 241, 233, .92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.oe-appt-page .oe-header .oe-nav__link,
.oe-appt-page .oe-header .oe-nav__caret,
.oe-appt-page .oe-header .oe-header__phone,
.oe-appt-page .oe-header .oe-lang__toggle,
.oe-appt-page .oe-header .oe-header__burger {
  color: var(--ink-900);
}
.oe-appt-page .oe-header .oe-brand__tag { color: var(--text-muted); }
.oe-appt-page .oe-header .oe-brand__logo--white { display: none; }
.oe-appt-page .oe-header .oe-brand__logo--ink { display: block; }
.oe-appt-page .oe-header .oe-header__book { color: var(--ink-900); border-color: var(--ink-900); }
.oe-appt-page .oe-header .oe-header__book:hover { background: var(--ink-900); color: #fff; }

/* ------------------------------------------------------------
   Section + page heading
   ------------------------------------------------------------ */
.oe-appt {
  background: var(--surface-page);
  padding: 128px 0 80px;
}
.oe-appt__wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}
.oe-appt__head { margin-bottom: 34px; }
.oe-appt__eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 16px;
}
.oe-appt__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.oe-appt__lede {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 16px 0 0;
  max-width: 620px;
}

/* two-column layout: form/content + contact aside */
.oe-appt__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

/* ------------------------------------------------------------
   Form (step 1)
   ------------------------------------------------------------ */
.oe-appt__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.oe-appt__form-heading {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.oe-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.oe-field { display: flex; flex-direction: column; gap: 8px; }
.oe-field__label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.oe-field__control {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.oe-field__control:focus {
  outline: none;
  border-color: var(--clay-500);
  box-shadow: 0 0 0 3px var(--focus-ring, rgba(191,106,69,.2));
}
.oe-field__control--area { resize: vertical; min-height: 108px; line-height: 1.6; }
select.oe-field__control { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%237a7061' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}
.oe-field__error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--eb-500, #c0392b);
  margin-top: 2px;
}
.oe-appt__actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Review (step 2) — read-only card
   ------------------------------------------------------------ */
.oe-review__card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.oe-review__label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.oe-review__value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 6px;
  word-break: break-word;
}
.oe-review .oe-appt__actions { margin-top: 32px; }

/* ------------------------------------------------------------
   Complete (step 3) — thank-you card
   ------------------------------------------------------------ */
.oe-complete__card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  margin-top: 28px;
}
.oe-complete__check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.oe-complete__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.oe-complete__p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 16px 0 0;
}
.oe-complete__p--muted { color: var(--text-muted); margin-top: 18px; }

/* ------------------------------------------------------------
   Contact aside (all steps)
   ------------------------------------------------------------ */
.oe-appt__aside { display: flex; flex-direction: column; gap: 26px; }
.oe-appt__aside--complete { margin-top: 150px; }
.oe-appt__aside-block--divider { border-top: 1px solid var(--border-subtle); padding-top: 22px; }
.oe-appt__aside-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 8px;
}
.oe-appt__aside-strong {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}
.oe-appt__aside-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-900);
}
.oe-appt__aside-addr {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Responsive ( <= 900px ) — collapse to single column
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .oe-appt__grid { grid-template-columns: 1fr; gap: 40px; }
  .oe-appt__aside--complete { margin-top: 0; }
}
@media (max-width: 760px) {
  .oe-appt { padding-top: 112px; }
  .oe-appt__wrap { padding: 0 20px; }
  .oe-appt__title { font-size: 32px; }
  .oe-form-row { grid-template-columns: 1fr; gap: 22px; }
}

/* ------------------------------------------------------------
   "Sending" overlay — shown once on first submit (JS toggles .is-active).
   Gives feedback + visually blocks a second click. i18n text via appt2.submitting.
   ------------------------------------------------------------ */
.oe-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(8, 44, 70, 0.55);      /* brand #082C46 tint */
  backdrop-filter: blur(2px);
}
.oe-submit-overlay.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.oe-submit-overlay__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 34px 44px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(8, 44, 70, 0.28);
  text-align: center;
}
.oe-submit-overlay__spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(8, 44, 70, 0.15);
  border-top-color: #f1a56d;             /* brand accent */
  animation: oe-submit-spin 0.8s linear infinite;
}
.oe-submit-overlay__text {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #082C46;
}
@keyframes oe-submit-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .oe-submit-overlay__spinner { animation-duration: 1.6s; }
}

/* ============================================================
   Date picker (oeyecare-appointment-2026.js · initDatePicker)
   Popup calendar with month + year dropdowns, themed to the 2026 kit.
   ============================================================ */
.oe-dp {
  position: fixed;
  z-index: 1000;
  display: none;
  width: 288px;
  padding: 14px;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-subtle, #ddd9cf);
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-card, 0 20px 50px rgba(20, 16, 12, .16));
  font-family: var(--font-body);
}
.oe-dp.is-open { display: block; }
.oe-dp__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.oe-dp__nav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-subtle, #ddd9cf);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-900, #14100c);
}
.oe-dp__nav:hover { background: var(--surface-cream, #ece9e1); }
.oe-dp__selects { flex: 1 1 auto; display: flex; gap: 6px; }
.oe-dp__sel {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-label);
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--border-subtle, #ddd9cf);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900, #14100c);
  cursor: pointer;
}
.oe-dp__sel--m { flex: 1.5; }
.oe-dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.oe-dp__dow {
  text-align: center;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-muted, #6b645a);
  padding: 4px 0;
}
.oe-dp__days { margin-top: 2px; }
.oe-dp__day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary, #3a3128);
}
.oe-dp__day:hover:not(.is-disabled) { background: var(--surface-cream, #ece9e1); }
.oe-dp__day.is-muted { color: var(--border-subtle, #ddd9cf); }
.oe-dp__day.is-today { box-shadow: inset 0 0 0 1px var(--gold-500, #a08c6a); color: var(--ink-900, #14100c); }
.oe-dp__day.is-selected,
.oe-dp__day.is-selected:hover { background: var(--clay-500, #bf6a45); color: #fff; }
.oe-dp__day.is-disabled { color: var(--border-subtle, #ddd9cf); cursor: default; }
