/* Modal container styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    background-color: white;
    border-radius: 8px;
}
.close {
    position: absolute;
    top: -22px;
    right: -22px;
    font-size: 32px;
    cursor: pointer;
    background-color: white;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
/* Loader overlay */
.form-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.form-loader .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EF1C27;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.form-header {
    background: linear-gradient(135deg, #EF1C27 0%, rgb(0, 0, 0) 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    margin-bottom: 0;
}
.form-body {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}
.progress-container {
    padding: 0 30px;
    background-color: #f8f9fa;
}
.section-title {
    border-bottom: 2px solid #EF1C27;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #EF1C27;
}
.btn-submit {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 12px 30px;
    font-weight: bold;
}
.form-label {
    font-weight: 500;
}
.form-control:focus, .form-select:focus {
    border-color: #EF1C27;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.invalid-feedback {
    font-size: 80%;
}
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.step {
    text-align: center;
    width: 33%;
    position: relative;
}
.step-number {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e9ecef;
    margin: 0 auto 5px;
    z-index: 2;
    position: relative;
}
.step.active .step-number {
    background-color: #EF1C27;
    color: white;
}
.step.completed .step-number {
    background-color: #198754;
    color: white;
}
.step-title {
    font-size: 0.9rem;
    color: #6c757d;
}
.step.active .step-title {
    color: #EF1C27;
    font-weight: 500;
}
.step.completed .step-title {
    color: #198754;
    font-weight: 500;
}
.step-connector {
    position: absolute;
    top: 15px;
    height: 2px;
    background-color: #e9ecef;
    width: 100%;
    left: 50%;
    z-index: 1;
}
.step:last-child .step-connector {
    display: none;
}
.step.completed .step-connector {
    background-color: #EF1C27;
}
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}
.animate-feedback {
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeStep 0.4s;
}
@keyframes fadeStep {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.btn-nav {
    min-width: 100px;
}
.success-message {
    text-align: center;
    padding: 40px 20px;
    display: none;
}
.success-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 20px;
}
.form-container {
    max-width: 1200px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
#inquiryFormModal .form-step {
    display: none;
}
#inquiryFormModal .form-step.active {
    display: block;
    animation: slideInRight 0.5s ease-in-out;
}