/**
 * Styles pour le formulaire de candidature front-end
 * Plugin Gestion des Candidats
 */

/* Container principal */
.gelec-front-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.gelec-front-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.gelec-front-header h2 {
    color: #333;
    font-size: 28px;
    margin: 0 0 10px 0;
}

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

/* Messages */
.gelec-front-message {
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.gelec-front-message h3 {
    margin: 10px 0;
    font-size: 20px;
}

.gelec-front-message p {
    margin: 10px 0 0 0;
    font-size: 15px;
}

.gelec-front-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.gelec-front-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #fc8181;
    color: #c53030;
}

.gelec-front-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 1px solid #68d391;
    color: #276749;
}

.gelec-front-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border: 1px solid #63b3ed;
    color: #2b6cb0;
}

/* Formulaire */
.gelec-front-form {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Sections */
.gelec-front-section {
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.gelec-front-section:last-of-type {
    border-bottom: none;
}

.gelec-front-section h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.gelec-front-section-desc {
    color: #718096;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Lignes de champs */
.gelec-front-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.gelec-front-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .gelec-front-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Champs */
.gelec-front-field {
    flex: 1;
}

.gelec-front-field-full {
    flex: 1 1 100%;
}

.gelec-front-field label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.gelec-front-field label .required {
    color: #e53e3e;
}

.gelec-front-field input[type="text"],
.gelec-front-field input[type="email"],
.gelec-front-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.gelec-front-field input[type="text"]:focus,
.gelec-front-field input[type="email"]:focus,
.gelec-front-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.gelec-front-disabled {
    background: #f7fafc !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
}

/* Radio buttons pour motivation */
.gelec-front-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gelec-front-radio {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gelec-front-radio:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.gelec-front-radio input[type="radio"] {
    margin: 3px 15px 0 0;
    transform: scale(1.3);
    cursor: pointer;
}

.gelec-front-radio input[type="radio"]:checked + .gelec-front-radio-label {
    color: #667eea;
    font-weight: 600;
}

.gelec-front-radio:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border-color: #667eea;
}

.gelec-front-radio-label {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
}

/* Bouton de soumission */
.gelec-front-submit {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    text-align: center;
}

.gelec-front-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gelec-front-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.gelec-front-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .gelec-front-container {
        padding: 15px;
        margin: 15px;
    }
    
    .gelec-front-section {
        padding: 20px;
    }
    
    .gelec-front-header h2 {
        font-size: 22px;
    }
    
    .gelec-front-submit {
        padding: 20px;
    }
    
    .gelec-front-btn {
        width: 100%;
        padding: 15px 20px;
    }
}
