/* Universal Modal System Styles */
/* Consistent styling for all credit and trade modals */

.universal-modal-content {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 30px;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* When modal is used inline (not as overlay), match trade-in form styling */
.universal-modal-content.inline {
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    color: #005694;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 300;
}

.modal-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border: none;
}

/* Form Section Headers - match trade-in style */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #005694;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #005694;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-row.single-col {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.span-2 {
    grid-column: span 2;
}

.form-field.span-3 {
    grid-column: span 3;
}

/* Form Controls - match trade-in styling */
.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #005694;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 148, 0.1);
}

.form-field input.error,
.form-field select.error {
    border-color: #e74c3c;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Special Input Groups - SSN styling removed as now using single field */

/* Required Field Indicator - match trade-in styling */
.required {
    color: red;
}

/* Responsive Design */
@media (max-width: 768px) {
    .universal-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-field.span-2,
    .form-field.span-3 {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .universal-modal-content {
        padding: 15px;
        margin: 5px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .form-section {
        padding: 15px;
    }
}

/* Navigation Buttons - match trade-in form styling */
.modal-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
}

#modal-prev,
#modal-next {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

#modal-prev {
    background: #6c757d;
    color: white;
}

#modal-prev:hover {
    background: #5a6268;
}

#modal-next {
    background: #005694;
    color: white;
}

#modal-next:hover {
    background: #004080;
}

#modal-next.btn-success {
    background: #28a745;
}

#modal-next.btn-success:hover {
    background: #218838;
}

/* Progress Indicator - cleaner design */
.modal-progress {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #005694, #007bb8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #005694;
    font-weight: 600;
    font-size: 14px;
}