.quote-section {
    background-color: #E3DAC9;
    padding: 60px 0;
    position: relative;
}

.quote-form-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 900px;
    margin: 0 auto;
}

.quote-form-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.quote-tabs {
    background: #f8f9fa;
    padding: 15px 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.quote-tabs .nav-link {
    padding: 12px 25px;
    font-weight: 500;
    color: #495057;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.quote-tabs .nav-link.active {
    background: #fff;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.quote-tabs .nav-link.completed {
    color: #28a745;
}

.quote-tabs .nav-link.completed::after {
    content: '✓';
    margin-left: 5px;
}

.form-section {
    padding: 30px 35px;
}

.form-section .row {
    margin-bottom: 20px;
}

.form-section label {
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-section .form-control {
    padding: 12px 16px;
    border: 1.5px solid #e1e8ef;
    border-radius: 8px;
    height: auto;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    background-color: #fff;
}

.form-section .form-control:hover {
    border-color: #b8c2cc;
    background-color: #fff;
}

.navigation-buttons {
    padding: 20px 35px;
    background: #f8fafc;
    border-top: 1px solid #e1e8ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation-buttons button {
    min-width: 130px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-buttons .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 4px 6px rgba(0,123,255,0.11);
    color: #ffffff;
}

.navigation-buttons .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0,123,255,0.15);
}

.navigation-buttons .btn-secondary {
    background-color: #f8fafc;
    border-color: #e1e8ef;
    color: #2c3e50;
}

.navigation-buttons .btn-secondary:hover {
    background-color: #e1e8ef;
    border-color: #cbd5e1;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-indicator .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    position: relative;
}

.step-indicator .step.active {
    background: #007bff;
    color: #fff;
}

.step-indicator .step.completed {
    background: #28a745;
    color: #fff;
}

.step-indicator .step::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #e9ecef;
    right: -40px;
    top: 50%;
}

.step-indicator .step:last-child::after {
    display: none;
}

.form-group label.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: 400;
}

.form-group label.optional::after {
    content: ' (optional)';
    color: #6c757d;
    font-size: 0.875em;
    font-weight: normal;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.5rem;
    font-weight: 500;
}

.is-invalid + .invalid-feedback {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-wrapper {
    padding: 25px 35px;
    background: #fff;
    border-bottom: 1px solid #e1e8ef;
}

.step-progress {
    height: 5px;
    background: #e1e8ef;
    border-radius: 3px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.step-bar {
    position: absolute;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e1e8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}

.step.active .step-number {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,123,255,0.11);
}

.step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.step-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #007bff;
}

.step.completed .step-label {
    color: #28a745;
}

.form-section .select2-container--default .select2-selection--single {
    height: 48px;
    padding: 10px 15px;
    border-color: #ced4da;
}

.form-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.form-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #495057;
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: 48px;
    padding: 8px 15px;
    border-color: #ced4da;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #495057;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border-color: #ced4da;
    border-radius: 4px;
}

.select2-dropdown {
    border-color: #ced4da;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.select2-results__option {
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
}

.city-result {
    padding: 4px 0;
}

.city-result .city-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.city-result small {
    font-size: 12px;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Loading State */
.select2-container--default .select2-results__option.loading-results {
    padding: 12px;
    text-align: center;
    color: #6c757d;
}

.select2-container--default .select2-results__option.loading-results::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #007bff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: select2-spinner .6s linear infinite;
}

@keyframes select2-spinner {
    to { transform: rotate(360deg); }
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .form-section {
        padding: 20px;
    }
    
    .navigation-buttons {
        padding: 15px 20px;
    }
    
    .progress-wrapper {
        padding: 20px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .navigation-buttons button {
        min-width: 110px;
        padding: 8px 16px;
    }
}
