/* Styles pour le formulaire de contact haut de gamme */
.contact-form-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--secondery-color);
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(34, 34, 34, 0.03);
    z-index: 1;
}

.contact-form-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(34, 34, 34, 0.02);
    z-index: 1;
}

.contact-form-container {
    position: relative;
    z-index: 2;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-form-header h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.contact-form-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--accent-color);
}

.contact-form-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

.luxury-form {
    background: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.form-row {
    display: flex;
    margin: -10px;
    flex-wrap: wrap;
}

.form-col {
    flex: 1 0 calc(50% - 20px);
    margin: 10px;
}

.form-col.full-width {
    flex: 1 0 calc(100% - 20px);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group.focused label {
    top: -25px;
    left: 0;
    font-size: 14px;
    color: var(--accent-color);
}

.input-label {
    position: absolute;
    top: 15px;
    left: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #999;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
    background-color: white;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.custom-select select:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
    background-color: white;
}

.custom-select::after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-btn-container {
    text-align: center;
    margin-top: 15px;
}

.submit-btn {
    position: relative;
    display: inline-block;
    background: var(--accent-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    border: none;
    border-radius: 50px;
    padding: 17px 40px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--white-color);
    z-index: -1;
    transition: all 0.5s ease-in-out;
    border-radius: 50px;
}

.submit-btn:hover {
    color: var(--accent-color);
}

.submit-btn:hover::before {
    width: 100%;
}

@media (max-width: 991px) {
    .contact-form-section {
        padding: 80px 0;
    }
    
    .luxury-form {
        padding: 35px;
    }
    
    .form-col {
        flex: 1 0 calc(100% - 20px);
    }
}

@media (max-width: 575px) {
    .contact-form-section {
        padding: 60px 0;
    }
    
    .luxury-form {
        padding: 25px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .form-control, .custom-select select {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .input-label {
        font-size: 14px;
        left: 15px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 14px 30px;
    }
}

/* Animations pour le formulaire */
.animation-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.form-active .animation-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* Délai pour les éléments animés */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Message d'erreur et de succès */
.form-message {
    display: none;
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}
