/* Base variables using your brand colors */
:root {
    --primary-color: #592260;
    --primary-color-light: #f3e9f4;
    --secondary-color: #00a89c;
    --secondary-light: #e0f2f1;
}

/* General Form Styling */
.form-step { display: none; animation: fadeIn 0.5s ease-in-out; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.form-field { margin-bottom: 1.25rem; position: relative; }
.grid .form-field:last-child { margin-bottom: 0; }

.form-input, .form-select, textarea.form-input { 
    width: 100%; 
    padding: 0.65rem 0.75rem; 
    color: #1f2937; 
    background-color: #f9fafb; 
    border: 1px solid #d1d5db; 
    border-radius: 0.375rem; 
    transition: all 0.2s ease-in-out; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
}

textarea.form-input { resize: vertical; }

.form-select { 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); 
    background-position: right 0.5rem center; 
    background-repeat: no-repeat; 
    background-size: 1.5em 1.5em; 
    padding-right: 2.5rem; 
}

.form-input:focus, .form-select:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    background-color: #ffffff; 
    box-shadow: 0 0 0 2px var(--primary-color-light); 
}

.form-field-label { 
    display: block; 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: #4b5563; 
    margin-bottom: 0.25rem; 
}

.form-step-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #1f2937; 
    margin-bottom: 1.5rem; 
    text-align: left; 
}

/* Validation Styling */
.form-input.invalid, .form-select.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px #fee2e2;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none; /* Hidden by default */
}

/* Step Indicator Styling */
.step-indicator { display: flex; align-items: center; opacity: 0.5; transition: all 0.3s ease; padding-left: 4px; border-left: 4px solid transparent; }
.step-indicator .step-indicator-desc { display: none; }
.step-indicator.active { opacity: 1; border-left-color: var(--secondary-color); transform: translateX(5px); }
.step-indicator.active .step-indicator-desc { display: block; }
.step-indicator.completed { opacity: 1; }
.step-indicator.completed .step-indicator-icon { background-color: var(--secondary-color); color: white; }
.step-indicator-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; margin-right: 1rem; transition: background-color 0.3s ease; }
.step-indicator-title { font-weight: 600; color: #ffffff; }
.step-indicator-desc { font-size: 0.875rem; color: #d8b4fe; opacity: 0.9; }

/* Car Make Selection Modal */
.car-make-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    height: 100px;
}
.car-make-item:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color-light);
}
.car-make-item img {
    height: 40px;
    width: auto;
    max-width: 100%;
    margin-bottom: 8px;
    object-fit: contain;
}
.car-make-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-top: auto;
}

/* intl-tel-input Customization */
.iti {
    width: 100%;
}
.iti__country-list {
    z-index: 110;
}
.iti .form-input {
    padding-left: 52px;
}
#preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.75s ease, visibility 0.75s ease;
    }
    .preloader-logo {
        width: 80px;
        animation: pulse 1.5s ease-in-out infinite;
    }
    #preloader.loaded {
        opacity: 0;
        visibility: hidden;
    }
    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.1);
            opacity: 0.7;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
