/* ==========================================================================
   Formulaire de candidature - First Choice Recruitment
   ========================================================================== */

.fcr-application-wrapper {
    max-width: 850px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: block;
}

.fcr-application-heading {
    margin-bottom: 28px;
}

.fcr-application-heading h2 {
    margin-bottom: 8px;
    color: var(--ink, #163b32);
    font-size: 30px;
}

.fcr-application-heading p {
    color: #59645f;
}

.fcr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.fcr-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fcr-form-field-full {
    grid-column: 1 / -1;
}

.fcr-form-field label {
    font-weight: 600;
    color: #24352e;
}

.fcr-form-field input,
.fcr-form-field select,
.fcr-form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd5d1;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.fcr-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.fcr-form-field input:focus,
.fcr-form-field select:focus,
.fcr-form-field textarea:focus {
    outline: 2px solid var(--brand, #247a5b);
    outline-offset: 1px;
}

.fcr-form-field small,
.fcr-required-note {
    color: #68756e;
    font-size: 13px;
}

.fcr-char-count {
    text-align: right;
}

/* Champs invalides, après une première tentative d'envoi */
.fcr-application-form.was-validated :invalid {
    border-color: #b42318;
}

/* Case de consentement */
.fcr-form-field .fcr-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.fcr-form-field .fcr-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
    margin-top: 4px;
}

/* Champ piège anti-robots : hors écran, invisible pour les humains */
.fcr-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Barre d'actions */
.fcr-form-actions {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.fcr-form-actions .fcr-submit-button,
.fcr-form-actions .fcr-required-note {
    margin: 0;
}

.fcr-submit-button {
    margin-top: 25px;
    padding: 14px 24px;
    border: none;
    border-radius: 7px;
    background: var(--brand, #176b4d);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.fcr-submit-button:hover {
    background: var(--brand-dark, #10543c);
}

.fcr-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Messages */
.fcr-message {
    margin: 0 0 22px;
    padding: 15px;
    border-radius: 7px;
}

.fcr-message:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.fcr-message-success {
    background: #eaf7ef;
    border: 1px solid #a9dfbb;
    color: #175c32;
}

.fcr-message-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #912018;
}

/* Adaptations mobiles */
@media (max-width: 600px) {
    .fcr-application-wrapper {
        margin: 20px 12px;
        padding: 22px 16px;
    }

    .fcr-form-grid {
        grid-template-columns: 1fr;
    }

    .fcr-form-field-full {
        grid-column: auto;
    }

    .fcr-application-heading h2 {
        font-size: 25px;
    }

    .fcr-submit-button {
        width: 100%;
    }
}
