/* WINN Residences — enquiry wizard */
html.wz-open, html.wz-open body { overflow: hidden; }

.wz {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: rgba(243, 239, 230, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.05); backdrop-filter: blur(18px) saturate(1.05);
  color: #5E534D; font-family: 'Jost', system-ui, sans-serif; font-weight: 300;
  opacity: 0; transition: opacity .5s ease;
}
.wz.on { opacity: 1; }
.wz[hidden] { display: none; }

.wz-bar { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 56px) 14px; }
.wz-mark { font-family: 'Cinzel', serif; font-weight: 700; font-size: .78rem; letter-spacing: .32em; color: #7C6C57; }
.wz-count { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #7A6C5E; }
.wz-close { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border: 0; background: none; color: #6B5F57; cursor: pointer; border-radius: 50%; transition: background .3s ease, color .3s ease; }
.wz-close:hover, .wz-close:focus-visible { background: rgba(255, 255, 255, .6); color: #5E534D; outline: none; }

.wz-progress { height: 1px; margin: 0 clamp(20px, 5vw, 56px); background: rgba(163, 152, 144, .25); }
.wz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E9DFCB, #BFAE8E);
  box-shadow: 0 0 10px rgba(255, 255, 255, .9); transition: width .9s cubic-bezier(.2, .7, .2, 1); }

.wz-stage { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 6vh, 64px) clamp(20px, 5vw, 56px) 40px; }
.wz-step { max-width: 680px; margin: 0 auto; }
.wz-step.out { opacity: 0; transform: translateY(-14px); filter: blur(6px); transition: all .32s ease; }
.wz-step.out-back { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: all .32s ease; }
.wz-step.in { animation: wzIn .75s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wzIn { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.wz-step.in > * { animation: wzIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.wz-step.in > *:nth-child(2) { animation-delay: .06s; } .wz-step.in > *:nth-child(3) { animation-delay: .12s; }
.wz-step.in > *:nth-child(4) { animation-delay: .18s; } .wz-step.in > *:nth-child(5) { animation-delay: .24s; }
.wz-step.in > *:nth-child(n+6) { animation-delay: .3s; }

.wz-title, .wz-intro h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; color: #5E534D; margin: 0 0 .6rem; }
.wz-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; color: #6B5F57; margin: 0 0 2.2rem; max-width: 34em; }

.wz-field { margin: 0 0 1.9rem; }
.wz-field.half { display: inline-block; width: calc(50% - 12px); vertical-align: top; }
.wz-field.half + .wz-field.half { margin-left: 20px; }
.wz-label { display: block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: #6B5F57; margin: 0 0 .85rem; font-weight: 400; }

.wz input[type=text], .wz input[type=email], .wz input[type=tel], .wz input[type=url], .wz textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(140, 128, 121, .35); background: transparent;
  font: 300 1.2rem/1.5 'Jost', system-ui, sans-serif; color: #4F4540; padding: .35rem 0 .55rem; border-radius: 0; transition: border-color .3s ease, box-shadow .3s ease;
}
.wz textarea { resize: vertical; min-height: 3.2em; }
.wz input::placeholder, .wz textarea::placeholder { color: #988B80; }
.wz input:focus, .wz textarea:focus { outline: none; border-bottom-color: #A8977A; box-shadow: 0 1px 0 #A8977A; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .card {
  font: inherit; color: #5E534D; cursor: pointer; border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, #FBF9F4, #F1ECE2);
  box-shadow: -2px -2px 5px rgba(255, 255, 255, .9), 3px 4px 10px rgba(140, 120, 95, .14);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, background .35s ease, color .35s ease;
}
.chip { border-radius: 999px; padding: .7rem 1.15rem; font-size: .98rem; line-height: 1.2; min-height: 44px; }
.chip:hover, .card:hover { transform: translateY(-2px); box-shadow: -2px -2px 6px #fff, 5px 8px 16px rgba(140, 120, 95, .18); }
.chip:focus-visible, .card:focus-visible, .stepper button:focus-visible, .rv:focus-visible, .wz-next:focus-visible, .wz-back:focus-visible { outline: 2px solid #BFAE8E; outline-offset: 3px; }
.chip[aria-pressed=true], .card[aria-pressed=true] {
  background: linear-gradient(180deg, #8F7F69, #7A6A55); color: #FFFDF8; border-color: #76664F;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px rgba(96, 80, 58, .28), 0 0 0 3px rgba(233, 223, 203, .7);
}
.card[aria-pressed=true] .t, .card[aria-pressed=true] .d { color: #FFFDF8; }
.chip[aria-pressed=true]::before { content: '\2713'; display: inline-block; margin-right: .5rem; font-weight: 400; }
.card[aria-pressed=true] .t::before { content: '\2713  '; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { text-align: left; border-radius: 18px; padding: 1.15rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; min-height: 96px; }
.card .t { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; line-height: 1.1; font-weight: 400; }
.card .d { font-size: .88rem; line-height: 1.45; color: #6B5F57; }

.stepper { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px; background: linear-gradient(180deg, #FBF9F4, #F1ECE2);
  box-shadow: inset 2px 2px 6px rgba(140, 120, 95, .12), inset -2px -2px 5px #fff; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font: 300 1.4rem/1 'Jost', sans-serif; color: #5E534D; background: #FBF9F4;
  box-shadow: -1px -1px 3px #fff, 2px 3px 6px rgba(140, 120, 95, .18); transition: transform .2s ease; }
.stepper button:active { transform: scale(.94); }
.stepper output { min-width: 2.6em; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: #4F4540; }

.filebox { display: flex; align-items: center; gap: .8rem; cursor: pointer; padding: 1rem 1.2rem; border-radius: 16px; border: 1px dashed rgba(140, 128, 121, .45); color: #6B5F57; transition: background .3s ease; }
.filebox:hover { background: rgba(255, 255, 255, .5); }
.filebox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filebox::before { content: '+'; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; background: #FBF9F4; box-shadow: -1px -1px 3px #fff, 2px 3px 6px rgba(140, 120, 95, .18); color: #5E534D; flex: none; }
.filebox:focus-within { outline: 2px solid #BFAE8E; outline-offset: 3px; }

.wz-err { display: none; margin: .6rem 0 0; font-size: .88rem; color: #9A6B55; }
.wz-field.err .wz-err, .consent.err + .wz-err { display: block; }
.wz-field.err input, .wz-field.err textarea { border-bottom-color: #C49A84; }
.wz-field.err .chips, .wz-field.err .cards { animation: wzNudge .5s ease; }
@keyframes wzNudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.send-err a, .wz-small a { color: #6E625B; }

.wz-nav { display: flex; justify-content: space-between; align-items: center; max-width: 680px; width: 100%; margin: 0 auto; padding: 14px clamp(20px, 5vw, 56px) max(22px, env(safe-area-inset-bottom)); }
.wz-back { border: 0; background: none; font: 400 .78rem 'Jost', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #6B5F57; cursor: pointer; padding: 14px 6px; }
.wz-back:hover { color: #5E534D; }
.wz-next { border: 1px solid rgba(255, 255, 255, .95); cursor: pointer; border-radius: 999px; padding: 1rem 2rem; min-height: 52px;
  font: 700 .82rem 'Cinzel', serif; letter-spacing: .26em; text-transform: uppercase; color: #5E534D;
  background: linear-gradient(180deg, #FFFEFB, #EFE9DE);
  box-shadow: -3px -3px 8px rgba(255, 255, 255, .95), 5px 7px 16px rgba(140, 120, 95, .22);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.wz-next:hover { transform: translateY(-2px); box-shadow: -3px -3px 8px #fff, 7px 11px 22px rgba(140, 120, 95, .26); }
.wz-next:disabled { opacity: .6; cursor: progress; }

.wz-intro { text-align: center; padding-top: 2vh; }
.wz-intro p { font-size: 1.1rem; line-height: 1.7; color: #6E625B; max-width: 30em; margin: 0 auto 1rem; }
.wz-small { font-size: .9rem !important; color: #6B5F57 !important; }
.wz-pearl { width: 120px; height: 120px; margin: 0 auto 2rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0%, #FBF8F1 22%, #EEE7DA 62%, #DCD0BB 100%);
  box-shadow: inset -10px -14px 26px rgba(150, 130, 100, .25), inset 8px 10px 20px rgba(255, 255, 255, .9), 0 24px 44px -18px rgba(120, 100, 76, .4);
  animation: pearl 7s ease-in-out infinite; }
.wz-pearl.big { width: 160px; height: 160px; }
@keyframes pearl { 50% { transform: translateY(-10px) scale(1.04); } }
.wz-done .wz-next { margin-top: 1.6rem; }

.rv { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; margin: 0 0 12px; padding: 1.1rem 1.3rem; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(251, 249, 244, .7); box-shadow: 3px 4px 12px rgba(140, 120, 95, .1); transition: background .3s ease; }
.rv:hover { background: #FFFEFB; }
.rv-h { display: flex; justify-content: space-between; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: .5rem; color: #4F4540; }
.rv-h em { font-style: normal; font-family: 'Jost', sans-serif; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #7A6C5E; align-self: center; }
.rv .r { display: flex; gap: 1rem; font-size: .92rem; line-height: 1.45; padding: .2rem 0; }
.rv .r span { color: #6B5F57; flex: 0 0 42%; }
.rv .r b { font-weight: 400; color: #4F4540; }
.consent { display: flex; gap: .8rem; align-items: flex-start; margin: 1.6rem 0 .4rem; font-size: .95rem; line-height: 1.5; color: #6E625B; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #A8977A; flex: none; }
.consent.err span { color: #9A6B55; }
.send-err { display: none; }

.spark { position: absolute; z-index: 2; width: 9px; height: 9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff, #E6DCC8 70%); box-shadow: 0 0 10px rgba(255, 255, 255, .95);
  animation: spark 1.4s ease-out both; }
@keyframes spark { from { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 15% { opacity: 1; } to { opacity: 0; transform: translate(var(--dx), -60px) scale(calc(var(--s) * .4)); } }

@media (max-width: 600px) {
  .rv .r { flex-direction: column; gap: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .wz-next { padding: .95rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wz-step.in, .wz-step.in > *, .wz-pearl, .spark { animation: none !important; }
  .wz-step.out, .wz-step.out-back { transition: none; }
}

/* "Other" free text */
.wz-other { margin-top: 1rem; }
.wz-other[hidden] { display: none; }

/* Multiple files */
.filebox { position: relative; }
.filebox.full { pointer-events: none; opacity: .55; }
.filelist { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.filelist li { display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .6); color: #4F4540; font-size: .95rem; }
.filelist li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist small { color: #6B5F57; font-size: .82rem; }
.filelist button { background: none; border: 0; color: #7A6A55; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .3rem; min-height: 32px; }
.wz-hint { margin: .7rem 0 0; font-size: .88rem; color: #6B5F57; }
.wz-field.wz-group { margin: 2.4rem 0 1.1rem; padding-top: 1.6rem; border-top: 1px solid rgba(124,108,87,.25); }
.wz-group-h { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; letter-spacing: 0; text-transform: none; color: #4F4540; margin: 0; font-weight: 400; }
