/* ============================================
   Multi-Step Form Styles
   ============================================ */

/* Step Progress Bar */
.step-progress-wrapper {
    margin-bottom: 50px;
    padding: 0 20px;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 24px;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.step-check {
    position: absolute;
    width: 28px;
    height: 28px;
    fill: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 -10px;
    position: relative;
    top: -20px;
    transition: all 0.4s ease;
}

.step-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
}

/* Active Step */
.step-item.active .step-circle {
    border-color: #ffffff;
    background: linear-gradient(135deg, #021a51 0%, #00309d 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 5px rgba(102, 126, 234, 0.4);
}

.step-item.active .step-number {
    color: #fff;
}

.step-item.active .step-label {
    color: #012575;
    font-weight: 700;
}

/* Completed Step */
.step-item.completed .step-circle {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.step-item.completed .step-number {
    opacity: 0;
    transform: scale(0);
}

.step-item.completed .step-check {
    opacity: 1;
    transform: scale(1);
}

.step-item.completed .step-label {
    color: #10b981;
}

.step-item.completed + .step-line::before {
    width: 100%;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #012575 0%, #012575 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Form Controls Enhancement */
.get-quote-form .form-control {
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 2px solid #e0e0e0;
    box-shadow: none;
    border-radius: 10px;
    outline: 0;
    font-size: 16px;
    font-weight: 400;
    padding: 14px 18px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.get-quote-form .form-control:focus {
    background-color: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.get-quote-form .form-control:hover {
    border-color: #b8b8b8;
}

.get-quote-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    height: 52px;
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #b8b8b8;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    background-color: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color);
    line-height: 48px;
    padding-left: 18px;
    font-size: 16px;
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 18px;
}

.select2-dropdown {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.select2-container {
    margin-top: 8px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #667eea;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    margin-top: 8px;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    border: 3px dashed #d0d0d0;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-wrapper:hover .upload-icon {
    fill: #667eea;
    transform: translateY(-5px);
}

.upload-icon {
    fill: #999;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.upload-hint {
    font-size: 13px;
    color: #999;
    display: block;
}

.file-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 20px;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.remove-file {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 35px;
    height: 35px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 3;
}

.remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Form Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    gap: 15px;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-prev {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-prev:hover {
    background: #667eea;
    color: #fff;
    transform: translateX(-5px);
}

.btn-prev svg {
    fill: currentColor;
}

.btn-next {
    background: linear-gradient(135deg, #012575 0%, #012575 100%);
    color: #fff;
    margin-left: auto;
}

.btn-next:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-next svg {
    fill: #fff;
}

.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    margin-left: auto;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-submit svg {
    fill: #fff;
}

/* Error Messages */
.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Success Message */
.success-message {
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.success-message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

.alert-danger {
    color: #991b1b;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alert-danger::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-progress {
        flex-direction: column;
        gap: 30px;
    }

    .step-line {
        display: none;
    }

    .step-circle {
        width: 50px;
        height: 50px;
    }

    .step-number {
        font-size: 20px;
    }

    .step-check {
        width: 24px;
        height: 24px;
    }

    .step-label {
        font-size: 13px;
    }

    .step-header h3 {
        font-size: 24px;
    }

    .step-header p {
        font-size: 14px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }

    .btn-prev:hover,
    .btn-next:hover {
        transform: none;
    }

    .btn-submit:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 576px) {
    .step-progress-wrapper {
        padding: 0 10px;
    }

    .get-quote-form .form-control {
        font-size: 14px;
        padding: 12px 15px;
    }

    .step-header {
        margin-bottom: 30px;
    }

    .form-navigation {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Field Focus Animation */
.form-group {
    position: relative;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    transform: translateY(-8px);
    font-size: 12px;
    color: #667eea;
}

/* Smooth Transitions */
* {
    box-sizing: border-box;
}

.get-quote-form form .row .col-md-12,
.get-quote-form form .row {
    padding-right: 15px;
    padding-left: 15px;
}

/* Accessibility Improvements */
.btn-prev:focus,
.btn-next:focus,
.btn-submit:focus,
.form-control:focus,
.select2-container--focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .step-progress-wrapper,
    .form-navigation {
        display: none;
    }

    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}

.get-quote {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    border-radius: 16px;
    background-color: #f7f7f7;
}






/* Phone Input Styling */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #f8f9fa;
    /* height: 45px; */
}

.phone-input-wrapper:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.country-selector {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    cursor: pointer;
    min-width: 90px;
    height: 100%;
    transition: background-color 0.2s;
    user-select: none;
}

.country-selector:hover {
    background: #e9ecef;
}

.country-selector .flag-icon {
    margin-right: 6px;
    line-height: 0;
}

.country-selector .country-code {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    border: none !important;
    padding: 7px 12px 16px 12px;
    font-size: 14px;
    outline: none;
    box-shadow: none !important;
    background: transparent;
}

.phone-input-wrapper input[type="tel"]:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-dropdown.active {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option:first-child {
    border-radius: 5px 5px 0 0;
}

.country-option:last-child {
    border-radius: 0 0 5px 5px;
}

.country-option .flag-icon {
    font-size: 22px;
    margin-right: 12px;
    line-height: 1;
    min-width: 30px;
}

.flag-icon img {
    width: 32px;
    object-fit: cover;
}

.country-option .country-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.country-option .country-code {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}



.custom-checkbox-wrapper {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    margin: 0;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #007bff;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkbox-label {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}