/* HERO SECTION */
.hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    /* Keep hidden to contain blobs */
}

/* Background gradient blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.2);
    bottom: 0;
    left: -50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    /* 56px */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    /* 20px */
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
}

/* Hero Badge */
.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Hero Image & Glass Card */
.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-glass-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease-out;
}

.hero-glass-card:hover {
    transform: rotateY(0) rotateX(0) translateY(-5px);
}

.app-interface {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.app-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-status-icon {
    width: 28px;
    height: 28px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-body {
    padding: 1.5rem;
}

.app-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    width: 100%;
    margin: 1.5rem 0;
    overflow: hidden;
}

.app-progress-fill {
    height: 100%;
    background: var(--color-brand);
    border-radius: 10px;
    width: 100%;
    animation: progressFill 1.5s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes progressFill {
    to {
        transform: scaleX(0.75);
    }
}

.app-float-badge {
    position: absolute;
    bottom: -10px;
    right: -20px;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* INSURANCE CARDS */
.insurance-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.insurance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.insurance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-brand);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.insurance-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    color: var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.insurance-card:hover .feature-icon-box {
    background: var(--color-brand);
    color: white;
}

/* PROCESS STEPS */
.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    background: white;
    position: relative;
    z-index: 2;
}

.process-step:not(:last-child) .step-circle::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 2rem);
    /* height of step + gap */
    background: #f1f5f9;
    z-index: -1;
}

/* CTA BANNER */
.cta-banner {
    background: var(--color-primary);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: white;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

/* Background pattern */
.cta-bg-pattern {
    position: absolute;
    opacity: 0.1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 0);
    background-size: 20px 20px;
}

/* ACCORDION (FAQ) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-main);
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
    color: var(--color-text-secondary);
}

.accordion-body {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
    line-height: 1.6;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* FEATURE BOX (Why Us) */
.feature-box {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}


/* MODAL & WIZARD STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    /* Constrained width */
    max-height: 90vh;
    /* Viewport height constraint */
    overflow-y: auto;
    /* Scrollable if tall */
    padding: 2.5rem;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e2e8f0;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    border: none;
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Wizard Views - Hidden by default except first */
.wizard-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wizard Selection Grid */
.insurance-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.select-card {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
}

.select-card:hover {
    background: #eff6ff;
    border-color: var(--color-brand-light);
    transform: translateY(-2px);
}

.select-icon {
    font-size: 1.75rem;
    color: var(--color-brand);
    margin-bottom: 0.5rem;
}

.select-label {
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

/* Wizard Form Elements */
.wizard-progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.wizard-step-dot {
    width: 30px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: background 0.3s;
}

.wizard-step-dot.active {
    background: var(--color-brand);
}

.wizard-step-dot.completed {
    background: var(--color-success);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* SIDEBAR CARD */
.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    position: sticky;
    top: 140px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
    /* Content centered for 'Widget' feel */
}

.sidebar-card:hover {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    /* Center flex items */
    position: relative;
    text-align: center;
}

/* Optional: Add a small centered indicator on the border for 'UI' feel */
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--color-brand);
}

.sidebar-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
    /* Explicitly center */
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 1.5rem 0;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center align items */
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f8fafc;
    text-align: center;
}

.sidebar-links a:hover {
    background: #eff6ff;
    color: var(--color-brand);
    transform: translateX(5px);
}

.sidebar-links a i {
    color: var(--color-brand);
    font-size: 1rem;
    width: 20px;
    /* Fixed width for better alignment */
    text-align: center;
}

/* BRUSH UNDERLINE */
.brush-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.brush-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 12px;
    z-index: -1;
    background-color: var(--color-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='200' height='9' viewBox='0 0 200 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.00025 6.99997C25.7501 2.99972 84.8576 0.13723 197.422 1.57803' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg width='200' height='9' viewBox='0 0 200 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.00025 6.99997C25.7501 2.99972 84.8576 0.13723 197.422 1.57803' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--color-brand);
}

.toast.success {
    border-left-color: var(--color-success);
}

.toast.error {
    border-left-color: var(--color-danger);
}

.toast-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    color: var(--color-success);
}

.toast.error .toast-icon {
    color: var(--color-danger);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.toast-msg {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.toast-close {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

.toast-close:hover {
    color: var(--color-text-main);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-brand);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

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