/* ===============================
   TOKENS & GLOBAL STYLES
================================ */
:root {
    --ink: #1a1a1a;
    --bg: #f8fafc;
    --card: #ffffff;
    --maroon: #800000;
    --maroon-hover: #600000;
    --coral: #f87171;
    --navy: #1e3a8a;
    --body-text: #475569;
    --line: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 10px;
    --focus-ring: rgba(128, 0, 0, 0.15);
}

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

/* ===============================
   TOKENS
================================ */
:root {
    --ink: #1a1a1a;
    --bg: #f8fafc;
    --card: #ffffff;
    --maroon: #800000;
    --coral: #f87171;
    --navy: #1e3a8a;
    --body-text: #475569;
    --line: #e4e2df;
    --radius-lg: 16px;
    --radius-md: 10px;
    --focus-ring: rgba(128, 0, 0, 0.15);
}

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

body {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}



img {
    max-width: 100%;
}

/* ===============================
   NAVBAR — two-tone split
================================ */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='navCurve' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f87171'/%3E%3Cstop offset='0.5' stop-color='%23800000'/%3E%3Cstop offset='1' stop-color='%23800000'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M380,0 C460,0 420,100 540,100 L1000,100 L1000,0 Z' fill='url(%23navCurve)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 2rem;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: #111;
}
.brand::after { display: none; }
.brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0;
}
.brand span {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: normal;
    font-size: 14.5px;
    letter-spacing: -.015em;
    color: #111;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
nav a {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14.5px;
    font-weight: normal;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    position: relative;
    cursor: pointer;
    letter-spacing: -.01em;
}
nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    height: 2px;
    width: 100%;
    left: 0;
    background-color: rgba(255,255,255,0.65);
    transition: transform 0.25s ease-in-out;
    transform: scaleX(0);
}
nav a:hover { color: white; }
nav a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: white; font-weight: normal; }
.nav-links a.active::after {
    background-color: rgba(255,255,255,0.75);
    transform: scaleX(1);
}
/* Download CTA — plain link style */
.nav-cta {
    color: rgba(255,255,255,0.9) !important;
    font-weight: normal !important;
    font-size: 14.5px!important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    letter-spacing: -.01em !important;
    transition: color 0.2s ease !important;
}
.nav-cta:hover {
    color: white !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}
.nav-cta::after {
    display: block !important;
    background-color: rgba(255,255,255,0.65) !important;
}
#menu-toggle { display: none; }
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 26px;
    height: 20px;
    cursor: pointer;
}
.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    transition: transform .3s ease, opacity .3s ease;
}
#menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 5vh 5% 8vh;
}

.hero-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-header .eyebrow {
    display: block;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14.5px;
    font-weight: normal;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: .75rem;
}

.hero-header h1 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: normal;
    background: linear-gradient(20deg, var(--coral), var(--maroon));
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-header .lead {
    color: var(--body-text);
    font-size: 14.5px;
    margin-top: 0.75rem;
}

/* ===============================
   MODERN CARD WIZARD
================================ */
.modern-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--line);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 2rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(128, 0, 0, 0.08);
    color: var(--maroon);
    font-weight: normal;
    font-size: 14.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}
.status-badge:empty {
    display: none;
}

.card-header h2 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: normal;
}

.card-body {
    padding: 2rem;
}

.step-desc {
    font-size: 14.5px;
    color: var(--body-text);
    margin-bottom: 1.75rem;
    text-align: center;
}

/* Centered Profile Grid */
.profile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
}

.profile-card {
    flex: 1 1 220px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.profile-card:hover {
    border-color: var(--maroon);
    transform: translateY(-5px);
    box-shadow: 0 16px 28px -6px rgba(128,0,0,0.15);
    background: #fff8f8;
}

.profile-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(128, 0, 0, 0.08);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1rem;
}

.profile-card h3 {
    font-size: 14.5px;
    font-weight: normal;
    margin-bottom: 0.4rem;
}

.profile-card p {
    font-size: 14.5px;
    color: var(--body-text);
    line-height: 1.4;
}

/* Dynamic Rules */
.step-pane.mode-new .field-existing { display: none !important; }
.step-pane.mode-existing .field-new, 
.step-pane.mode-existing .field-consultant { display: none !important; }
.step-pane.mode-consultant .field-existing { display: none !important; }

/* Dynamic Form Layout */
.form-instructions {
    font-size: 14.5px;
    color: var(--body-text);
    margin-bottom: 1.75rem;
    background: #f1f5f9;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--maroon);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.span-full {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 14.5px;
    font-weight: normal;
    color: #334155;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14.5px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.req {
    color: #e11d48;
}

/* Newsletter Component */
.newsletter-box {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    background-color: #fafafa;
}

.newsletter-text strong {
    display: block;
    font-size: 14.5px;
}

.newsletter-text p {
    font-size: 14.5px;
    color: var(--body-text);
}

.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.radio-chip {
    cursor: pointer;
}

.radio-chip input {
    display: none;
}

.radio-chip span {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    font-size: 14.5px;
    font-weight: normal;
    transition: all 0.2s ease;
}

.radio-chip input:checked + span {
    background: var(--maroon);
    color: white;
    border-color: var(--maroon);
}

/* Captcha UI */
.captcha-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    background: #f8fafc;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 1px dashed var(--line);
}

.captcha-error {
    color: #d92d20;
    font-size: 14.5px;
    margin: 0;
}

/* Form-level alerts (success / error banners, validation summary) */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 14.5px;
    line-height: 1.5;
}

.form-alert i {
    margin-top: 0.15rem;
}

.form-alert-success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

.form-alert-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.field-errors {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

/* Actions Bottom Bar */
.action-bar {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 14.5px;
    font-weight: normal;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--maroon);
    color: white;
}

.btn-primary:hover {
    background: var(--maroon-hover);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.lp-hidden {
    display: none !important;
}

/* Success Layout */
.success-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-icon {
    font-size: 22px;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-state h2 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    margin-bottom: 0.5rem;
}

.success-state p {
    color: var(--body-text);
    margin-bottom: 1.5rem;
}

/* ===============================
   FLOATING SOCIAL STRIP & FOOTER
================================ */
.case {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: var(--ink);
}

.ftop {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.icon {
    position: relative;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #232324;
    border: 1px solid #333;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    text-decoration: none;
    animation: wave 4s ease-in-out infinite;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.icon::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: white;
    transform: translateX(-50%);
    z-index: -1;
}

.icon:hover {
    transform: scale(1.1);
    background-color: var(--maroon);
}

.facebook { animation-delay: 1s; }
.linkedin { animation-delay: 1.75s; }
.x { animation-delay: 2.5s; }

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(5px); }
    75% { transform: translateY(-10px); }
}

footer {
    background-color: var(--ink);
    padding: 3vh 5vw 2vh;
    color: gray;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.f1 ul {
    list-style: none;
}

footer li {
    padding: 0.28rem 0;
}

.f1 a {
    color: gray;
    text-decoration: none;
    transition: color .2s ease;
    font-size: 14.5px;
}

.f1 a:hover {
    color: white;
    text-decoration: underline;
}

.ft {
    position: relative;
    display: inline-block;
    font-weight: normal;
    color: white;
    font-size: 14.5px;
    padding-bottom: .4rem;
    margin-bottom: .4rem;
}

.ft::after {
    content: "";
    position: absolute;
    bottom: -2px;
    height: 2px;
    width: 40%;
    left: 0;
    background-color: var(--maroon);
}

.current-page {
    color: var(--coral);
    font-size: 14.5px;
}

footer p {
    margin-top: 1vh;
    text-align: center;
    width: 100%;
    color: #888;
    font-size: 14.5px;
}

/* ===============================
   RESPONSIVE
================================ */
@media screen and (max-width: 768px) {
    nav { background: var(--maroon); }
    .brand, .brand span { color: white; }
    .nav-inner { padding: .75rem 1.25rem; }
    .brand img { width: 28px; height: 28px; }
    .brand span { font-size: 14.5px; }
    .menu-icon { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background-color: var(--maroon);
        box-shadow: 0 16px 24px rgba(128,0,0,.25);
        border-radius: 0 0 16px 16px;
        padding: .5rem 0 1rem;
    }
    #menu-toggle:checked ~ .nav-links { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: .9rem 1rem; }
    .nav-links li:not(:last-child) a { border-bottom: 1px solid rgba(255,255,255,0.12); }
    .profile-card {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .span-full, .newsletter-box, .captcha-card, .action-bar {
        grid-column: span 1;
    }
    .newsletter-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .captcha-card {
        flex-direction: column;
        align-items: stretch;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 4vh 6% 5vh;
    }
    footer {
        padding: 40px 20px;
    }
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .ft::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .case {
        height: auto;
        padding: 30px 10px;
    }
}
/* ===============================
   QUOTATION FIELD VISIBILITY
   Same show/hide pattern as the download page's field-new/field-existing rules,
   swapped in for the two quotation types (single / multi).
================================ */
.step-pane.mode-single [class*="show-"]:not(.show-single) { display: none !important; }
.step-pane.mode-multi [class*="show-"]:not(.show-multi) { display: none !important; }
