/* ═══════════════════════════════════════════════════════════════
   PRICING CALCULATOR - Styles for pricing-calculator.asp
   Single viewport design with two-column company layout
   ═══════════════════════════════════════════════════════════════ */

/* Page-level flexbox for sticky footer */
.pricing-calculator-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pricing-calculator-page .calculator-hero {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.calculator-hero {
    padding: 5rem 0 1.5rem;
    background: 
        linear-gradient(135deg, var(--brand-50) 0%, var(--white) 40%, var(--white) 60%, var(--accent-50) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calculator-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 500px at 5% 10%, rgba(77, 142, 187, 0.12), transparent 60%),
        radial-gradient(ellipse 600px 400px at 95% 90%, rgba(232, 127, 53, 0.08), transparent 60%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(77, 142, 187, 0.04), transparent 50%);
    pointer-events: none;
}

.calculator-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(77, 142, 187, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 142, 187, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.5;
}

.calculator-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR HEADER - Compact version
   ═══════════════════════════════════════════════════════════════ */
.calculator-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calculator-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    box-shadow: var(--shadow-soft);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calculator-title {
    font-family: var(--headings-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.calculator-title .highlight {
    color: var(--brand);
}

.calculator-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   STEP 1: TYPE SELECTOR SCREEN - Large cards for initial selection
   ═══════════════════════════════════════════════════════════════ */
.type-selector-screen {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.type-selector-screen.active {
    display: flex;
}

.type-selector-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 700px;
}

.type-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.type-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand-medium);
    transform: translateY(-4px);
}

.type-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-card-icon img {
    width: 64px;
    height: 64px;
}

.type-card-title {
    font-family: var(--subheadings-font);
    font-size: 1.5rem;
    color: var(--brand-700);
}

.type-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.type-card-cta {
    margin-top: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--brand-50);
    color: var(--brand);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.type-card:hover .type-card-cta {
    background: var(--brand);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   BACK BUTTON - Always at bottom-right of panel (after all content)
   ═══════════════════════════════════════════════════════════════ */
.back-btn {
    order: 999;
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    margin-top: 2rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--brand);
    background: var(--brand-50);
}

.back-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.back-btn:hover img {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR PANELS
   ═══════════════════════════════════════════════════════════════ */
.calculator-panel {
    display: none;
    animation: fadeIn 0.3s ease;
    flex: 1;
    position: relative;
    padding-top: 0rem; /* Space for back button */
}

.calculator-panel.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   COMPANY PANEL - Selector + Price/Benefits Layout
   ═══════════════════════════════════════════════════════════════ */

/* Top Section - Dropdown Selector */
.company-selector-section {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top:1rem;
}

.company-selector-title {
    font-family: var(--subheadings-font);
    font-size: 1.8rem;
    color: var(--brand-700);
    margin-bottom: 0.8rem;
}


.company-selector-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom:1rem;
}

/* Size Dropdown */
.size-dropdown-wrapper {
    max-width: 320px;
    margin: 0 auto 1rem;
}

.size-dropdown {

    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-700);
    background: var(--white);
    border: 2px solid var(--brand-300);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234d8ebb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
}

.size-dropdown:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand-soft);
}

.size-dropdown:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 142, 187, 0.15);
}

.size-dropdown option {
    font-size: 1rem;
    padding: 0.5rem;
}

/* Contact link for large companies */
.company-contact-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.company-contact-link a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.company-contact-link a:hover {
    text-decoration: underline;
}

/* Two-column Price + Benefits Layout */
.company-price-benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
    align-items: stretch;
}

.company-price-column,
.company-benefits-column {
    display: flex;
}

/* Price Display Card */
.price-display-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-brand-strong);
    position: relative;
    overflow: hidden;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.price-display-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}

.price-display-content {
    position: relative;
    z-index: 1;
}

.price-display-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-display-amount {
    font-family: var(--headings-font);
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.125rem;
}

.price-display-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.price-display-per-employee {
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 0.375rem 1rem;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.price-display-breakdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    opacity: 0.9;
}

.price-display-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.price-display-breakdown-label {
    opacity: 0.75;
    font-size: 0.75rem;
}

/* Benefits Card (Right Column) */
.benefits-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.benefits-card-title {
    font-family: var(--subheadings-font);
    font-size: 1.5rem;
    color: var(--brand-700);
    margin-bottom: 1rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-100);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list .benefit-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   INDIVIDUAL PANEL - Plan Cards with Benefits (like wizard)
   ═══════════════════════════════════════════════════════════════ */
.individual-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    flex: 1;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.individual-plan-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Hover - same as type-card */
.individual-plan-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand-medium);
    transform: translateY(-4px);
}

/* Selected state - gradient blue background */
.individual-plan-card.selected {
    background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
    border-color: var(--brand);
    box-shadow: var(--shadow-brand-medium);
}

.individual-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
    color: var(--white);
    padding: 0.25rem 0.875rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.individual-plan-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.individual-plan-icon img {
    width: 48px;
    height: 48px;
}

.individual-plan-title {
    font-family: var(--subheadings-font);
    font-size: 1.5rem;
    color: var(--brand-700);
    margin-bottom: 0.25rem;
}

.individual-plan-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.individual-plan-price {
    font-family: var(--headings-font);
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 0.125rem;
}

.individual-plan-price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.individual-plan-monthly {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Benefits List - Wizard Style */
.individual-plan-features {
    list-style: none;
    margin-bottom: 1rem;
    text-align: left;
    flex: 1;
}

.individual-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-100);
}

.individual-plan-features li:last-child {
    border-bottom: none;
}

.individual-plan-features .feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.individual-plan-card .btn {
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BUTTON - Compact
   ═══════════════════════════════════════════════════════════════ */
.calculator-cta {
    margin-top: 1rem;
    text-align: center;
}

.calculator-cta .btn-xl {
    min-width: 260px;
}

/* ═══════════════════════════════════════════════════════════════
   NOT READY SECTION - Quote request area
   ═══════════════════════════════════════════════════════════════ */
.not-ready-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--brand-50) 0%, var(--white) 100%);
    border-radius: 16px;
    border: 1px solid var(--brand-100);
    position: relative;
    overflow: hidden;
}

.not-ready-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 300px 200px at 10% 20%, rgba(77, 142, 187, 0.08), transparent 50%),
        radial-gradient(ellipse 250px 150px at 90% 80%, rgba(232, 127, 53, 0.05), transparent 50%);
    pointer-events: none;
}

.not-ready-content {
    text-align: left;
    flex: 1;
}

.not-ready-title {
    font-family: var(--subheadings-font);
    font-size: 1.2rem;
    color: var(--brand-700);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}
.not-ready-title .no-problem {
    color: var(--accent);
}



.not-ready-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.not-ready-section .btn-outline {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: var(--white);
    color: var(--brand);
    border: 2px solid var(--brand);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.not-ready-section .btn-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand-700);
    color: var(--brand-700);
}

/* Disabled button state */
.calculator-cta .btn.disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.calculator-cta-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Individual panel note */
.individual-cta-note {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .company-price-benefits-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-hero {
        padding: 5rem 0 2rem;
        min-height: auto;
    }
    
    /* Type selector cards - stack on mobile */
    .type-selector-cards {
        flex-direction: column;
        gap: 1rem;
    }
    
    .type-card {
        padding: 1.5rem;
    }
    
    .type-card-icon {
        width: 48px;
        height: 48px;
    }
    
    .type-card-icon img {
        width: 48px;
        height: 48px;
    }
    
    .type-card-title {
        font-size: 1.25rem;
    }
    
    .size-dropdown-wrapper {
        max-width: 100%;
    }
    
    .price-display-amount {
        font-size: 2rem;
    }
    
    .price-display-breakdown {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .individual-plans {
        grid-template-columns: 1fr;
    }
    
    .individual-plan-price {
        font-size: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU ADDITIONAL STYLES
   ═══════════════════════════════════════════════════════════════ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--white);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.mobile-menu-header .logo img {
    height: 32px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--gray-50);
}

.mobile-menu-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

body.menu-open {
    overflow: hidden;
}

/* Site Footer (for landing pages) */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 2.5rem 0;
}

.site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.site-footer .footer-brand img {
    height: 36px;
    opacity: 0.9;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.site-footer .footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: var(--white);
}

.site-footer .footer-copy {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE REQUEST FORM
   ═══════════════════════════════════════════════════════════════ */
.quote-form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quote-form {
    width: 100%;
    min-width: 700px;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quote-form .form-group {
    margin-bottom: 1.5rem;
}

.quote-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.quote-form .form-group input,
.quote-form .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-form .form-group input:focus,
.quote-form .form-group select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quote-form .form-group input::placeholder {
    color: var(--gray-400);
}

.quote-form .form-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 2rem 0;
}

.btn-submit-quote {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--brand-600);
    color: var(--white);
}

.btn-submit-quote:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
}

.btn-submit-quote:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.quote-button-container {
    text-align: center;
    margin-top: 1.5rem;
}

.quote-back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.quote-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.quote-back-link a:hover {
    color: var(--brand);
    background: var(--brand-50);
}

.quote-success {
    text-align: center;
    padding: 3rem 2rem;
}

.quote-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.quote-success h2 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.quote-success p {
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* Quote Form Validation */
.quote-form .form-error {
    display: block;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.quote-form .is-invalid {
    border-color: #dc2626 !important;
}

.hidden {
    display: none !important;
}
