/* auto-insurance-survey.css */

.step-container {
    max-width: 800px;
    margin: 0 auto;
    /* padding: 20px; */
    solid CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
    /* border: solid 1px #d1d1d1; */
}

.back-button {
    display: flex;
    align-items: center;
    color: var(--e-global-color-primary);
    border: none;
    background: none;
    /* padding: 10px; */
    cursor: pointer;
}

.form-group {
    margin: 20px 0;
}
span.highlight {
    color: var(--e-global-color-primary);
    font-weight: bold;
}

#insurance-survey-container button {
    padding: 15px;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 22px;
    color:  var(--e-global-color-primary);
    background: none;
    flex: 1;
}
#insurance-survey-container button:hover{
    background:  var(--e-global-color-primary);
    color: #fff;
}
.step-container .make-button{
}

#insurance-survey-container .btn-primary {
    background-color: var(--e-global-color-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    height: 60px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    scroll-margin-bottom: 80px;
    font-size: 20px;
    width: 100% !important;
    border-radius: 5px;
}
#insurance-survey-container .btn-primary:hover{}
.select-grid,
.year-grid,
.make-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.year-button:hover,
.make-button:hover {
    background-color: #f0f7ff;
}

.make-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 10px; */
}

.make-button img {
    max-width: 60px;
    height: auto;
}

.error-message {
    color: #dc3545;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    background-color: #ffe6e6;
}

select {
    width: 100%;
    padding: 11px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 60px;
    font-size: 20px;
}

#insurance-survey-container {
    max-width: 1040px;
    padding: 20px 20px 30px;
    /* border: solid 1px #d1d1d1; */
    margin: auto;
}

#insurance-survey-container h2 {
    font-size: 30px;
    margin-bottom: 15px;
    /* font-weight: 900; */
    /* color: #036; */
    text-align: center;
}


.step-zip-section #backbutton {
    display: none;
}

.mini-container {
    width: 460px;
    max-width: 100%;
    margin: 0 auto;    
}

#insurance-survey-container input {
    margin-bottom: 20px;
    display: inline-block;
    box-sizing: border-box;
    height: 60px;
    background-color: #fff;
    font-size: 18px;
    width: 100%;
    border-radius: 5px;
    line-height: 21px;
    padding: 6px 15px;
    flex: 1;
}
#insurance-survey-container input[type=number]{
    /* max-width: 150px; */
}
#insurance-survey-container .zip-form input{
    padding-left: 26px;
}
#zip-section .btn-primary {
    width: 250px !important;    
    padding: 12px 24px 12px 0px;
}
.img-holder img {
   height: auto;
   width: auto;
   vertical-align: middle;
   max-height: 100%;
   max-width: 100%;
}

.img-holder {
    height: 25px;
    margin-bottom: 15px !important;
    max-width: 130px;
}

.make-button {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px !important;
}

.model-button{
     white-space: normal; 
}

.step-container .no-data {
    display: block;
}


 /* Loading styles */
            .loading-overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(255,255,255,0.8);
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                z-index: 1000;
            }
            .loading-spinner {
                border: 5px solid #f3f3f3;
                border-top: 5px solid #0066cc;
                border-radius: 50%;
                width: 50px;
                height: 50px;
                animation: spin 1s linear infinite;
                margin-bottom: 20px;
            }
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            
            /* Option buttons for Yes/No questions */
            .button-grid {
                display: flex;
                flex-direction: row;
                gap: 10px;
                justify-content: center;
                margin: 20px 0;
            }
            
            .step-container .btn-option {
                flex: 1;
                background-color: #f0f0f0;
                color: #333;
                padding: 15px 30px;
                border: 2px solid #ddd;
                border-radius: 5px;
                cursor: pointer;
                /* font-size: 18px; */
                /* font-weight: bold; */
                transition: all 0.3s ease;
            }
            
            .step-container .btn-option:hover {
                background-color: #0066cc;
                color: white;
                border-color: #0056b3;
            }
            
    
            
            /* Hide number input arrows */
            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;
            }




.section-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}

.full-width-select {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-option {
    flex: 1;
    background-color: #f0f0f0;
    color: #333;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;    
    transition: all 0.3s ease;
    margin: 5px;
    min-width: calc(50% - 10px);
}

.primary-use-grid,
.carrier-months-grid,
.credit-rating-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.primary-use-grid .btn-option,
.carrier-months-grid .btn-option,
.credit-rating-grid .btn-option {
    flex: 0 0 calc(50% - 10px);
    white-space: normal;
}

.ownership-grid .btn-option {
    /* flex: 1; */
    min-width: 0;
}

@media (max-width: 600px) {
    .primary-use-grid .btn-option,
    .carrier-months-grid .btn-option,
    .credit-rating-grid .btn-option {
        flex: 0 0 100%;
    }
    
    .ownership-grid .btn-option {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }
}			