/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #F5F7FB;
    color: #1F2933;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   LAYOUT & CONTAINER
   ========================================== */
#auto-insurance-form-wrapper {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-cont.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* ==========================================
   BACK BUTTON
   ========================================== */
.backbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #CBD2E1;
    color: #52606D;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.backbtn:hover {
    background: #FFFFFF;
    border-color: #0052CC;
    color: #0052CC;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.1);
}

.backbtn svg {
    fill: currentColor;
}

/* ==========================================
   FORM STEPS (CARDS)
   ========================================== */
.form-step {
    display: none;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}
.entry-content ul, .entry-content ol {
    padding-left: 0px;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-title h3,
.section-title h4 {
    font-size: 16px;
    font-weight: 400;
    color: #52606D;
    margin-bottom: 4px;
}

.section-title h3 i {
    color: #0052CC;
    margin-right: 6px;
}

/* ==========================================
   FORM CONTAINERS
   ========================================== */
.mini-container,
.regular-box,
.big-box {
    max-width: 45%;
    margin: 0 auto;
}

.form-sec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-sec p.fullwidth {
    grid-column: 1 / -1;
}

/* ==========================================
   FORM INPUTS & SELECTS
   ========================================== */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
.primaryselectbox {
    width: 100%;
    padding: 0px 16px;
    border: 1px solid #CBD2E1;
    border-radius: 8px;
    font-size: 15px;
    color: #1F2933;
    background: #FFFFFF;
    transition: all 0.2s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
.primaryselectbox:focus {
    outline: none;
    border-color: #0052CC;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

input::placeholder {
    color: #9AA5B1;
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ==========================================
   LABELS
   ========================================== */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 8px;
    text-align: left;
}

.select-wrapper {
    display: block;
    width: 100%;
}

/* ==========================================
   BUTTONS - PRIMARY CTA
   ========================================== */
.blue-btn,
button.blue-btn {
    width: 100%;
    padding: 14px 24px;
    background: #0052CC;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    margin-top: 8px;
}

.blue-btn:hover {
    background: #003d99;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
    transform: translateY(-1px);
}

.blue-btn:active {
    transform: translateY(0);
}

.blue-btn:disabled,
.blue-btn.loading {
    background: #9AA5B1;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================
   OPTION BUTTONS (PILLS)
   ========================================== */
.btn-lists ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-lists.two-col ul {
    grid-template-columns: 1fr 1fr;
}

.btn-lists ul li a,
.aif-option,
.primary-use-button,
.annual-mileage-button,
.desired-coverage-button,
.ownership-button,
.add-another-car-button,
.history-active-license,
.history-tickets,
.history-sr22,
.driver-homeowner,
.driver-married,
.driver-gender,
.driver-military {
    display: block;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 2px solid #E1E8ED;
    border-radius: 8px;
    color: #1F2933;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-lists ul li a:hover,
.aif-option:hover,
.primary-use-button:hover,
.annual-mileage-button:hover,
.desired-coverage-button:hover,
.ownership-button:hover,
.add-another-car-button:hover,
.history-active-license:hover,
.history-tickets:hover,
.history-sr22:hover,
.driver-homeowner:hover,
.driver-married:hover,
.driver-gender:hover,
.driver-military:hover {
    border-color: #0052CC;
    background: #F0F7FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.15);
}

.btn-lists ul li a.selected-button,
.aif-option.selected-button,
.primary-use-button.selected-button,
.annual-mileage-button.selected-button,
.desired-coverage-button.selected-button,
.ownership-button.selected-button,
.add-another-car-button.selected-button,
.history-active-license.selected-button,
.history-tickets.selected-button,
.history-sr22.selected-button,
.driver-homeowner.selected-button,
.driver-married.selected-button,
.driver-gender.selected-button,
.driver-military.selected-button {
    background: #0052CC;
    color: #FFFFFF;
    border-color: #0052CC;
    box-shadow: 0 4px 16px rgba(0, 82, 204, 0.25);
}

.add-another-car-button h2 {
    font-size: 20px;
    margin: 0;
}

/* ==========================================
   BIRTHDAY FORM
   ========================================== */
.birthdate-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.birthdate-month,
.birthdate-day,
.birthdate-year {
    flex: 1;
    min-width: 80px;
    position: relative;
}

.birthdate-month input,
.birthdate-day input,
.birthdate-year input {
    width: 100%;
    padding: 12px 16px 12px 16px;
    font-size: 16px;
    text-align: center;
}

.birthdate-form label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: #9AA5B1;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
}

.birthdate-form input:focus + label,
.birthdate-form input:not(:placeholder-shown) + label {
    opacity: 0;
}

.birthdate-form button {
    width: 100%;
    flex-basis: 100%;
}

/* ==========================================
   ERROR MESSAGES
   ========================================== */
.aif-error {
    display: block;
    color: #D64545;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 12px;
    text-align: center;
}

input.error,
select.error {
    border-color: #D64545;
}

/* ==========================================
   VEHICLE LIST (SUMMARY CARDS)
   ========================================== */
#cars-view {
    margin-top: 24px;
}

.input-edit {
    background: #F5F7FB;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-value {
    font-size: 15px;
    font-weight: 500;
    color: #1F2933;
}

.delete-link {
    color: #D64545;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.delete-link:hover {
    color: #A93333;
    text-decoration: underline;
}

/* ==========================================
   SUBSTEP HANDLING
   ========================================== */
.vehicle-substep {
    display: none;
}

.vehicle-substep.active {
    display: block;
}

/* ==========================================
   PARAGRAPH SPACING
   ========================================== */
p {
    margin-bottom: 16px;
}

.btn-lists p {
    font-weight: 600;
    color: #1F2933;
    font-size: 18px;
}

/* ==========================================
   RESPONSIVE - TABLET (768px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    #auto-insurance-form-wrapper {
        padding: 32px 16px;
    }

    .form-step {
        padding: 32px 24px;
    }

    .section-title h2 {
        font-size: 24px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (< 768px)
   ========================================== */
@media (max-width: 767px) {
    #auto-insurance-form-wrapper {
        padding: 24px 12px;
    }

    .form-step {
        padding: 28px 20px;
        border-radius: 8px;
    }
	
.mini-container, .regular-box, .big-box {
    max-width: 100%;
}

    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .section-title h3,
    .section-title h4 {
        font-size: 14px;
    }

    /* Stack form fields vertically */
    .form-sec {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Full-width buttons on mobile */
    .blue-btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    /* Two-column grid becomes single column */
    .btn-lists.two-col ul {
        grid-template-columns: 1fr;
    }

    /* Adjust option buttons for better tap targets */
    .btn-lists ul li a,
    .aif-option,
    .primary-use-button,
    .annual-mileage-button,
    .desired-coverage-button,
    .ownership-button,
    .add-another-car-button,
    .history-active-license,
    .history-tickets,
    .history-sr22,
    .driver-homeowner,
    .driver-married,
    .driver-gender,
    .driver-military {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Birthday form adjustments */
    .birthdate-form {
        gap: 8px;
    }

    .birthdate-month,
    .birthdate-day,
    .birthdate-year {
        min-width: 70px;
    }

    /* Back button */
    .backbtn {
        padding: 8px 14px;
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Vehicle cards */
    .input-edit {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .delete-link {
        align-self: flex-end;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

/* ==========================================
   HIDDEN ELEMENTS (via inline styles in HTML)
   ========================================== */
[style*="display:none"],
[style*="display: none"] {
    display: none !important;
}

/* ==========================================
   PROGRESS INDICATOR (Optional Enhancement)
   ========================================== */
/* If you want to add a simple progress bar at the top,
   you can use ::before on .form-step and calculate
   width based on step number. This is CSS-only and
   requires no HTML changes. */

/* .form-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0052CC 0%, #0052CC var(--progress, 0%), #E1E8ED var(--progress, 0%), #E1E8ED 100%);
    width: 100%;
    border-radius: 12px 12px 0 0;
}
 */
#aif-step-zip.active {
    --progress: 7%;
}

#aif-step-year.active {
    --progress: 14%;
}

#aif-step-make.active {
    --progress: 21%;
}

#aif-step-model.active {
    --progress: 28%;
}

#vehicle-details-section.active {
    --progress: 35%;
}

#aif-step-add-vehicle.active {
    --progress: 42%;
}

#aif-step-insurance-status.active {
    --progress: 50%;
}

#aif-step-driving-history.active {
    --progress: 57%;
}

#aif-step-driver-details.active {
    --progress: 64%;
}

#aif-step-education-credit.active {
    --progress: 71%;
}

#aif-step-birthday.active {
    --progress: 78%;
}

#aif-step-name.active {
    --progress: 85%;
}

#aif-step-contact.active {
    --progress: 92%;
}

#aif-step-thankyou.active {
    --progress: 100%;
}

/* ==========================================
   ACCESSIBILITY & POLISH
   ========================================== */
.thankyou-cta-btn {
    display: inline-block;
    background: #007bff;
    color: #fff !important;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
    text-align: center;
    width: auto;
}

/* Hover effect */
.thankyou-cta-btn:hover {
    background: #005fcc;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.25);
}

/* Center alignment inside the container */
#aif-step-thankyou .mini-container {
    text-align: center;
}

/* Responsive for mobile */
@media (max-width: 600px) {
    .thankyou-cta-btn {
        width: 100%;
        padding: 16px;
        font-size: 17px;
        border-radius: 6px;
    }
}

