:root {
    --primary: #201c61;
    --primary-light: #3d37a3;
    --cta-blue: #2563eb;
    --cta-blue-hover: #1d4ed8;
    --red-accent: #a92f2c;
    --red-accent-light: #c23f3d;
    --gold-accent: #f59e0b;
    --accent: #e6f0fa;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.preload * {
    transition: none !important;
}

html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.app-container {
    display: flex;
    flex-direction: row-reverse; /* Flips the layout so form is on the right */
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* --- FORM PANEL (Now on right) --- */
.form-panel {
    width: 35%;
    min-width: 400px;
    max-width: 650px;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    position: relative;
    z-index: 10;
    box-shadow: -10px 0 25px rgba(0,0,0,0.05);
    overflow-y: auto;
    overflow-x: hidden !important;
    scroll-behavior: auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.start-over-link {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    display: none;
    transition: color 0.2s;
    margin-top: 0.5rem;
}

.start-over-link:hover {
    color: var(--primary);
}

.form-header {
    margin-bottom: 2rem;
}

.logo {
    height: 40px;
}

@media (min-width: 993px) {
    .header-top,
    .mobile-header-logo,
    img.mobile-header-logo {
        display: none !important;
    }
}

.form-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.form-content-wrapper {
    flex-grow: 1;
    position: relative;
    overflow-x: hidden !important;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s;
}

.form-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.form-step.slide-out-left {
    transform: translateX(-20px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.form-step:not(.active):not(.slide-out-left) {
    display: none !important;
}

.form-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.back-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-weight: 500;
}

.back-btn:hover {
    background: var(--accent);
    border-color: var(--primary-light);
    color: var(--primary);
}

.start-over-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-weight: 500;
}

.start-over-btn:hover {
    background: #fffafa;
    border-color: var(--red-accent-light);
    color: var(--red-accent);
}

/* Option Cards */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-cards.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.option-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.option-cards:not(.grid) .option-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1.25rem;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-card span {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.option-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-card:hover .icon-wrapper {
    background: var(--primary);
    color: var(--white);
}

.option-card.selected {
    border-color: var(--red-accent);
    background: #fffafa;
}

.option-card.selected .icon-wrapper {
    background: var(--red-accent);
    color: var(--white);
}

/* ====== Step Indicator / Progress Dots ====== */
.step-indicator {
    margin-bottom: 1.25rem;
}

.progress-dots {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dot-wrapper {
    display: flex;
    align-items: center;
}

.dot-wrapper:not(:last-child)::after {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--border);
    margin: 0 6px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.dot-wrapper.done::after {
    background: var(--primary);
}

.dot {
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
}

.dot-done {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
}

.dot-current {
    background: var(--white);
    border: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
}

.dot-future {
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.75rem;
}

/* ====== Question Entrance Animation ====== */
@keyframes questionEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Questions */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.question-item {
    animation: questionEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.question-item label {
    display: block;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.question-item input[type="text"],
.question-item input[type="number"],
.question-item input[type="email"],
.question-item input[type="tel"],
.input-group input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    color: var(--text-dark);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

#phone,
input[type="tel"] {
    max-width: 200px !important;
}

#zip,
#input-hh-zip,
input[id*="zip"] {
    max-width: 130px !important;
}

.hh-age-input {
    max-width: 90px !important;
}

.linear-q-input[type="number"],
input[id*="age"],
.linear-q-select,
.select-dropdown-wrapper {
    max-width: 180px !important;
}

.select-dropdown-wrapper {
    display: inline-block;
    width: 100%;
}

.linear-q-select {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    background-color: #fafafa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.25rem;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.linear-q-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(32, 28, 97, 0.08);
    background-color: var(--white);
}

#input-hh-income {
    max-width: 200px !important;
}

.question-item input:focus,
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(32, 28, 97, 0.08);
    background: var(--white);
}

.question-item input::placeholder {
    color: #b0b7c3;
}

/* --- Live Input Validation & Error Warnings --- */
.input-invalid,
input.input-invalid,
select.input-invalid,
.input-group input.input-invalid,
.census-form-group input.input-invalid,
.census-mini-group input.input-invalid {
    border-color: #ef4444 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-invalid:focus,
input.input-invalid:focus,
select.input-invalid:focus,
.input-group input.input-invalid:focus,
.census-form-group input.input-invalid:focus,
.census-mini-group input.input-invalid:focus {
    border-color: #dc2626 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.22) !important;
}

input:-webkit-autofill.input-invalid {
    -webkit-box-shadow: 0 0 0 30px #fff8f8 inset, 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
}

.field-validation-warning {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #dc2626;
    font-weight: 500;
    line-height: 1.35;
    animation: fadeInFieldWarning 0.15s ease-out;
}

.census-mini-group .field-validation-warning {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.field-validation-warning i {
    font-size: 0.85rem;
    flex-shrink: 0;
    color: #ef4444;
}

@keyframes fadeInFieldWarning {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.primary-btn {
    background: var(--gold-accent);
    color: #111827;
    border: none;
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    line-height: 1.3;
    text-align: center;
}

.primary-btn i, .secondary-btn i, .primary-btn svg, .secondary-btn svg {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-right-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.btn-right-icon span {
    flex: 1;
    text-align: center;
}

.btn-right-icon i {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.primary-btn:hover:not(:disabled) {
    background: #e58e0a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.primary-btn:disabled {
    background: #fcd34d;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    color: #4b5563;
}

.submit-btn {
    background: var(--gold-accent);
    color: #111827; /* Dark text for contrast on gold */
    font-size: 1.1rem;
    padding: 1.15rem 1.5rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.submit-btn .btn-sub-text {
    color: #1f2937;
    font-weight: 500;
    opacity: 0.95;
}

.submit-btn:hover:not(:disabled) {
    background: #e58e0a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.secondary-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    transition: var(--transition);
    line-height: 1.3;
    text-align: center;
}

.secondary-btn:hover {
    background: var(--accent);
}
/* ====== Health / Question Flow Option Cards ====== */
.flow-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-right: 12px; /* Prevent clipping during hover transform */
    padding-bottom: 8px;
}

/* Prevent clipping if .flow-option is ever rendered directly in a container without .flow-options */
.question-item > .flow-option,
.questions-container > .flow-option {
    max-width: calc(100% - 12px);
    width: calc(100% - 12px);
    margin-right: 12px;
}

.flow-option {
    /* Default: clearly branded, NOT default grey */
    background: #f8f7ff;
    border: 2px solid #dddcf0;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 1.2rem;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    width: 100%;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: border-color 0.2s ease, background 0.2s ease,
                color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.flow-option-text {
    flex: 1;
}

.flow-option-text strong {
    font-weight: 700;
}

.flow-option-desc {
    font-size: 0.84rem;
    color: var(--text-gray);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.flow-option.selected .flow-option-text {
    color: var(--white);
    font-weight: 500;
}

.flow-option.selected .flow-option-text strong {
    color: var(--white);
    font-weight: 700;
}

.flow-option.selected .flow-option-desc,
.flow-option.selected span[style*="text-gray"],
.flow-option.selected [style*="color: var(--text-gray)"],
.flow-option.selected [style*="color:var(--text-gray)"] {
    color: #e0e7ff !important;
}

.flow-option-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e7f8;
    color: var(--primary-light);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flow-option:hover {
    border-color: var(--primary);
    background: #eeedff;
    box-shadow: 0 4px 16px rgba(32, 28, 97, 0.1);
    transform: translateX(5px);
}

.flow-option:hover .flow-option-chevron {
    background: var(--primary);
    color: var(--white);
    transform: translateX(2px);
}

/* Selected: fully filled — unmistakably chosen */
.flow-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(32, 28, 97, 0.28);
    transform: translateX(5px);
}

.flow-option.selected .flow-option-chevron {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Number Pills */

.number-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.number-pill {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 0.6rem 0;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    width: 100%;
}

.number-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.number-pill.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.other-input-container {
    display: none;
    margin-top: 1rem;
}

.other-input-container.active {
    display: block;
}

/* Form inputs */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent);
}

#summary-text {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    padding: 1rem;
    background: var(--accent);
    border-radius: 8px;
    border-left: 4px solid var(--red-accent);
}

/* Success Step */
.success-step {
    text-align: center;
    padding-top: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-step h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.success-step p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Agent Card */
.agent-card {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-photo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid var(--primary);
    box-sizing: border-box;
}

.agent-info h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.agent-phone {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.15rem;
}

.agent-email {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-light);
    text-decoration: none;
}

.agent-email:hover, .agent-phone:hover {
    text-decoration: underline;
}

/* --- INFO PANEL (Now on left) --- */
.info-panel {
    flex-grow: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #110e3d 100%);
    color: var(--white);
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow-y: auto;
}

/* Custom premium scrollbar for info panel */
.info-panel::-webkit-scrollbar {
    width: 6px;
}
.info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
.info-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 10%;
}

.info-content-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    margin: auto 0;
    display: flex;
    flex-direction: column;
}

.info-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s;
    transform: translateX(-20px);
}

.info-content.active {
    position: relative;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.large-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.team-photo {
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem auto;
}

/* Contextual Icon Colors */
.large-icon.c-red { color: var(--red-accent); }
.large-icon.c-gold { color: var(--gold-accent); }
.large-icon.c-green { color: var(--success); }

.info-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.info-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--red-accent-light);
}

.stat span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ====== Default Info State Rotating Showcase ====== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(169, 47, 44, 0.25);
    color: #fca5a5;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.hero-badge.badge-gold {
    background: rgba(245, 158, 11, 0.25);
    color: #fde047;
}

.hero-badge.badge-green {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.default-slides-container {
    position: relative;
    min-height: 380px;
}

.default-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.default-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Carrier Logos Showcase Grid */
.carrier-logos-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.carrier-logo-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carrier-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.carrier-logo-card img {
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
}

.carrier-logo-card.carrier-placeholder {
    padding: 0.35rem 0.6rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carrier-logo-card.carrier-placeholder span {
    font-size: 0.68rem;
    font-weight: 800;
    color: #1a2b49;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    user-select: none;
}

/* Client Reviews Showcase Carousel */
.review-slides-wrapper {
    position: relative;
    margin-top: 1.25rem;
    min-height: 200px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    backdrop-filter: blur(4px);
    text-align: left;
}

.review-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.review-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.review-text {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: #f1f5f9 !important;
    font-style: italic;
    margin-bottom: 0.85rem !important;
}

.review-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
}

/* Slide Navigation Dots */
.slide-nav-indicators {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slide-dot.active {
    background: #cbd5e1;
    width: 10px;
    border-radius: 50%;
    opacity: 1;
    transform: scale(1.3);
}

.location-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.location-card i {
    font-size: 1.5rem;
    color: var(--red-accent-light);
    margin-top: 0.2rem;
}

/* --- QLE Confirmation Banner --- */
.qle-notice-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-left: 5px solid var(--success);
    color: #14532d;
    padding: 1.15rem 1.25rem;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    animation: fadeInQLE 0.25s ease-out;
}

.qle-notice-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #14532d;
    width: 100%;
    display: block;
    margin: 0 0 0.15rem 0;
    letter-spacing: -0.01em;
}

.qle-notice-desc {
    margin: 0 0 0.75rem 0;
    font-size: 0.92rem;
    color: #166534;
    line-height: 1.5;
    width: 100%;
}

.qle-learn-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
    background: #ffffff;
    border: 1.5px solid #22c55e;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.qle-learn-more-btn:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.qle-learn-more-btn:active {
    transform: translateY(0);
}

@keyframes fadeInQLE {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Standalone Subsidy Preface Card --- */
.subsidy-preface-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    animation: fadeInQLE 0.25s ease-out;
    box-sizing: border-box;
    width: 100%;
}

.subsidy-preface-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsidy-preface-card-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.55;
    margin: 0;
}

/* --- Subsidy / APTC Preface Banner (Inline version) --- */
.subsidy-preface-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 0.9rem 1.15rem;
    margin-bottom: 1.25rem;
    animation: fadeInQLE 0.25s ease-out;
}

.subsidy-preface-banner i {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.subsidy-preface-text {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.45;
}

/* --- Open Enrollment Alert Banner --- */
.open-enrollment-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-left: 5px solid #d97706;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    animation: fadeInQLE 0.25s ease-out;
}

.open-enrollment-alert-banner i {
    color: #d97706;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.oe-alert-content {
    flex: 1;
}

.oe-alert-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #92400e;
    margin-bottom: 0.3rem;
}

.oe-alert-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #78350f;
    line-height: 1.45;
}

/* --- Transitional Plans & Alternative Options --- */
.alt-plans-container {
    animation: questionEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.transitional-plans-grid,
.access-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .transitional-plans-grid,
    .access-plans-grid {
        grid-template-columns: 1fr;
    }
}

.transitional-plan-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.transitional-plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.trans-card-carrier {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.trans-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.trans-card-desc {
    font-size: 0.84rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.trans-card-tag {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

.transitional-advice-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.pdf-buttons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.pdf-placeholder-btn {
    flex: 1 1 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-placeholder-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.pdf-placeholder-btn i {
    color: #dc2626;
    font-size: 1.05rem;
}

.access-notice-box {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-left: 5px solid #0284c7;
    border-radius: 8px;
    padding: 0.95rem 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

.access-notice-box > strong:first-child,
.access-notice-box .access-notice-title {
    color: #0369a1;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}

.access-notice-box p {
    margin: 0;
    font-size: 0.86rem;
    color: #0c4a6e;
    line-height: 1.45;
}

.access-notice-box p strong {
    display: inline;
    color: inherit;
    font-weight: 700;
}

/* --- Medicaid & Life Info Panel Cards --- */
.medicaid-cards-grid,
.life-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.medicaid-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
    backdrop-filter: blur(8px);
}

.medicaid-card-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.18);
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.medicaid-card:nth-child(2) .medicaid-card-icon-wrap {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.medicaid-card-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.medicaid-card-body p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    margin: 0 !important;
}

.medicaid-card-body strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 480px) {
    .medicaid-card {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* --- Small Group Requirements Info Slide --- */
.business-req-slide-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.business-req-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    backdrop-filter: blur(8px);
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.business-req-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.business-req-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(234, 179, 8, 0.18);
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.business-req-item-text {
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.business-req-item-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* Continue / Next btn label tweak */
#btn-next-question {
    font-size: 1rem;
    letter-spacing: 0.01em;
    display: none;
}


/* Agent Selection — Success Badge */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.agent-select-subtext {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Agent flow-option options list */
.agent-flow-options {
    margin-top: 0.5rem;
}

/* Agent option button — extends .flow-option */
.agent-flow-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    text-align: left;
}

.agent-flow-option .flow-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.agent-opt-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.agent-opt-title {
    font-size: 0.82rem;
    color: var(--text-light);
}

.agent-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.agent-flow-option .flow-option-chevron {
    color: var(--primary-color);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100% !important;
        background-color: #1e293b !important;
    }
    
    .app-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        background-color: #1e293b !important;
    }
    
    .form-panel {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 1.75rem 1.25rem 1.25rem 1.25rem !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 10;
        background-color: #ffffff !important;
    }

    .form-content-wrapper {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    .form-step {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        transform: none !important;
    }

    .form-step:not(.active) {
        display: none !important;
    }

    .form-step.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header-top {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }

    .mobile-header-logo,
    img.mobile-header-logo {
        display: block !important;
        height: 48px !important;
        width: auto !important;
        max-width: 220px !important;
        object-fit: contain !important;
        margin: 0 !important;
    }
    
    .info-panel {
        display: flex;
        padding: 2.5rem 1.25rem 4rem 1.25rem !important;
        align-items: flex-start;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%) !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .info-content-container {
        height: auto;
    }

    .info-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: none;
    }

    .info-content.active {
        transform: none;
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .team-photo {
        max-width: 100%;
    }

    .circle-1 {
        width: 300px;
        height: 300px;
        top: -50px;
        right: -50px;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
        bottom: -50px;
        left: 5%;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.25rem;
    }
}

/* ====== Free Agent Trust Pill ====== */
.free-agent-trust-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    letter-spacing: 0.01em;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
}

.free-agent-trust-pill[style*="display: flex"] + .agent-card {
    margin-top: 0.5rem;
}

.free-agent-trust-pill.banner-fade-out {
    opacity: 0;
    transform: translateY(-4px);
}

.banner-context-line {
    font-size: 0.73rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-gray);
    opacity: 0.95;
}

.banner-body-line {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.banner-body-line i {
    color: var(--success);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Preventive Plan Hiding & Dynamic Button Subtext */
.show-preventive-only .col-prime,
.show-preventive-only .col-plus,
.show-preventive-only .col-clear {
    display: none !important;
}

.primary-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    line-height: 1.3;
    padding: 0.85rem 1.5rem;
}

.primary-btn[style*="display: none"] {
    display: none !important;
}

.primary-btn:has(.btn-sub-text),
.primary-btn.has-subtext {
    flex-direction: column;
    gap: 0.25rem;
}

.btn-main-text {
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: row;
}

.btn-main-text i,
.btn-main-text svg {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sub-text {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    display: block;
    max-width: 90%;
    text-align: center;
}

.btn-open-dental-webformat {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
}

.zip-success {
    background: rgba(16, 185, 129, 0.12) !important;
    border-left: 4px solid var(--success) !important;
    color: var(--text-dark) !important;
    margin-top: 0.5rem;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.zip-error {
    background: rgba(169, 47, 44, 0.12) !important;
    border-left: 4px solid var(--red-accent) !important;
    color: var(--red-accent) !important;
    margin-top: 0.5rem;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Dental table column widths & mobile scrolling */
#dental-plans-table {
    table-layout: fixed;
    width: 100%;
    min-width: 650px;
}

#dental-plans-table th, #dental-plans-table td {
    box-sizing: border-box;
}

#dental-plans-table .col-label {
    width: 25%;
    text-align: left;
}

#dental-plans-table th:not(.col-label),
#dental-plans-table td:not(.col-label),
#dental-plans-table .col-prime,
#dental-plans-table .col-plus,
#dental-plans-table .col-clear,
#dental-plans-table .col-essential,
#dental-plans-table .col-prevent {
    width: 15%;
    text-align: center;
}

#dental-plans-table.show-preventive-only .col-label {
    width: 40%;
}

#dental-plans-table.show-preventive-only .col-essential,
#dental-plans-table.show-preventive-only .col-prevent {
    width: 30%;
}

/* Ungated Dental / Vision Split CTA Cards */
.cta-enrollment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    margin-bottom: 0.85rem;
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-enrollment-badge i {
    color: var(--success);
}

.cta-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.85rem;
    margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
    .cta-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.95rem 1.25rem 1.15rem;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    box-sizing: border-box;
}

.cta-card:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cta-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.cta-card-subtext {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-gray);
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.cta-card-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.65rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    min-height: 50px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
}

.cta-card-btn .btn-main-text {
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.25;
    white-space: nowrap;
}

.cta-card-btn .btn-sub-text {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    opacity: 0.92;
    text-transform: uppercase;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}

.cta-apply .cta-card-btn {
    background: var(--success);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.cta-apply .cta-card-btn .btn-main-text,
.cta-apply .cta-card-btn .btn-sub-text {
    color: #ffffff;
}

.cta-questions .cta-card-btn {
    background: var(--gold-accent);
    color: #0f172a;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.cta-questions .cta-card-btn .btn-main-text,
.cta-questions .cta-card-btn .btn-sub-text {
    color: #0f172a;
}

.cta-card:hover .cta-card-btn {
    transform: scale(1.02);
    filter: brightness(1.08);
}

/* ====== Business Path Multi-Select Checkbox Indicators ====== */
.option-card.type-card {
    position: relative;
}

.checkbox-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.option-card.type-card.selected .checkbox-indicator {
    background: var(--red-accent);
    border-color: var(--red-accent);
    color: var(--white);
}

/* ====== Review Requirements Container (Form Panel) ====== */
.review-requirements-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-req-header {
    text-align: left;
    margin-bottom: 0.5rem;
}

.req-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(32, 28, 97, 0.08);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.review-req-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.review-req-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.req-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.req-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.req-list {
    margin-left: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.req-list li {
    margin-bottom: 0.6rem;
}

.product-req-card {
    border-left: 4px solid var(--primary-light);
}

.dental-req-card {
    border-left-color: var(--success);
}

.vision-req-card {
    border-left-color: var(--gold-accent);
}

.req-card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ====== Web Format Modals ====== */
.webformat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.webformat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.webformat-modal-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: questionEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.webformat-modal-header {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-right: 4.25rem;
}

.modal-partner-logos {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    max-width: 100%;
    overflow: visible;
}

.modal-brand-logo {
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.modal-brand-logo.logo-parker {
    height: 38px;
}

.modal-brand-logo.logo-delta {
    height: 26px;
    max-width: 260px;
}

.modal-brand-logo.logo-uh {
    height: 42px;
}

.modal-brand-logo.logo-vsp {
    height: 32px;
}

.modal-brand-logo.logo-selecthealth {
    height: 32px;
}

.modal-brand-logo.logo-bci {
    height: 36px;
}

.logo-cobrand-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 0.1rem;
}

.logo-divider {
    width: 1px;
    height: 26px;
    background: #cbd5e1;
    display: inline-block;
}

.webformat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.webformat-badge.dental-badge {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.webformat-badge.vision-badge {
    background: rgba(245, 158, 11, 0.25);
    color: #fde047;
}

.webformat-badge.health-badge {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
}

.webformat-title-group h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.webformat-title-group p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.webformat-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.webformat-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
    .webformat-modal-container {
        max-height: 92dvh;
        border-radius: 12px;
    }

    .webformat-modal-header {
        padding: 1rem 0.85rem;
        padding-right: 3.25rem;
    }
    
    .webformat-close-btn {
        top: 0.85rem;
        right: 0.85rem;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .modal-partner-logos {
        padding: 0.35rem 0.65rem;
        gap: 0.4rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .modal-brand-logo.logo-parker {
        height: 26px;
    }

    .modal-brand-logo.logo-delta {
        height: 20px;
        max-width: 170px;
    }

    .modal-brand-logo.logo-uh {
        height: 28px;
    }

    .modal-brand-logo.logo-vsp {
        height: 22px;
    }

    .logo-cobrand-divider {
        font-size: 0.75rem;
    }

    .cobrand-carrier-text {
        font-size: 0.75rem;
    }

    .webformat-title-group h2 {
        font-size: 1.15rem;
        line-height: 1.35;
        margin-bottom: 0.3rem;
    }

    .webformat-title-group p {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .webformat-modal-body {
        padding: 1rem 0.85rem;
    }
}

.webformat-nav-tabs {
    display: flex;
    align-items: stretch;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    padding: 0 0.5rem;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-height: 60px;
    scrollbar-width: thin;
}

.webformat-nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.webformat-nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.webformat-tab-btn {
    flex: 0 0 auto;
    min-height: 60px;
    background: none;
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .webformat-nav-tabs {
        padding: 0 0.5rem;
        gap: 0.4rem;
        min-height: 54px;
    }
    .webformat-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.82rem;
        min-height: 54px;
        gap: 0.4rem;
    }
}

.webformat-tab-btn:hover {
    color: var(--primary);
}

.webformat-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--white);
}

/* Webformat Modal Tab Bar Download Button */
.webformat-tab-download-link {
    margin-left: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-right: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.webformat-tab-download-link i {
    color: #dc2626;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.webformat-tab-download-link:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(32, 28, 97, 0.2);
}

.webformat-tab-download-link:hover i {
    color: #ffffff;
}

@media (max-width: 640px) {
    .webformat-tab-download-link {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        margin-right: 0.35rem;
    }
}

/* Modal Body Top Downloads Bar (Above the Fold) */
.modal-top-downloads-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.modal-top-download-btn {
    flex: 1 1 220px;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f8fafc;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    padding: 0.55rem 0.95rem;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.modal-top-download-btn i {
    color: #dc2626;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.modal-top-download-btn:hover {
    background: #ffffff;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.modal-top-download-btn:hover i {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .modal-top-downloads-bar {
        flex-direction: column;
        gap: 0.45rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.75rem;
    }

    .modal-top-download-btn {
        width: 100%;
        min-width: 100%;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        line-height: 1.25;
        border-radius: 6px;
    }

    .modal-top-download-btn i {
        font-size: 0.88rem;
    }
}

/* Standout Blue Button for Application Disclosure */
.btn-disclosure-primary {
    width: 100%;
    background: #1d4ed8;
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
    transition: all 0.2s ease;
}

.btn-disclosure-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.btn-disclosure-primary i {
    font-size: 1.05rem;
}

/* Mobile-only Call Button (Hidden on Desktop, Visible on Mobile) */
.mobile-only-call {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-only-call {
        display: inline-flex !important;
    }
}

.webformat-modal-body {
    padding: 1.75rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
    text-align: left;
}

.webformat-tab-content {
    display: none;
}

.webformat-tab-content.active {
    display: block;
    animation: questionEnter 0.25s ease-out;
}

/* Tables inside Webformat Modal & Mobile Scroll Affordances */
.table-scroll-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.table-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 6px;
    width: 24px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    z-index: 5;
}

.table-scroll-container.can-scroll-left::before {
    opacity: 1;
}

.table-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 6px;
    width: 24px;
    background: linear-gradient(to left, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 5;
}

.table-scroll-container.can-scroll-right::after {
    opacity: 1;
}

.mobile-table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.65rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-table-scroll-hint i.fa-arrows-left-right {
    color: var(--primary);
    font-size: 0.85rem;
}

.scroll-hint-arrow {
    animation: scrollNudge 1.6s infinite ease-in-out;
    color: var(--primary);
    font-size: 0.75rem;
}

@keyframes scrollNudge {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 768px) {
    .mobile-table-scroll-hint {
        display: flex;
    }
}

.dental-table-filter-bar {
    margin-bottom: 0.85rem;
    padding: 0.65rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    box-sizing: border-box;
}

.filter-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-bar-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn-filter-toggle:hover {
    background: #15114a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(32, 28, 97, 0.2);
}

.table-responsive-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.table-responsive-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.table-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.webformat-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.webformat-table th {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border);
    min-width: 110px;
    white-space: nowrap;
}

.webformat-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    min-width: 110px;
}

.webformat-table th:first-child,
.webformat-table td:first-child {
    min-width: 160px;
}

.webformat-table tr:nth-child(even) {
    background: #f8fafc;
}

.webformat-table .section-header-row td {
    background: #e2e8f0;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.webformat-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    background: #f8fafc;
    border-left: 4px solid var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Services & Guidelines Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.guidelines-list {
    margin-left: 1.25rem;
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.guidelines-list li {
    margin-bottom: 0.85rem;
}

.exclusions-box {
    background: #fff8f8;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1.25rem;
}

.exclusions-box h4 {
    color: #991b1b;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.exclusions-box ul {
    margin-left: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #450a0a;
}

.exclusions-box li {
    margin-bottom: 0.5rem;
}

.frequencies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.frequency-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.frequency-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.frequency-card ul {
    list-style: none;
}

.frequency-card li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.frequency-card li i {
    color: var(--success);
}

.webformat-modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
}

.contact-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.contact-pill-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Business Path: Decision Cards (Schedule vs Census) --- */
.business-decision-section {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.decision-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.decision-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.decision-card-schedule:hover {
    border-color: var(--primary) !important;
}

.decision-card-census:hover {
    border-color: var(--success) !important;
}

/* --- Census Modal Styles --- */
.census-modal-container {
    max-width: 1040px !important;
    width: 95vw !important;
}

.cobrand-carrier-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: #e0f2fe;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.census-section-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.census-section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.census-section-header i {
    font-size: 1.35rem;
    color: var(--primary);
    background: #eff6ff;
    padding: 0.6rem;
    border-radius: 8px;
}

.census-section-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.2rem 0;
}

.census-section-header p {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin: 0;
}

.census-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.census-form-group {
    display: flex;
    flex-direction: column;
}

.census-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.census-form-group label .req {
    color: #ef4444;
    margin-left: 2px;
}

.census-form-group input,
.census-select {
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.census-form-group input:focus,
.census-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.sic-lookup-link {
    font-size: 0.78rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sic-lookup-link:hover {
    text-decoration: underline;
}

/* Coverage toggles */
.census-coverage-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.coverage-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.coverage-check-pill input {
    accent-color: var(--primary);
}

.coverage-check-pill.selected {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

/* Roster Summary Chip */
.census-roster-summary-chip {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* Employee Cards */
.census-employees-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.census-employee-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.census-employee-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.5rem;
}

.census-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.census-row-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.65rem;
}

.census-row-inputs.tight {
    grid-template-columns: 1.1fr 1.1fr 0.8fr 1.1fr 0.8fr 1.3fr 0.8fr;
}

@media (max-width: 900px) {
    .census-row-inputs.tight {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.census-mini-group {
    display: flex;
    flex-direction: column;
}

.census-mini-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.census-mini-group input,
.census-mini-group select {
    height: 36px;
    padding: 0.45rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

/* Toggle Pill Group (Sex, Tobacco) - Symmetrical 50/50 split */
.census-toggle-group {
    display: flex;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
    box-sizing: border-box;
    background: #ffffff;
}

.census-toggle-btn {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    border: none;
    background: #ffffff;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.census-toggle-btn:first-child {
    border-right: 1px solid #cbd5e1;
}

.census-toggle-btn.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.census-toggle-btn:hover:not(.active) {
    background: #f8fafc;
    color: var(--primary);
}

.census-status-banner {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.2s ease;
}

.census-status-banner:hover {
    border-color: #cbd5e1 !important;
}

.census-banner-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.census-banner-title-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.census-banner-title-group i {
    color: var(--success);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.census-banner-title-group strong {
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 700;
    white-space: nowrap;
}

.census-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.btn-edit-census,
.btn-download-census {
    width: auto !important;
    max-width: none !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.78rem !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: var(--text-dark) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0 !important;
    line-height: 1.2;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-edit-census:hover,
.btn-download-census:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: var(--primary) !important;
}

.census-banner-meta {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.35;
    word-break: break-word;
}

.form-panel .notice-box {
    background: #f1f5f9 !important;
    border-left: 4px solid var(--primary) !important;
    color: var(--text-dark) !important;
}

.form-panel .notice-box i {
    color: var(--primary) !important;
}

/* Dependents Container */
.census-dependents-container {
    margin-top: 0.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.census-dependent-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.census-dependent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.census-dependent-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Hidden Coverage Lines Selection & Person Coverage Rows (Simplified for Health Quoting) */
#census-coverage-lines-box,
.census-card-coverage-row {
    display: none !important;
}

.census-card-coverage-row span.label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.census-cov-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.census-cov-pill.active {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}

.census-cov-pill.waived {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
}

/* Roster Actions (Add button, Quick add) */
.census-roster-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.census-quick-add button {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.census-quick-add button:hover {
    background: #eff6ff;
    border-color: var(--primary);
}

/* Tab 2: Upload Dropzone */
.census-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.upload-instructions-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.upload-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.census-dropzone {
    border: 2px dashed #94a3b8;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.census-dropzone:hover,
.census-dropzone.dragover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.dropzone-inner h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.dropzone-inner p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

/* Census Modal Footer */
.census-modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 1rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.census-footer-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.census-footer-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .census-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .census-footer-buttons {
        flex-direction: column;
        width: 100%;
    }
    .census-footer-buttons button {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   --- Life Insurance Path Summary Screen (Pricing & Benefits) ---
   ========================================================= */
.life-summary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.25rem;
    animation: fadeInQLE 0.25s ease-out;
}

.life-summary-rate-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.life-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.life-rate-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.life-rate-tag {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.life-rate-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.life-rate-value-group {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.life-rate-as-low {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.life-rate-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}

.life-rate-period {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.life-rate-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.life-rate-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    font-size: 0.82rem;
    color: #334155;
}

.life-rate-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.life-rate-spec-item i {
    color: #059669;
    font-size: 0.8rem;
}

.life-rate-urgency-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.4;
}

.life-rate-urgency-note i {
    color: #d97706;
    margin-top: 2px;
    flex-shrink: 0;
}

.life-summary-benefits-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.life-benefits-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.life-benefits-header i {
    font-size: 1.25rem;
    color: var(--primary);
}

.life-benefits-header h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.life-benefits-header p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.life-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

@media (max-width: 520px) {
    .life-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.life-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #edf2f7;
}

.life-benefit-icon {
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.life-benefit-body {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.life-benefit-body strong {
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.25;
}

.life-benefit-body span {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 2px;
}

.life-benefit-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.3;
}

.life-benefit-pill.whole-life-pill {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.life-benefit-pill.whole-life-included {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.life-benefit-body .whole-life-note {
    display: block;
    color: #b45309;
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.3;
    margin-top: 2px;
}

/* =========================================================
   Select Health Transitional & BCI Access Modals
   ========================================================= */
.bci-disclosure-table th,
.bci-disclosure-table td {
    padding: 0.85rem 1rem;
    vertical-align: top;
    line-height: 1.45;
    font-size: 0.88rem;
}

.bci-disclosure-table th {
    font-weight: 700;
}

.bci-disclosure-table tr:nth-child(even) td {
    background: #f8fafc;
}

.sh-ideal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.5rem 0;
}

.sh-ideal-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sh-ideal-card i {
    font-size: 1.15rem;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.sh-ideal-card-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.sh-ideal-card-text span {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.35;
}

.sh-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.5rem 0;
}

.sh-step-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
}

.sh-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.sh-step-card h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.35rem 0;
}

.sh-step-card p {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin: 0;
}

.modal-action-bar {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

/* --- Mobile Medicare Info Trigger Button --- */
.mobile-medicare-info-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1.5px solid #fde047;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
    text-align: center;
}

.mobile-medicare-info-btn i {
    color: #d97706;
    font-size: 1rem;
}

.mobile-medicare-info-btn:hover,
.mobile-medicare-info-btn:active {
    background: #fef3c7;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .mobile-medicare-info-btn.active-medicare {
        display: flex !important;
    }
}

@media (min-width: 993px) {
    .mobile-medicare-info-btn {
        display: none !important;
    }
}

/* --- Medicare Modal Specific Styling --- */
#modal-medicare-comparison-webformat .webformat-table td small {
    display: block;
    color: #64748b;
    margin-top: 2px;
}

#modal-medicare-comparison-webformat .webformat-table tr:hover td {
    background: #f1f5f9;
}






