/* ============================================================
   Quote Form Styles
   ============================================================ */

/* ── Progress Bar ────────────────────────────────────────── */

.quote-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-10);
    position: relative;
}

.quote-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--color-light-grey);
    z-index: 0;
}

.quote-progress .progress-fill {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 3px;
    background: var(--color-accent);
    z-index: 1;
    transition: width var(--transition-base);
}

.quote-progress .step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: default;
}

.quote-progress .step-circle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--color-light-grey);
    color: var(--color-mid-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    border: 3px solid var(--color-light-grey);
}

.quote-progress .step-indicator.active .step-circle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.quote-progress .step-indicator.completed .step-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-white);
}

.quote-progress .step-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-mid-grey);
    margin-top: var(--space-2);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-progress .step-indicator.active .step-label,
.quote-progress .step-indicator.completed .step-label {
    color: var(--color-charcoal);
}

/* ── Step Panels ─────────────────────────────────────────── */

.quote-step {
    display: none;
}

.quote-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Insurance Type Selection (Step 1) ───────────────────── */

.insurance-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.insurance-type-option {
    position: relative;
}

.insurance-type-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.insurance-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-5);
    border: 2px solid var(--color-light-grey);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    height: 100%;
    background: var(--color-white);
}

.insurance-type-option label:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.insurance-type-option input:checked + label {
    border-color: var(--color-accent);
    background: rgba(45, 125, 210, 0.05);
    box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.15);
}

.insurance-type-option label .type-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.insurance-type-option input:checked + label .type-icon {
    background: var(--color-accent);
}

.insurance-type-option label .type-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-charcoal);
}

.insurance-type-option label .type-check {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.insurance-type-option input:checked + label .type-check {
    display: flex;
}

/* ── Dynamic Form Fields (Step 2) ────────────────────────── */

.type-fields-section {
    display: none;
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
}

.type-fields-section.active {
    display: block;
}

.type-fields-section h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.type-fields-section h4 i {
    color: var(--color-accent);
    margin-right: var(--space-2);
}

/* ── Document Upload (Step 4) ────────────────────────────── */

.upload-area {
    border: 2px dashed var(--color-light-grey);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--color-accent);
    background: rgba(45, 125, 210, 0.03);
}

.upload-area i {
    font-size: 3rem;
    color: var(--color-mid-grey);
    margin-bottom: var(--space-3);
}

.upload-area p {
    color: var(--color-mid-grey);
}

.upload-file-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
}

.upload-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.upload-file-list .file-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.upload-file-list .file-name i {
    color: var(--color-accent);
}

.upload-file-list .file-remove {
    color: var(--color-danger);
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-1);
}

/* ── Review Summary (Step 5) ─────────────────────────────── */

.review-section {
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.review-section h5 {
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-light-grey);
    font-size: var(--text-sm);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .label {
    font-weight: 600;
    color: var(--color-charcoal);
}

.review-item .value {
    color: var(--color-dark-grey);
    text-align: right;
}

/* ── Navigation Buttons ──────────────────────────────────── */

/* ── Skip CTA (Conversion-Focused) ──────────────────────── */

.skip-cta {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 2px dashed var(--color-light-grey);
}

.skip-cta-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, rgba(45, 125, 210, 0.06), rgba(56, 161, 105, 0.06));
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
}

.skip-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
}

.skip-cta-content {
    flex: 1;
}

.skip-cta-content strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-charcoal);
    margin-bottom: 2px;
}

.skip-cta-content span {
    font-size: var(--text-sm);
    color: var(--color-dark-grey);
}

.btn-skip {
    flex-shrink: 0;
    background: var(--color-success);
    border: none;
    color: var(--color-white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-skip:hover {
    background: #2e8b57;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 767.98px) {
    .skip-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .btn-skip {
        width: 100%;
    }
}

/* ── Quote Navigation ────────────────────────────────────── */

.quote-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-light-grey);
}

.quote-nav .btn-back {
    background: none;
    border: 2px solid var(--color-light-grey);
    color: var(--color-dark-grey);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-nav .btn-back:hover {
    border-color: var(--color-charcoal);
    color: var(--color-charcoal);
}

.quote-nav .btn-next {
    background: var(--color-accent);
    border: none;
    color: var(--color-white);
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.quote-nav .btn-next:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.quote-nav .btn-submit {
    background: var(--color-success);
    border: none;
    color: var(--color-white);
    padding: var(--space-3) var(--space-10);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.quote-nav .btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Form Styling ────────────────────────────────────────── */

.quote-form-wrapper .form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-charcoal);
    margin-bottom: var(--space-2);
}

.quote-form-wrapper .form-control,
.quote-form-wrapper .form-select {
    border: 1px solid var(--color-light-grey);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: border-color var(--transition-fast);
}

.quote-form-wrapper .form-control:focus,
.quote-form-wrapper .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.1);
}

.quote-form-wrapper .form-control.is-invalid {
    border-color: var(--color-danger);
}

.quote-form-wrapper .invalid-feedback {
    font-size: var(--text-xs);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .insurance-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .quote-progress .step-label {
        display: none;
    }

    .insurance-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .insurance-type-option label {
        padding: var(--space-3);
    }

    .insurance-type-option label .type-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .quote-nav {
        flex-direction: column;
        gap: var(--space-3);
    }

    .quote-nav .btn-next,
    .quote-nav .btn-submit {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .insurance-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Confirmation Page ───────────────────────────────────── */

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--color-white);
    font-size: 3rem;
}
