

.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.w-full { width: 100%; }
.m-0 { margin: 0 !important; }
.flex-1 { flex: 1; }
.float-right { float: right; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-gray { color: #64748b; }
.text-blue { color: #0284c7; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.6; }
.cursor-pointer { cursor: pointer; }
.block { display: block; }
.border-t { border-top: 1px solid; }
.border-gray { border-color: #e2e8f0; }

.custom-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}
.custom-checkbox:checked {
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}
.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.life-header {
    background: transparent;
    margin-bottom: 24px;
}

.step-meta {
    margin-bottom: 8px;
}

.progress-bar-container {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0284c7;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.btn-text-icon {
    background: transparent;
    border: none;
    cursor: pointer;
}

.pill-group-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pill-group-combo {
    display: flex;
    gap: 12px;
    align-items: center;
}

.select-pill {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-width: 70px;
}

.input-pill {
    flex: 2;
}

.input-pill input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
}

.select-pill:hover {
    border-color: #cbd5e1;
}

.select-pill.active {
    border-color: #0284c7;
    color: #0284c7;
    font-weight: 600;
}

.select-pill.active.blue-bg {
    background: #0284c7;
    color: #fff;
}

.toggle-pills-large {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.pill-large {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-large.active-blue {
    background: transparent;
    color: #0284c7;
    font-weight: 600;
}

.pill-large.active-white {
    background: #fff;
    color: #0284c7;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.beneficiary-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
}

.summary-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {

    .life-quote-page {
        padding-top: 60px !important;
        background: #f8fafc !important;
        min-height: 100dvh !important;
    }

    .life-quote-steps {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 0 !important;
        padding: 12px 20px !important;
        background: #fff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        scrollbar-width: none;
    }
    .life-quote-steps::-webkit-scrollbar { display: none; }

    .life-step-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 70px !important;
        flex-shrink: 0;
        padding: 0 8px;
    }

    .life-step-circle {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 50% !important;
        background: #e2e8f0 !important;
        color: #64748b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .life-step-item.active .life-step-circle { background: #0284c7 !important; color: #fff !important; }

    .life-step-label {
        font-size: 10px !important;
        color: #94a3b8 !important;
        font-weight: 600 !important;
        text-align: center !important;
        white-space: nowrap;
    }
    .life-step-item.active .life-step-label { color: #0284c7 !important; }

    .life-quote-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    .life-quote-form-panel {
        width: 100% !important;
        padding: 20px 16px 120px !important;
        order: 1;
    }

    .life-quote-summary {
        display: none !important; 
    }

    .life-quote-form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .life-quote-form-grid input,
    .life-quote-form-grid select {
        font-size: 16px !important;
        padding: 13px 14px !important;
        border-radius: 10px !important;
        border: 1.5px solid #e2e8f0 !important;
    }

    .life-quote-section-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 16px !important;
    }

    .life-plan-select-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding-bottom: 8px;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }
    .life-plan-select-grid::-webkit-scrollbar { display: none; }

    .life-plan-select-card {
        flex: 0 0 80vw !important;
        min-width: 240px !important;
        border-radius: 14px !important;
        padding: 16px !important;
        scroll-snap-align: start;
    }

    .life-quote-actions {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        padding: 12px 16px !important;
        background: #fff !important;
        border-top: 1px solid #e2e8f0 !important;
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }

    .life-quote-prev {
        min-width: 48px !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        border: 1.5px solid #e2e8f0 !important;
        background: #fff !important;
        justify-content: center !important;
        flex-shrink: 0;
    }

    .life-quote-next,
    .life-quote-submit {
        flex: 1 !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .container,
    [class$="-container"],
    [class*="hero-container"],
    [class*="page-container"],
    [class*="section-container"],
    .checkout-grid,
    .quote-main {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
