/* Custom styles for the financing form */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
}

/* Form styling */
.form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Well sections */
.well {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.well-subsection {
    padding: 0;
}

/* Section headers */
.sub-section-toggle {
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.sub-section-toggle h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
}

.font-size-data {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Form groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group.highlight {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group label.blue {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group label small {
    color: #6c757d;
    font-weight: 400;
}

/* Form controls */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Language selector */
.language-select {
    margin-bottom: 1rem;
}

.language-option a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-option a:hover {
    background-color: #e7f3ff;
    color: #0056b3;
}

/* Submit button */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner animation */
.spinner-ring {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading state */
.form-submit-wait-text {
    background-color: #007bff;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Read more functionality */
.read-more {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.read-more.expanded {
    max-height: none;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.read-more-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Border success for validation */
.border-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form {
        padding: 1rem;
    }
    
    .well {
        padding: 1rem;
    }
    
    .form-group.highlight {
        padding: 0.75rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
    }
}

/* Custom select styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Phone number formatting */
.phone-element {
    font-family: 'Courier New', monospace;
}

/* SSN formatting */
.ssn-element {
    font-family: 'Courier New', monospace;
}

/* Date formatting */
.date-element {
    font-family: 'Courier New', monospace;
}

/* Zip code formatting */
.zip-element {
    font-family: 'Courier New', monospace;
}

/* Numeric formatting */
.numeric-element {
    text-align: right;
    font-family: 'Courier New', monospace;
}


/* Additional styles from baseFile.html */
.hidden-print {
    display: none !important;
}

/* Form validation styles */
.border-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Age alert styles */
#age_alert {
    display: none;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* Form submit wait text */
.form-submit-wait-text {
    background-color: #007bff;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Spinner ring */
.spinner-ring {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Read more functionality */
.read-more {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.read-more.expanded {
    max-height: none;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.read-more-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Form group highlight */
.form-group.highlight {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

/* Sub section toggle */
.sub-section-toggle {
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.sub-section-toggle h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Font size data */
.font-size-data {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Well subsection */
.well-subsection {
    padding: 0;
}

/* Collapse animation */
.collapse {
    transition: height 0.3s ease;
}

/* Focus states for accessibility */
.form-control:focus,
.btn:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Custom select styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Phone number formatting */
.phone-element {
    font-family: 'Courier New', monospace;
}

/* SSN formatting */
.ssn-element {
    font-family: 'Courier New', monospace;
}

/* Date formatting */
.date-element {
    font-family: 'Courier New', monospace;
}

/* Zip code formatting */
.zip-element {
    font-family: 'Courier New', monospace;
}

/* Numeric formatting */
.numeric-element {
    text-align: right;
    font-family: 'Courier New', monospace;
}
