:root {
    --quote-bg: #eef3f8;
    --quote-navy: #071453;
    --quote-navy-soft: #0d1b3a;
    --quote-orange: #FF7900;
    --quote-muted: #6b7280;
    --quote-border: #dbe3ee;
    --quote-card: #ffffff;
    --quote-tab-idle: #edf2f7;
    --quote-radius: 14px;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--quote-bg);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.quote-page {
    min-height: 100vh;
    padding: 36px 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-brand {
    text-align: center;
    margin-bottom: 24px;
    max-width: 560px;
}

.quote-brand img {
    width: min(240px, 72vw);
    height: auto;
    margin-bottom: 16px;
}

.quote-brand .quote-eyebrow {
    margin: 0 0 10px;
    color: var(--quote-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quote-brand h1 {
    margin: 0 0 8px;
    color: var(--quote-navy);
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
}

.quote-brand p {
    margin: 0;
    color: var(--quote-muted);
    font-size: 1rem;
}

.quote-card {
    width: 100%;
    max-width: 560px;
    background: var(--quote-card);
    border: 1px solid var(--quote-border);
    border-top: 4px solid var(--quote-orange);
    border-radius: var(--quote-radius);
    box-shadow: 0 10px 30px rgba(7, 20, 83, 0.06);
    padding: 28px 28px 24px;
}

.quote-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    background: var(--quote-tab-idle);
    border-radius: 12px;
    margin-bottom: 22px;
}

.quote-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--quote-muted);
}

.quote-tab:hover {
    color: var(--quote-navy);
    text-decoration: none;
}

.quote-tab.active {
    background: var(--quote-navy);
    color: #fff;
}

.quote-card-title {
    margin: 0 0 6px;
    color: var(--quote-navy);
    font-size: 1.4rem;
    font-weight: 800;
}

.quote-card-subtitle {
    margin: 0 0 20px;
    color: var(--quote-muted);
    font-size: 0.95rem;
}

.quote-page .form-label {
    color: var(--quote-navy);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.quote-page .form-label .req {
    color: var(--quote-orange);
    margin-left: 2px;
}

.quote-page .form-control,
.quote-page .form-select {
    min-height: 48px;
    border: 1px solid var(--quote-border);
    border-radius: 10px;
    background: #fff;
    color: var(--quote-navy-soft);
    box-shadow: none;
}

.quote-page textarea.form-control {
    min-height: 110px;
}

.quote-page .form-control::placeholder {
    color: #9aa6b5;
}

.quote-page .form-control:focus,
.quote-page .form-select:focus {
    border-color: var(--quote-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 121, 0, 0.18);
}

.quote-page .form-text,
.quote-page .text-muted {
    color: var(--quote-muted) !important;
}

.quote-btn {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--quote-orange);
    border-radius: 10px;
    background: var(--quote-orange);
    color: var(--quote-navy);
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-btn:hover,
.quote-btn:focus {
    background: #e86d00;
    border-color: #e86d00;
    color: var(--quote-navy);
}

.quote-btn:disabled {
    opacity: 0.75;
}

.quote-btn-narrow {
    width: auto;
    min-width: 180px;
}

.quote-link {
    color: var(--quote-orange);
    font-weight: 600;
    text-decoration: none;
}

.quote-link:hover {
    color: #e86d00;
    text-decoration: underline;
}

.quote-hint {
    margin: 10px 0 0;
    text-align: center;
    color: var(--quote-muted);
    font-size: 0.85rem;
}

.quote-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--quote-border);
    text-align: center;
    color: var(--quote-muted);
    font-size: 0.95rem;
}

.quote-footer a {
    color: var(--quote-orange);
    font-weight: 700;
    text-decoration: underline;
}

.quote-section-title {
    color: var(--quote-navy);
    font-weight: 800;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--quote-border);
    padding-bottom: 0.45rem;
    margin: 0 0 1rem;
}

/* Steps */
.quote-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.quote-steps .step {
    flex: 1;
    text-align: center;
    padding: 0.35rem;
}

.quote-steps .step-number {
    display: block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #edf2f7;
    color: #6b7280;
    margin: 0 auto 0.25rem;
    font-weight: 700;
}

.quote-steps .step.active .step-number {
    background: var(--quote-navy);
    color: #fff;
}

.quote-steps .step.completed .step-number {
    background: var(--quote-orange);
    color: #fff;
}

.quote-steps .step-label {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
}

.quote-steps .step.active .step-label {
    color: var(--quote-navy);
}

/* Account type cards */
.account-type-card {
    transition: all 0.2s ease;
    border: 2px solid var(--quote-border) !important;
    border-radius: 12px;
    background: #fff;
}

.account-type-card:hover {
    border-color: var(--quote-orange) !important;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.12);
}

.account-type-card.account-type-selected {
    border-color: var(--quote-navy) !important;
    background-color: rgba(7, 20, 83, 0.04);
    box-shadow: 0 4px 12px rgba(7, 20, 83, 0.12);
}

.account-type-card .text-primary {
    color: var(--quote-orange) !important;
}

.account-type-card .card-title {
    color: var(--quote-navy);
    font-weight: 700;
}

.cursor-pointer {
    cursor: pointer;
}

/* Passcode */
.passcode-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0;
}

.passcode-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid var(--quote-border);
    border-radius: 10px;
    background: #fff;
    color: var(--quote-navy);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.passcode-input:focus {
    outline: none;
    border-color: var(--quote-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 121, 0, 0.18);
}

/* Select2 */
.quote-page .select2-container {
    width: 100% !important;
}

.quote-page .select2-container--default .select2-selection--single {
    border: 1px solid var(--quote-border);
    height: 48px;
    border-radius: 10px;
    padding: 0.375rem 0.75rem;
    background: #fff;
}

.quote-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding-left: 0;
    color: var(--quote-navy-soft);
}

.quote-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.quote-page .select2-container--default.select2-container--open .select2-selection--single,
.quote-page .select2-container--default .select2-selection--single:focus {
    border-color: var(--quote-orange);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 121, 0, 0.18);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--quote-orange);
    color: var(--quote-navy);
}

.select2-dropdown {
    border: 1px solid var(--quote-border);
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .quote-page {
        padding: 24px 12px 36px;
    }

    .quote-card {
        padding: 22px 16px 18px;
    }

    .passcode-input {
        width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .passcode-inputs {
        gap: 0.35rem;
    }
}
