*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ak-ink:        #2F2B28;
  --ak-graphite:   #504B48;
  --ak-gold:       #DEC87F;
  --ak-gold-light: #EAD285;
  --ak-ivory:      #F9F1E8;
  --ak-sand:       #E5D3C7;
  --ak-white:      #FFFFFF;
  --ak-mist:       #D8D3C9;
  --ak-rose:       #D7BEB0;
  --ak-terracotta: #A98373;
  --ak-night:      #1E1B17;
  --radius-card:   20px;
  --radius-sm:     14px;
  --radius-pill:   999px;
  --shadow-soft:   0 4px 24px rgba(47,43,40,.08);
  --shadow-card:   0 1px 2px rgba(47,43,40,.04), 0 8px 24px rgba(47,43,40,.06);
  --font-title:    "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-ui:       "Inter", "Lato", system-ui, sans-serif;
}

html, body {
  min-height: 100vh;
  background: var(--ak-ivory);
  color: var(--ak-ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

/* ── Layout base ── */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Brand panel (desktop left) ── */
.brand-panel {
  display: none;
}

/* ── Form panel ── */
.form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: var(--ak-ivory);
  position: relative;
}

/* ── Ornamento de fondo ── */
.bg-ornament {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.bg-ornament svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 700px);
  height: auto;
  opacity: .04;
}

/* ── Header ── */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative; z-index: 1;
}
.logo-mark {
  display: inline-block;
  font-size: 1.8rem; line-height: 1;
  color: var(--ak-terracotta);
  margin-bottom: .5rem;
}
.site-header h1 {
  font-family: var(--font-title);
  font-size: 2.8rem; font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ak-ink);
  line-height: 1.05;
}
.site-header p {
  margin-top: .45rem;
  font-size: .82rem;
  color: var(--ak-graphite);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.header-divider {
  width: 40px; height: 1px;
  background: var(--ak-sand);
  margin: .9rem auto 0;
}

/* ── Card ── */
.card {
  background: var(--ak-white);
  border: 1px solid color-mix(in srgb, var(--ak-sand) 70%, transparent);
  border-radius: var(--radius-card);
  padding: 2rem;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-card);
  animation: fadeUp .45s ease both;
  position: relative; z-index: 1;
}

/* ── Form ── */
.form-group {
  margin-bottom: 1.2rem; position: relative;
}
label {
  display: block; margin-bottom: .4rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ak-graphite);
}
input[type="text"],
input[type="date"],
input[type="time"] {
  width: 100%; padding: .8rem 1rem;
  background: var(--ak-white);
  border: 1px solid var(--ak-sand);
  border-radius: var(--radius-sm);
  color: var(--ak-ink);
  font-family: var(--font-ui);
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  height: 52px;
}
input::placeholder { color: var(--ak-mist); }
input:focus {
  border-color: var(--ak-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ak-gold) 35%, transparent);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: opacity(.4);
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Autocomplete ── */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: var(--ak-white);
  border: 1px solid var(--ak-sand);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 220px; overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-soft);
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: .65rem 1rem; cursor: pointer;
  font-size: .88rem; color: var(--ak-ink);
  border-bottom: 1px solid rgba(229,211,199,.5);
  transition: background .12s;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--ak-ivory);
}
.autocomplete-item small {
  color: var(--ak-graphite); display: block; font-size: .75rem; margin-top: .1rem;
}

/* ── Submit ── */
.btn-submit {
  width: 100%; margin-top: .25rem;
  padding: 0 2rem; font-size: .88rem; font-weight: 600;
  letter-spacing: .04em;
  font-family: var(--font-ui);
  background: var(--ak-ink);
  border: none; border-radius: var(--radius-pill);
  color: var(--ak-ivory); cursor: pointer;
  height: 52px;
  box-shadow: 0 4px 20px rgba(47,43,40,.18);
  transition: background .2s, transform .15s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
}
.btn-submit:hover:not(:disabled) {
  background: var(--ak-graphite);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(47,43,40,.22);
}
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }
.btn-submit .spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(249,241,232,.3);
  border-top-color: var(--ak-ivory);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* ── Error ── */
.error-msg {
  margin-top: .9rem; padding: .7rem 1rem;
  background: rgba(169,131,115,.08);
  border: 1px solid rgba(169,131,115,.3);
  border-radius: var(--radius-sm);
  color: var(--ak-terracotta);
  font-size: .85rem; display: none;
}
.error-msg.show { display: block; }

/* ── Coords hint ── */
.coords-hint {
  margin-top: .4rem; font-size: .74rem;
  color: var(--ak-graphite); min-height: 1.2em;
}

/* ── Form divider ── */
.form-sep {
  border: none; border-top: 1px solid var(--ak-sand);
  margin: 1.4rem 0;
}

/* ── Footer ── */
.site-footer {
  margin-top: 1.5rem; text-align: center;
  color: var(--ak-graphite); font-size: .75rem;
  position: relative; z-index: 1;
}
.site-footer a {
  color: var(--ak-terracotta);
  text-decoration: none; font-weight: 500;
}
.site-footer a:hover { text-decoration: underline; }

/* ── Profile banner ── */
.profile-banner {
  width: 100%; max-width: 480px;
  margin-bottom: 1rem;
  padding: .9rem 1.2rem;
  background: var(--ak-white);
  border: 1px solid rgba(222,200,127,.35);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: .8rem;
  animation: fadeUp .4s ease both;
  position: relative; z-index: 1;
}
.profile-banner .pb-icon {
  font-size: 1.4rem; flex-shrink: 0; color: var(--ak-gold);
}
.profile-banner .pb-text { flex: 1; min-width: 0; }
.profile-banner .pb-text small {
  display: block; font-size: .65rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ak-graphite); margin-bottom: .1rem;
}
.profile-banner .pb-text strong {
  font-family: var(--font-title);
  font-size: 1.1rem; font-weight: 500;
  color: var(--ak-ink);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-banner .pb-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex-shrink: 0;
}
.profile-banner .btn-continue {
  padding: .45rem 1rem;
  background: var(--ak-ink);
  color: var(--ak-ivory);
  border: none; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer; text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.profile-banner .btn-continue:hover { background: var(--ak-graphite); }
.profile-banner .btn-clear {
  font-size: .7rem; color: var(--ak-graphite);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); padding: 0;
  text-decoration: underline;
}
.profile-banner .btn-clear:hover { color: var(--ak-terracotta); }

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   DESKTOP SPLIT PANEL
══════════════════════════════════════════════ */
@media (min-width: 860px) {
  html, body { background: var(--ak-ink); }

  .page-wrap {
    flex-direction: row;
    min-height: 100vh;
  }

  .brand-panel {
    display: flex;
    flex: 1;
    background: var(--ak-ink);
    color: var(--ak-ivory);
    position: relative;
    overflow: hidden;
    padding: 52px 56px;
    flex-direction: column;
    justify-content: space-between;
  }

  .brand-panel__wheel {
    position: absolute;
    right: -28%; bottom: -16%;
    width: 130%;
    opacity: .16;
    pointer-events: none;
  }

  .brand-panel__logo {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: .5rem;
  }
  .brand-panel__logo-mark {
    font-size: 1.3rem; color: var(--ak-gold);
  }
  .brand-panel__logo-text {
    font-family: var(--font-title);
    font-size: 1.3rem; font-weight: 500;
    letter-spacing: -.01em;
    color: var(--ak-gold);
  }

  .brand-panel__copy {
    position: relative; z-index: 1;
  }
  .brand-panel__eyebrow {
    font-size: .68rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: rgba(222,200,127,.65);
    margin-bottom: .6rem; display: block;
  }
  .brand-panel__headline {
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    font-weight: 500; font-style: italic;
    line-height: 1.05; letter-spacing: -.01em;
    color: var(--ak-ivory);
    margin: 0 0 1.2rem;
  }
  .brand-panel__sub {
    font-size: .9rem; line-height: 1.65;
    color: rgba(249,241,232,.6);
    max-width: 380px;
    margin: 0;
  }

  .brand-panel__footer {
    position: relative; z-index: 1;
    font-size: .72rem;
    color: rgba(249,241,232,.35);
  }

  .form-panel {
    flex: 1;
    background: var(--ak-ivory);
    overflow-y: auto;
    padding: 52px 64px;
    align-items: flex-start;
  }

  .form-panel-inner {
    width: 100%; max-width: 440px;
    margin: auto;
  }

  .bg-ornament { display: none; }

  .site-header {
    text-align: left;
    margin-bottom: 1.75rem;
  }
  .logo-mark { display: none; }
  .site-header h1 {
    font-size: 2.4rem;
  }

  .card { max-width: none; }
  .profile-banner { max-width: none; }
}

/* ── Responsive mobile ── */
@media (max-width: 480px) {
  .card { padding: 1.5rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-header h1 { font-size: 2.2rem; }
}

/* ═══════════════ MOBILE WIZARD ═══════════════ */
@media (max-width: 859px) {
  .page-wrap, .bg-ornament { display: none !important; }
}

#mobile-wizard { display: none; min-height: 100vh; flex-direction: column; }
@media (max-width: 859px) { #mobile-wizard { display: flex; } }

.wz-step { display: none; flex: 1; flex-direction: column; }
.wz-step.active { display: flex; }

/* Splash */
.wz-splash {
  flex: 1; display: flex; flex-direction: column;
  background: var(--ak-night, #1E1B17);
  padding: 2.5rem 2rem 3rem;
  position: relative; overflow: hidden;
}
.wz-splash-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110%; pointer-events: none; opacity: .06;
}
.wz-splash-logo {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ak-gold); display: flex; align-items: center; gap: .4rem;
  position: relative; z-index: 1; margin-bottom: auto;
}
.wz-splash-headline {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 9vw, 3.2rem); font-weight: 500; font-style: italic;
  line-height: 1.08; color: var(--ak-ivory);
  margin: 2rem 0 1.25rem; position: relative; z-index: 1;
}
.wz-splash-sub {
  font-size: .9rem; line-height: 1.65; color: rgba(249,241,232,.6);
  margin-bottom: 2rem; position: relative; z-index: 1;
}
.wz-splash-actions { position: relative; z-index: 1; }
.wz-btn-gold {
  width: 100%; padding: 1rem; background: var(--ak-gold);
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: .9rem; font-weight: 700;
  color: var(--ak-ink); cursor: pointer; margin-bottom: .75rem;
  transition: background .15s;
}
.wz-btn-gold:hover { background: var(--ak-gold-light); }
.wz-btn-ghost {
  width: 100%; padding: .85rem; background: transparent;
  border: 1px solid rgba(249,241,232,.25); border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
  color: rgba(249,241,232,.7); cursor: pointer; transition: border-color .15s;
}
.wz-btn-ghost:hover { border-color: rgba(249,241,232,.5); }

/* Form steps */
.wz-form-step {
  flex: 1; display: flex; flex-direction: column;
  background: var(--ak-ivory); padding: 1.75rem 1.5rem 2.5rem;
}
.wz-progress { display: flex; gap: .4rem; margin-bottom: 2rem; }
.wz-progress-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--ak-sand); }
.wz-progress-bar.filled { background: var(--ak-ink); }
.wz-step-eyebrow {
  font-size: .65rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ak-graphite); margin-bottom: .5rem;
}
.wz-step-heading {
  font-family: var(--font-title); font-size: 2rem; font-weight: 500;
  line-height: 1.1; color: var(--ak-ink); margin-bottom: .55rem;
}
.wz-step-sub {
  font-size: .85rem; line-height: 1.6; color: var(--ak-graphite); margin-bottom: 1.75rem;
}
.wz-input {
  width: 100%; padding: .85rem 1rem; background: var(--ak-white);
  border: 1px solid var(--ak-sand); border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 1rem; color: var(--ak-ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.wz-input:focus {
  border-color: var(--ak-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ak-gold) 30%, transparent);
}
.wz-input::placeholder { color: var(--ak-mist); }
select.wz-input { cursor: pointer; }

.wz-field-label {
  font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ak-graphite); margin-bottom: .4rem; display: block;
}
.wz-date-row { display: grid; grid-template-columns: 1fr 2fr 1.5fr; gap: .5rem; margin-bottom: 1.25rem; }
.wz-time-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; margin-bottom: .85rem; }
.wz-time-sep { font-size: 1.3rem; color: var(--ak-graphite); text-align: center; }
.wz-no-time-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .83rem; color: var(--ak-graphite); cursor: pointer; margin-bottom: 1.75rem;
}
.wz-no-time-label input { width: 16px; height: 16px; accent-color: var(--ak-ink); flex-shrink: 0; }

/* Location results */
.wz-loc-results { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; max-height: 240px; overflow-y: auto; }
.wz-loc-result {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .8rem 1rem; background: var(--ak-white);
  border: 1.5px solid var(--ak-sand); border-radius: 12px;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.wz-loc-result.selected { border-color: var(--ak-ink); background: color-mix(in srgb, var(--ak-ink) 4%, var(--ak-white)); }
.wz-loc-result input[type="radio"] { accent-color: var(--ak-ink); flex-shrink: 0; margin-top: .15rem; }
.wz-loc-result-text { flex: 1; min-width: 0; }
.wz-loc-result-name { font-size: .88rem; font-weight: 500; color: var(--ak-ink); }
.wz-loc-result-sub { font-size: .72rem; color: var(--ak-graphite); margin-top: .1rem; }
.wz-loc-result-coords { font-size: .68rem; color: var(--ak-graphite); font-family: monospace; white-space: nowrap; }

/* Footer / CTA */
.wz-footer { margin-top: auto; padding-top: 1.5rem; }
.wz-btn-continue {
  width: 100%; padding: 1rem; background: var(--ak-ink);
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: .9rem; font-weight: 600;
  color: var(--ak-ivory); cursor: pointer; transition: background .15s;
}
.wz-btn-continue:hover:not(:disabled) { background: var(--ak-graphite); }
.wz-btn-continue:disabled { opacity: .5; cursor: not-allowed; }
.wz-error { font-size: .82rem; color: var(--ak-terracotta); text-align: center; margin-top: .75rem; min-height: 1.2em; }
