/**
 * TeamTailor Application Form Styles
 */

/* Styles de base du formulaire */
.teamtailor-application-form {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.teamtailor-form-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.teamtailor-job-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 18px;
}

/* Grille de formulaire */
.teamtailor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Champs de formulaire */
.teamtailor-form-field {
    margin-bottom: 15px;
}

.teamtailor-form-field.full-width {
    grid-column: span 2;
}

.teamtailor-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.teamtailor-form-field label .required {
    color: #e53935;
}

.teamtailor-form-field input[type="text"],
.teamtailor-form-field input[type="email"],
.teamtailor-form-field input[type="tel"],
.teamtailor-form-field input[type="url"],
.teamtailor-form-field input[type="number"],
.teamtailor-form-field select,
.teamtailor-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.teamtailor-form-field input[type="file"] {
    padding: 8px 0;
}

.teamtailor-form-field .file-info {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Styles d'erreur */
.teamtailor-form-field input.error,
.teamtailor-form-field select.error,
.teamtailor-form-field textarea.error {
    border-color: #e53935;
}

.teamtailor-form-field .error-message {
    display: none;
    margin-top: 5px;
    color: #e53935;
    font-size: 12px;
}

/* Bouton de soumission */
.teamtailor-form-submit {
    margin-top: 25px;
    text-align: center;
}

.teamtailor-submit-btn {
    padding: 12px 30px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.teamtailor-submit-btn:hover {
    background-color: #1976d2;
}

/* Messages de ru00e9ponse */
.teamtailor-form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.teamtailor-form-response.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.teamtailor-form-response.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Responsive */
@media (max-width: 768px) {
    .teamtailor-form-grid {
        grid-template-columns: 1fr;
    }
    
    .teamtailor-form-field.full-width {
        grid-column: 1;
    }
}
