*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    margin: 0;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
}

.quote-main {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stepper-container {
    margin-bottom: 40px;
}
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    z-index: 2;
    position: relative;
}

.step .circle {
    font-family: 'Poppins', sans-serif;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.step .label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.step.active .circle {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.step.active .label {
    color: #0284c7;
    font-weight: 700;
}

.stepper .line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 16px;
    position: relative;
    top: -10px;
}

.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.form-card .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 16px center;
    padding-right: 48px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-with-button {
    display: flex;
    gap: 12px;
}

.input-with-button input {
    flex: 1;
}

.btn-gray {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-gray:hover {
    background: #e2e8f0;
}

.radio-group-3 {
    display: flex;
    gap: 12px;
}

.radio-pill {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.radio-pill input {
    display: none;
}

.radio-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    position: relative;
}

.radio-pill.active {
    border-color: #0284c7;
    background: #f0f9ff; 
}

.radio-pill.active .radio-circle {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.radio-pill.active .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
}

.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.question-row span {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

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

.pill {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.pill.active {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.pill.active.no {
    background: #e2e8f0;
    color: #475569;
}

.sub-question {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sub-question label {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.small-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
}

.step-actions {
    display: flex;
    margin-top: 32px;
}

.step-actions.split {
    justify-content: space-between;
}

.step-actions.right {
    justify-content: flex-end;
}

.step-actions.center {
    justify-content: center;
}

.btn-primary-action {
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-action:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-outline {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: #f8fafc;
}

.step-actions-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 40px -48px -60px -48px;
    padding: 32px 48px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
}

.w-full {
    width: 100%;
}
.mt-6 {
    margin-top: 24px;
}
.mt-4 {
    margin-top: 16px;
}
.text-center {
    text-align: center;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 60px 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08); 
}

.icon-success-large {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.timeline {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}
.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 24px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 32px;
    border-left: 2px solid #e2e8f0;
}
.timeline-item:last-child {
    border-left-color: transparent;
    margin-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}
.timeline-item.active::before {
    background: #3b82f6;
    box-shadow: 0 0 0 4px #eff6ff;
}
.timeline-item h4 {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.timeline-item.active h4 {
    color: #3b82f6;
}
.timeline-item p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.submission-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
}
.submission-summary h3 {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
}
.summary-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}
.summary-item span {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.ref-badge {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
}

.alert-blue {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
    font-size: 13px;
    color: #0369a1;
    align-items: flex-start;
}

.help-section {
    margin-top: 40px;
}
.help-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.help-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: transparent;
}
.help-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.help-content h5 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.help-content p {
    font-size: 12px;
    color: #64748b;
}

.license-text {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer {
    background: #0f172a;
    padding: 72px 0 32px;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 36px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
    color: #64748b;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-row span {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-links h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: #94a3b8;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-newsletter h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.footer-newsletter p {
    font-size: 13px;
    margin-bottom: 16px;
    color: #64748b;
    line-height: 1.5;
}

.newsletter-input {
    display: flex;
}

.newsletter-input input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px 0 0 10px;
    border: 1px solid #334155;
    border-right: none;
    background: #1e293b;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input input:focus {
    border-color: #0284c7;
}

.newsletter-input input::placeholder {
    color: #64748b;
}

.newsletter-input button {
    padding: 0 20px;
    border: none;
    background: #0284c7;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background 0.25s;
}

.newsletter-input button:hover {
    background: #0369a1;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 13px;
    color: #475569;
}

@media (max-width: 768px) {
    .footer {
        padding: 48px 0 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .quote-main {
        margin: 100px auto 40px;
    }
    .stepper .label {
        display: none;
    }
}

@media (max-width: 768px) {

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

    .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 !important;
        -webkit-overflow-scrolling: touch;
    }
    .quote-steps::-webkit-scrollbar { display: none; }

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

    .quote-step-item::after {
        content: '';
        position: absolute;
        top: 11px;
        right: -8px;
        width: 16px;
        height: 2px;
        background: #e2e8f0;
    }
    .quote-step-item:last-child::after { display: none; }
    .quote-step-item.done::after { background: #10b981; }

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

    .quote-step-item.active .quote-step-circle { background: #0284c7 !important; color: #fff !important; }
    .quote-step-item.done .quote-step-circle { background: #10b981 !important; color: #fff !important; }

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

    .quote-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

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

    .quote-sidebar {
        display: none !important;
    }

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

    .quote-form-group {
        margin-bottom: 14px !important;
    }

    .quote-form-label {
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
        display: block;
    }

    .quote-form-group input,
    .quote-form-group select,
    .quote-form-group textarea {
        width: 100% !important;
        padding: 13px 14px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        border: 1.5px solid #e2e8f0 !important;
        background: #fff !important;
    }

    .quote-form-group input:focus,
    .quote-form-group select:focus {
        border-color: #0284c7 !important;
        outline: none !important;
    }

    .coverage-type-chips {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .coverage-type-chips::-webkit-scrollbar { display: none; }

    .coverage-chip {
        flex-shrink: 0 !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border: 1.5px solid #e2e8f0 !important;
        background: #fff !important;
        white-space: nowrap;
        cursor: pointer;
    }
    .coverage-chip.selected {
        border-color: #0284c7 !important;
        background: #eff6ff !important;
        color: #0284c7 !important;
    }

    .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);
        align-items: center !important;
    }

    .quote-prev-btn {
        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;
    }

    .quote-next-btn,
    .quote-submit-btn {
        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;
    }
}
