/* Stratosphere Living — Client Portal
   Dark luxury: deep Caribbean navy, rich gold, turquoise. Matches the marketing site. */

:root {
    --navy: #0f3048;
    --navy-deep: #0a2233;
    --navy-light: #17456a;
    --gold: #c9a253;
    --gold-light: #dcbd7e;
    --aqua: #7ccdc9;
    --aqua-light: #a3ddda;
    --text: #eaf3f5;
    --text-muted: #9db4c0;
    --surface: #0e2b40;
    --border: rgba(201, 162, 83, 0.25);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--sans);
    font-weight: 300;
    background: var(--navy-deep);
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.serif { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1.serif { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); margin: 0.4rem 0 1rem; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; }

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 0.4rem;
}

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; gap: 0.1rem; }
.wordmark-top { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.35em; color: var(--text); }
.wordmark-bottom { font-family: var(--serif); font-size: 0.62rem; letter-spacing: 0.62em; color: var(--gold); margin-left: 0.3em; }
.wordmark-sm .wordmark-top { font-size: 0.95rem; }
.wordmark-sm .wordmark-bottom { font-size: 0.5rem; }

/* ---------- bare (auth) pages ---------- */
body.bare { display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.bare-wrap { width: 100%; max-width: 460px; text-align: center; display: flex; flex-direction: column; gap: 1.6rem; align-items: center; }
.bare-wrap .card { width: 100%; text-align: left; }
.bare-wrap .card.center { text-align: center; }
.card.card-wide { max-width: 640px; }
body.bare:has(.card-wide) .bare-wrap { max-width: 640px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.4rem 2.2rem;
}
.card .muted { margin-bottom: 1.4rem; }

/* ---------- portal shell ---------- */
.portal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5vw;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 34, 51, 0.92);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
}
.portal-nav nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.portal-nav nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}
.portal-nav nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-logout button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-logout button:hover { color: var(--gold-light); }

.portal-main { max-width: 1060px; margin: 0 auto; padding: 2.5rem 5vw 5rem; }

.portal-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--gold);
    background: none;
    color: var(--gold-light);
}
.btn:hover { background: var(--gold); color: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.68rem; }

/* ---------- forms ---------- */
label { display: block; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin: 1.1rem 0 0.35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"],
input[type="password"], select, textarea {
    width: 100%;
    background: rgba(10, 34, 51, 0.6);
    border: 1px solid rgba(157, 180, 192, 0.3);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
select { appearance: none; }
select option { background: var(--navy-deep); }
form .btn { margin-top: 1.6rem; }
input[type="file"] { color: var(--text-muted); padding: 0.6rem 0; }
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

fieldset { border: 1px solid var(--border); padding: 1.4rem 1.6rem 1.8rem; margin-bottom: 1.8rem; }
legend { padding: 0 0.8rem; font-size: 1.15rem; color: var(--gold-light); }

.choice-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
.chip input { position: absolute; opacity: 0; }
.chip span {
    display: inline-block;
    border: 1px solid rgba(157, 180, 192, 0.35);
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: all 0.25s;
}
.chip input:checked + span { border-color: var(--gold); color: var(--gold-light); background: rgba(201, 162, 83, 0.12); }
.chip input:focus-visible + span { outline: 2px solid var(--aqua); }

.check-line { display: flex; gap: 0.7rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--text); margin-top: 1.2rem; }
.check-line input { width: auto; margin-top: 0.3rem; }

/* ---------- flash ---------- */
.flash { padding: 0.9rem 1.2rem; margin-bottom: 1.5rem; font-size: 0.92rem; border: 1px solid; }
.flash-error { border-color: #b3564d; color: #e8a49e; background: rgba(179, 86, 77, 0.12); }
.flash-success { border-color: var(--aqua); color: var(--aqua-light); background: rgba(124, 205, 201, 0.08); }

/* ---------- journey ---------- */
.journey-hero {
    background-size: cover;
    background-position: center;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
}
.hero-dates { color: var(--aqua-light); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.8rem; }

.journey-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 auto 3rem;
    max-width: 820px;
}
.journey-steps::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: rgba(157, 180, 192, 0.3);
}
.step { position: relative; text-align: center; flex: 1; }
.step-dot {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: var(--navy-deep);
    position: relative;
    z-index: 1;
    transition: all 0.4s;
}
.step.done .step-dot { background: var(--aqua); border-color: var(--aqua); }
.step.current .step-dot { background: var(--gold); border-color: var(--gold-light); box-shadow: 0 0 0 5px rgba(201, 162, 83, 0.25); }
.step-label { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.step.current .step-label { color: var(--gold-light); }
.step.done .step-label { color: var(--aqua-light); }
@media (max-width: 640px) {
    .journey-steps { flex-direction: column; gap: 1rem; align-items: flex-start; margin-left: 0.5rem; }
    .journey-steps::before { left: 7px; right: auto; top: 4%; bottom: 4%; width: 1px; height: auto; }
    .step { display: flex; align-items: center; gap: 1rem; text-align: left; }
    .step-dot { margin: 0; }
}

.next-action {
    border: 1px solid var(--gold);
    background: rgba(201, 162, 83, 0.07);
    text-align: center;
    padding: 2.2rem 1.5rem;
    margin-bottom: 2.5rem;
}
.next-action .lead { margin: 0.4rem 0 1.4rem; font-family: var(--serif); font-size: 1.35rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.tile {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.6rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.3s, transform 0.3s;
}
.tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.tile p:last-child { font-size: 0.92rem; color: var(--text-muted); }

.key-dates { max-width: 480px; margin: 0 auto; text-align: center; }
.key-dates ul { list-style: none; margin-top: 0.6rem; }
.key-dates li { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid rgba(157, 180, 192, 0.15); }
.key-dates li span:last-child { color: var(--gold-light); }

/* ---------- pages ---------- */
.page-head { text-align: center; margin-bottom: 2.5rem; }
.pref-form, .sign-form, .contact-form { max-width: 680px; margin: 0 auto; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.doc-card { border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; }
.doc-name { font-family: var(--serif); font-size: 1.15rem; margin: 0.2rem 0; }
.doc-status { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.5rem; }
.doc-status.signed { color: var(--aqua); }
.doc-status.pending { color: var(--gold-light); }
.doc-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }

.upload-box { border: 1px dashed rgba(157, 180, 192, 0.4); padding: 1.8rem; max-width: 560px; margin: 0 auto; text-align: center; }
.upload-box input[type="text"] { margin: 0.8rem 0; }

.signature-input { font-family: var(--serif); font-size: 1.5rem; font-style: italic; padding: 1rem; }

.trip-body { max-width: 720px; margin: 0 auto 2.5rem; }
.trip-body p { margin-bottom: 1.2rem; }
.trip-list { max-width: 720px; margin: 0 auto 2rem; }
.trip-list ul { list-style: none; margin-top: 0.5rem; }
.trip-list li { padding: 0.55rem 0 0.55rem 1.4rem; border-bottom: 1px solid rgba(157, 180, 192, 0.12); position: relative; }
.trip-list li::before { content: '·'; color: var(--gold); position: absolute; left: 0.3rem; font-size: 1.4rem; line-height: 1; }

.proposal-actions { max-width: 560px; margin: 2rem auto; text-align: center; display: flex; flex-direction: column; gap: 1.2rem; }
.feedback-toggle summary { cursor: pointer; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.feedback-toggle textarea { margin: 1rem 0; }

.advisor-card { text-align: center; margin-bottom: 2.5rem; }
.advisor-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); margin-bottom: 1rem; }
.advisor-card a { color: var(--aqua-light); text-decoration: none; }

.fineprint { font-size: 0.85rem; color: var(--text-muted); margin-top: 1.4rem; }
.fineprint a { color: var(--gold-light); }

/* ---------- welcome wizard ---------- */
body.wizard {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 100vh;
}
.wizard-wrap {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}
.wizard-card {
    width: 100%;
    background: rgba(14, 43, 64, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    padding: 2.6rem 2.6rem 2.2rem;
    animation: wizard-in 0.5s ease both;
}
@keyframes wizard-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .wizard-card { padding: 1.8rem 1.4rem; } }
.wizard-lead { color: var(--text-muted); margin: 0.4rem 0 1rem; }
.wizard-progress { display: flex; gap: 8px; }
.wizard-progress span { width: 34px; height: 3px; background: rgba(157, 180, 192, 0.35); transition: background 0.4s; }
.wizard-progress span.done { background: var(--aqua); }
.wizard-progress span.current { background: var(--gold); }
.wizard-nav { display: flex; gap: 0.9rem; align-items: center; justify-content: flex-end; margin-top: 2rem; flex-wrap: wrap; }
.wizard-nav .btn[disabled] { opacity: 0.35; pointer-events: none; }
.wizard-skip { background: none; border: none; color: var(--text-muted); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.wizard-skip:hover { color: var(--aqua-light); }
.wizard-later { text-align: center; margin-top: 1.4rem; font-size: 0.82rem; }
.wizard-later a { color: var(--text-muted); }
.wizard-later a:hover { color: var(--gold-light); }

.concierge { width: 100%; }
.concierge summary {
    text-align: center;
    color: var(--aqua-light);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.concierge summary::-webkit-details-marker { display: none; }
.concierge-body { background: rgba(14, 43, 64, 0.88); border: 1px solid rgba(124, 205, 201, 0.3); padding: 1.2rem; margin-top: 0.8rem; }
.concierge-input { display: flex; gap: 0.6rem; }
.concierge-input .btn { margin: 0; white-space: nowrap; }
.concierge-msg { padding: 0.55rem 0.9rem; margin-bottom: 0.7rem; font-size: 0.92rem; max-width: 88%; }
.concierge-msg.me { background: rgba(201, 162, 83, 0.15); border: 1px solid var(--border); margin-left: auto; }
.concierge-msg.them { background: rgba(124, 205, 201, 0.1); border: 1px solid rgba(124, 205, 201, 0.3); }
