:root{
  --navy:#0E2A5A;
  --navy-deep:#091C3F;
  --gold:#B98A3E;
  --gold-light:#D9B877;
  --gold-dark:#8A5F1E;
  --ink:#1B2437;
  --muted:#5D6678;
  --line:#E3E7EF;
  --tint:#F4F6FA;
  --gold-line:linear-gradient(90deg,var(--gold-light),var(--gold-dark),var(--gold-light));
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  font-family:'Jost',system-ui,sans-serif;color:var(--ink);background:#fff;
  line-height:1.6;min-height:100vh;min-height:100dvh;
}
h2{font-family:'Playfair Display',Georgia,serif;font-weight:600;color:var(--navy);line-height:1.2;letter-spacing:-.01em}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold-light);outline-offset:2px}

/* ========== Close button (top right) ========== */
.close-btn{
  position:fixed;z-index:50;
  top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));
  width:46px;height:46px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
  background:#fff;color:var(--navy);
  border:1.5px solid var(--gold);
  box-shadow:0 6px 18px -6px rgba(9,28,63,.45);
  transition:background .2s,color .2s,transform .2s;
}
.close-btn svg{width:20px;height:20px}
.close-btn:hover{background:var(--navy);color:#fff;transform:rotate(90deg)}

/* ========== Layout: full screen split ========== */
.app{display:grid;grid-template-columns:minmax(340px,42%) 1fr;min-height:100vh;min-height:100dvh}

/* ----- Left brand panel ----- */
.brand{
  background:
    radial-gradient(circle at 100% 0,rgba(185,138,62,.2),transparent 55%),
    linear-gradient(165deg,var(--navy),var(--navy-deep));
  color:#E7ECF6;
  padding:clamp(28px,5vw,64px);
  padding-left:max(clamp(28px,5vw,64px),env(safe-area-inset-left));
  display:flex;flex-direction:column;justify-content:center;gap:34px;
  position:relative;
}
.brand::after{content:"";position:absolute;right:0;top:12%;bottom:12%;width:2px;background:linear-gradient(180deg,transparent,var(--gold),transparent)}
.logo-card{background:#fff;border-radius:8px;padding:14px 18px;width:min(100%,380px);box-shadow:0 18px 40px -18px rgba(0,0,0,.5)}
.logo-card img{display:block;width:100%;height:auto}
.brand h2{color:#fff;font-size:clamp(1.9rem,3.4vw,2.8rem)}
.rule{height:2px;width:140px;background:var(--gold-line);border:0;margin:16px 0 18px}
.brand p{color:#B9C4DA;max-width:42ch}
.points{list-style:none;display:grid;gap:18px}
.points li{display:flex;gap:14px;align-items:flex-start;font-size:.98rem}
.points .ico{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid rgba(217,184,119,.6);display:grid;place-items:center;color:var(--gold-light)}
.points svg{width:18px;height:18px}
.points b{display:block;color:var(--gold-light);font-weight:500}

/* ----- Right booking panel ----- */
.book{
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(24px,5vw,64px);
  padding-right:max(clamp(24px,5vw,64px),env(safe-area-inset-right));
  padding-bottom:max(clamp(24px,5vw,64px),env(safe-area-inset-bottom));
  background:#fff;
}
.book-inner{width:100%;max-width:640px;margin:0 auto}

/* progress */
.progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.progress span{height:4px;border-radius:4px;background:var(--line);overflow:hidden;position:relative}
.progress span::after{content:"";position:absolute;inset:0;background:var(--gold-line);transform:scaleX(0);transform-origin:left;transition:transform .4s}
.progress span.on::after{transform:scaleX(1)}
.stepname{font-size:.9rem;color:var(--muted);margin-bottom:22px}
.stepname b{color:var(--navy);font-weight:600}

.step{display:none}
.step.active{display:block;animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.step h2{font-size:clamp(1.5rem,2.6vw,1rem);margin-bottom:6px}
.step > .sub{color:var(--muted);margin-bottom:22px;font-size:.98rem}
.group-title{font-family:'Playfair Display',serif;font-weight:600;color:var(--navy);font-size:1.05rem;margin:22px 0 10px}

/* concern cards */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.opt{position:relative;display:block}
.opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer;z-index:1}
.opt .box{
  display:flex;align-items:center;gap:12px;min-height:60px;padding:12px 14px;
  border:1.5px solid var(--line);border-radius:6px;background:#fff;
  transition:border-color .2s,background .2s,box-shadow .2s;
}
.opt .box svg{flex:none;width:22px;height:22px;color:var(--gold)}
.opt .box span{font-weight:500;color:var(--navy);line-height:1.25;font-size:.96rem}
.opt input:checked + .box{border-color:var(--gold);background:#FBF5E8;box-shadow:0 0 0 3px rgba(185,138,62,.18)}
.opt input:focus-visible + .box{outline:3px solid var(--gold-light);outline-offset:2px}

/* fields */
.field{margin-bottom:16px}
.field label{display:block;font-size:.9rem;font-weight:500;color:var(--navy);margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;min-height:50px;padding:12px 14px;font-size:16px; /* 16px stops iOS zoom */
  background:var(--tint);border:1px solid var(--line);border-bottom:2px solid var(--line);border-radius:5px;
  transition:border-color .2s,background .2s;
}
.field textarea{min-height:100px;resize:vertical}
.field input:focus,.field textarea:focus{background:#fff;border-bottom-color:var(--gold);outline:none;box-shadow:0 0 0 3px rgba(185,138,62,.22)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* time slots */
.slots-head{font-size:.9rem;color:var(--muted);margin:18px 0 4px}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px;margin-top:8px}
.slot{position:relative}
.slot input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer;z-index:1}
.slot span{display:block;text-align:center;padding:11px 6px;border:1.5px solid var(--line);border-radius:5px;font-weight:500;font-size:.94rem;color:var(--navy);transition:.2s}
.slot input:checked + span{background:linear-gradient(135deg,var(--navy),var(--navy-deep));color:#fff;border-color:var(--navy)}
.slot input:focus-visible + span{outline:3px solid var(--gold-light);outline-offset:2px}
.empty{padding:16px;background:#FBF5E8;border-left:4px solid var(--gold);border-radius:4px;color:var(--navy);font-weight:500}

.check{display:flex;gap:10px;align-items:flex-start;font-size:.9rem;color:var(--muted);margin:6px 0 4px}
.check input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--navy)}

.error{display:none;margin-top:14px;padding:12px 14px;border-left:4px solid #B3261E;background:#FDEDEC;color:#8C1D18;border-radius:4px;font-size:.92rem}
.error.show{display:block}

/* buttons */
.actions{display:flex;gap:12px;margin-top:26px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:0 28px;border-radius:5px;border:1.5px solid transparent;
  font-weight:500;font-size:1rem;cursor:pointer;text-decoration:none;
  transition:transform .2s,filter .2s,background .2s,color .2s;
}
.btn.gold{flex:1;background:linear-gradient(135deg,var(--gold-light),var(--gold) 55%,var(--gold-dark));color:#fff}
.btn.gold:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn.ghost{background:#fff;border-color:var(--navy);color:var(--navy)}
.btn.ghost:hover{background:var(--navy);color:#fff}
.btn svg{width:19px;height:19px}

/* success */
.done{text-align:center}
.tick{width:72px;height:72px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold-light),var(--gold-dark));color:#fff}
.tick svg{width:34px;height:34px}
.summary{margin:24px 0;text-align:left;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:6px;overflow:hidden}
.summary div{display:flex;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid var(--line);font-size:.97rem}
.summary div:last-child{border:0}
.summary dt{color:var(--muted)}
.summary dd{font-weight:500;color:var(--navy);text-align:right}
.done .actions{flex-direction:column}
.done .actions .btn{width:100%}

/* ========== Responsive ========== */
@media (max-width:991px){
  .app{grid-template-columns:1fr}
  .brand{padding:22px 20px 26px;gap:16px;align-items:flex-start;padding-top:max(22px,env(safe-area-inset-top))}
  .brand::after{display:none}
  .logo-card{width:min(100%,300px);padding:10px 14px}
  .brand h2{font-size:1.7rem}
  .brand .rule{margin:10px 0 12px;width:110px}
  .points{display:none}  /* keeps phone screens focused on booking */
  .book{justify-content:flex-start;padding:26px 18px 34px}
}
@media (max-width:480px){
  .cards{grid-template-columns:1fr}
  .row2{grid-template-columns:1fr}
  .slots{grid-template-columns:repeat(3,1fr);gap:8px}
  .slot span{font-size:.88rem;padding:11px 2px}
  .actions{flex-direction:column-reverse}
  .actions .btn{width:100%}
  .summary div{flex-direction:column;gap:2px}
  .summary dd{text-align:left}
}
@media (max-width:340px){
  .slots{grid-template-columns:repeat(2,1fr)}
  .brand h2{font-size:1.45rem}
}
@media (max-height:560px) and (min-width:992px){.brand{justify-content:flex-start}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}