:root {
    --ub-gold: #c99a36;
    --ub-gold-hover: #b58729;
    --ub-black: #090909;
    --ub-charcoal: #171717;
    --ub-navy: #081a2c;
    --ub-white: #fff;
    --ub-cream: #f5f2eb;
    --ub-text: #202020;
    --ub-muted: #696969;
    --ub-radius: 5px;
    --ub-serif: Georgia, 'Times New Roman', serif;
    --ub-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ub-text); background: var(--ub-cream); font-family: var(--ub-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { border-radius: var(--ub-radius) !important; }
.funnel-page { min-width: 320px; }
.funnel-panel { animation: panelIn .48s ease both; }
.funnel-panel[hidden] { display: none !important; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; } }

.brand-logo { display: block; width: min(250px, 65vw); height: auto; object-fit: contain; }
.hero-panel { position: relative; min-height: 100svh; background: #2b2926 url('../images/wide-bathroom.png') center center / cover no-repeat; color: white; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,11,18,.86) 0%, rgba(3,11,18,.63) 42%, rgba(3,11,18,.17) 75%, rgba(3,11,18,.06) 100%), linear-gradient(0deg, rgba(3,11,18,.42), transparent 45%); }
.hero-inner { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(28px, 5vh, 58px); padding-bottom: clamp(45px, 8vh, 90px); }
.hero-copy { width: min(690px, 100%); margin-top: auto; }
.eyebrow { margin: 0 0 16px; color: #e4bd65; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.text-gold { color: #a67920 !important; }
h1, h2 { font-family: var(--ub-serif); font-weight: 400; letter-spacing: -.035em; }
h1 { margin: 0 0 20px; font-size: clamp(3rem, 6.7vw, 6.5rem); line-height: .96; text-wrap: balance; }
h2 { margin: 0 0 15px; color: var(--ub-navy); font-size: clamp(2.15rem, 4vw, 4.1rem); line-height: 1.04; text-wrap: balance; }
.hero-lede { max-width: 570px; margin-bottom: 30px; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.btn { min-height: 50px; padding: .82rem 1.5rem; border-radius: var(--ub-radius); font-weight: 700; letter-spacing: .065em; text-transform: uppercase; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { color: #101010; border-color: var(--ub-gold); background: var(--ub-gold); }
.btn-gold:hover, .btn-gold:focus { color: #080808; border-color: var(--ub-gold-hover); background: var(--ub-gold-hover); }
.btn-navy { color: white; border-color: var(--ub-navy); background: var(--ub-navy); }
.btn-navy:hover, .btn-navy:focus { color: white; border-color: #14334e; background: #14334e; }
.btn-outline-light-custom { color: white; border: 1px solid rgba(255,255,255,.64); background: transparent; }
.btn-outline-light-custom:hover, .btn-outline-light-custom:focus { color: var(--ub-navy); background: white; }
.btn-linkish { color: var(--ub-navy); border-color: transparent; background: transparent; text-decoration: none; }
.time-note { margin: 12px 0 0 4px; color: rgba(255,255,255,.67); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }

.question-panel { min-height: 100svh; background: white; }
.question-image { min-height: 280px; background: #ddd url('../images/Bathroom-435348756.png') center 37% / cover no-repeat; }
.question-image.timeline-image { background-image: url('../images/Modern Marble Spa Bathroom.png'); }
.question-content { display: flex; align-items: center; padding: clamp(30px, 6vw, 85px) max(20px, calc((100vw - 1320px)/2)); }
.question-wrap { width: 100%; max-width: 680px; margin: auto; }
.question-wrap .brand-logo { margin-bottom: clamp(35px, 6vh, 70px); }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--ub-muted); font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.progress-track { height: 2px; margin-bottom: clamp(34px, 5vh, 58px); background: #ddd9d1; }
.progress-track span { display: block; height: 100%; background: var(--ub-gold); }
.question-intro { margin-bottom: 28px; color: var(--ub-muted); font-size: 1rem; line-height: 1.7; }
.form-label { margin-bottom: 8px; color: #323232; font-size: .84rem; font-weight: 700; letter-spacing: .035em; }
.form-control { min-height: 54px; border: 1px solid #cbc8c0; background: #fdfdfc; box-shadow: none !important; font-size: 1rem; }
.form-control:focus { border-color: var(--ub-gold); }
.form-control.is-invalid { border-color: #9e352d; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; }
.form-actions .btn { min-width: 150px; }
.timeline-options { display: grid; gap: 10px; }
.option-card { position: relative; display: flex; align-items: center; min-height: 58px; margin: 0; border: 1px solid #cbc8c0; border-radius: var(--ub-radius); background: white; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.option-card:hover { border-color: var(--ub-gold); transform: translateX(2px); }
.option-card input { position: absolute; opacity: 0; }
.option-card span { display: flex; align-items: center; width: 100%; min-height: 58px; padding: 13px 52px 13px 18px; font-weight: 600; }
.option-card span::after { content: ''; position: absolute; right: 18px; width: 18px; height: 18px; border: 1px solid #aaa79f; border-radius: 3px; }
.option-card input:checked + span { color: var(--ub-navy); background: #f8f4e9; outline: 2px solid var(--ub-gold); outline-offset: -2px; }
.option-card input:checked + span::after { border: 5px solid var(--ub-navy); }
.option-card input:focus-visible + span { outline: 3px solid rgba(201,154,54,.45); }
.privacy-disclosure { margin: 22px 0 0; color: var(--ub-muted); font-size: .81rem; line-height: 1.55; }
.privacy-disclosure a { text-underline-offset: 2px; }
.form-alert { margin-top: 16px; padding: 13px 15px; border-left: 3px solid #a23a31; border-radius: var(--ub-radius); color: #7e2d26; background: #fbefed; font-size: .92rem; }

.choice-panel { position: relative; display: flex; align-items: center; min-height: 100svh; padding: 55px 0; color: white; background: var(--ub-navy) url('../images/Luxurious Navy-Tiled Bathroom Retreat.png') center / cover no-repeat; }
.choice-panel::before { content: ''; position: absolute; inset: 0; background: rgba(4,16,27,.86); }
.choice-inner { position: relative; z-index: 1; max-width: 830px; text-align: center; }
.choice-inner .brand-logo { margin-bottom: clamp(38px, 7vh, 75px); }
.choice-inner h2 { color: white; }
.choice-inner > p:not(.eyebrow) { max-width: 730px; margin: 0 auto; color: rgba(255,255,255,.77); font-size: 1.05rem; line-height: 1.75; }
.progress-meta.light { color: rgba(255,255,255,.64); }
.progress-track.light { background: rgba(255,255,255,.22); }
.progress-track.light span { width: 100%; }
.choice-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }

.booking-panel { min-height: 100svh; padding: clamp(30px, 5vw, 70px) 15px; background: var(--ub-cream); }
.booking-head { max-width: 780px; margin: auto; text-align: center; }
.booking-head .brand-logo { margin: 0 auto 42px; }
.booking-head p:last-child { color: var(--ub-muted); }
.calendar-shell { max-width: 1120px; margin: 35px auto 0; border: 1px solid #ddd7ca; border-radius: var(--ub-radius); background: white; box-shadow: 0 18px 50px rgba(8,26,44,.09); overflow: hidden; }
.calendar-shell iframe { display: block; width: 100%; min-height: 720px; border: 0; overflow: hidden; }
.calendar-fallback { padding: 22px; border-top: 1px solid #e4e0d7; text-align: center; }
.calendar-fallback p { margin-bottom: 12px; color: var(--ub-muted); }

.minimal-footer { padding: 20px 0; color: rgba(255,255,255,.65); background: #050e16; font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px 18px; }
.footer-links a, .footer-links button { padding: 0; border: 0; color: inherit; background: transparent; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: white; text-decoration: underline; }
.cookie-banner { position: fixed; z-index: 1050; right: 16px; bottom: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 25px; width: calc(100% - 32px); max-width: 1050px; max-height: calc(100vh - 32px); margin: auto; padding: 20px; border: 1px solid #d5d0c5; border-radius: var(--ub-radius); background: white; box-shadow: 0 14px 45px rgba(0,0,0,.2); overflow-y: auto; }
.cookie-banner > div:first-child { min-width: 0; }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner p { margin: 5px 0 0; color: var(--ub-muted); font-size: .85rem; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-actions .btn { min-height: 42px; padding: .55rem .9rem; font-size: .7rem; }
.cookie-modal { position: fixed; z-index: 1060; inset: 0; display: grid; place-items: center; padding: 15px; background: rgba(2,9,15,.7); }
.cookie-modal-card { position: relative; width: min(590px, 100%); max-height: 92vh; padding: clamp(24px, 5vw, 42px); border-radius: var(--ub-radius); background: white; overflow-y: auto; }
.cookie-modal-card h2 { font-size: 2.25rem; }
.cookie-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; color: #555; background: transparent; font-size: 1.7rem; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 17px 0; border-top: 1px solid #e2ded5; }
.cookie-row p { margin: 4px 0 0; color: var(--ub-muted); font-size: .84rem; }
.cookie-row > span { flex: 0 0 auto; color: var(--ub-muted); font-size: .76rem; }
.cookie-row input { width: 22px; height: 22px; accent-color: var(--ub-navy); }

.legal-page { background: white; }
.legal-header { padding: 25px 0; background: var(--ub-navy); }
.legal-header img { width: min(225px, 65vw); height: auto; }
.legal-main { max-width: 850px; min-height: 70vh; padding-top: clamp(50px, 8vw, 95px); padding-bottom: 80px; }
.legal-main h1 { color: var(--ub-navy); font-size: clamp(2.7rem, 7vw, 5rem); }
.legal-main h2 { margin-top: 38px; font-family: var(--ub-sans); font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.legal-main p, .legal-main li { color: #4e4e4e; line-height: 1.75; }
.legal-main .updated { color: var(--ub-muted); font-size: .86rem; }

@media (min-width: 992px) {
    .question-panel { display: grid; grid-template-columns: minmax(420px, 46%) minmax(0, 54%); }
    .question-image { min-height: 100svh; }
    .question-content { min-height: 100svh; padding: clamp(48px, 6vw, 92px) clamp(42px, 5vw, 100px); }
    .question-wrap { max-width: 760px; }
}
@media (max-width: 767.98px) {
    .hero-panel { background-position: 61% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(3,11,18,.82), rgba(3,11,18,.28)), linear-gradient(0deg, rgba(3,11,18,.72), transparent 58%); }
    .hero-inner { padding-inline: 22px; }
    h1 { font-size: clamp(2.75rem, 14vw, 4.25rem); }
    .question-image { min-height: 215px; }
    .question-content { padding: 27px 20px 45px; }
    .question-wrap .brand-logo { width: 210px; margin-bottom: 30px; }
    .progress-track { margin-bottom: 32px; }
    .choice-panel { padding-inline: 20px; }
    .choice-actions { flex-direction: column; }
    .choice-actions .btn { width: 100%; }
    .cookie-banner { align-items: stretch; flex-direction: column; gap: 14px; }
    .cookie-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; flex: none; }
    .cookie-actions .btn { min-width: 0; width: 100%; padding-inline: .45rem; white-space: normal; }
}
@media (max-width: 370px) {
    .question-content { padding-inline: 15px; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .progress-meta span:last-child { display: none; }
}
