/* ==========================================================================
   MADRASSA — CANDIDATURE ENSEIGNANT
   Fichier : public/assets/css/public-teacher-application.css
   ========================================================================== */

.public-page-hero--teacher-application {
    min-height: 540px;
    background:
        linear-gradient(
            90deg,
            rgba(6,47,34,.98),
            rgba(6,47,34,.82) 52%,
            rgba(6,47,34,.26)
        ),
        url('/assets/images/recrutement.png') 84% center / min(46vw, 720px) auto no-repeat,
        linear-gradient(145deg, #0a3b2b, #052d21);
}

.teacher-application-intro {
    align-items: flex-start;
}

.teacher-application-intro strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--public-green-950);
}

.teacher-application-form {
    display: grid;
    gap: 1.5rem;
}

.teacher-form-section {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.teacher-form-section__header {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.teacher-form-section__number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fffdf7;
    background: linear-gradient(
        135deg,
        var(--public-green-700),
        var(--public-green-950)
    );
    border: 1px solid rgba(214,164,59,.34);
    border-radius: 16px;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(6,47,34,.16);
}

.teacher-form-section__header .public-section-kicker {
    margin-bottom: .25rem;
}

.teacher-form-section__title {
    margin: 0;
    color: var(--public-green-950);
    font-family:"Outfit", sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.1rem);
    font-weight: 700;
    line-height: 1.1;
}

.teacher-application-form .form-label {
    margin-bottom: .45rem;
    color: var(--public-green-950);
    font-size: .88rem;
    font-weight: 800;
}

.teacher-application-form .form-control,
.teacher-application-form .form-select {
    min-height: 50px;
    color: var(--public-text);
    background: #fffdf8;
    border: 1px solid rgba(9,59,43,.17);
    border-radius: 13px;
    box-shadow: none;
}

.teacher-application-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.teacher-application-form .form-control:focus,
.teacher-application-form .form-select:focus {
    background: #fff;
    border-color: var(--public-gold-500);
    box-shadow: 0 0 0 4px rgba(214,164,59,.13);
}

.teacher-application-form .form-control.is-invalid,
.teacher-application-form .form-select.is-invalid {
    border-color: #b94a42;
}

.teacher-application-form .invalid-feedback {
    margin-top: .35rem;
    color: #a83c35;
    font-size: .8rem;
}

.teacher-form-help {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem;
    color: var(--public-text-soft);
    background: rgba(52,108,120,.07);
    border: 1px solid rgba(52,108,120,.16);
    border-radius: 14px;
    line-height: 1.65;
}

.teacher-form-help > i {
    margin-top: .2rem;
    color: var(--public-gold-700);
}

.availability-card {
    height: 100%;
    padding: 1rem;
    background: rgba(255,255,255,.66);
    border: 1px solid var(--public-border);
    border-radius: 16px;
}

.availability-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.availability-card__total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 32px;
    padding: .35rem .65rem;
    color: var(--public-gold-700);
    background: rgba(214,164,59,.12);
    border: 1px solid rgba(168,108,12,.18);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}

.avail-slot-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .9rem;
    transition: opacity .2s ease;
}

.avail-slot-group.is-disabled {
    opacity: .45;
}

.availability-slot {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 46px;
    padding: .7rem .8rem;
    color: var(--public-green-950);
    background: #fffdf8;
    border: 1px solid var(--public-border);
    border-radius: 12px;
    cursor: pointer;
}

.availability-slot:has(input:checked) {
    background: rgba(214,164,59,.12);
    border-color: rgba(168,108,12,.28);
}

.availability-slot input {
    flex: 0 0 auto;
}

.availability-slot span {
    font-size: .82rem;
    font-weight: 700;
}

.availability-card__hint {
    margin-top: .75rem;
    color: var(--public-text-faint);
    font-size: .75rem;
    line-height: 1.5;
}

.teacher-week-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--public-green-950);
    background: rgba(214,164,59,.10);
    border: 1px solid rgba(168,108,12,.18);
    border-radius: 14px;
}

.teacher-week-total span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
}

.teacher-week-total i {
    color: var(--public-gold-700);
}

.teacher-week-total strong {
    color: var(--public-green-950);
    font-family:"Outfit", sans-serif;
    font-size: 1.45rem;
}

.teacher-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.teacher-choice {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 46px;
    padding: .7rem .8rem;
    color: var(--public-green-950);
    background: rgba(255,255,255,.66);
    border: 1px solid var(--public-border);
    border-radius: 12px;
    cursor: pointer;
}

.teacher-choice:has(input:checked) {
    background: rgba(214,164,59,.12);
    border-color: rgba(168,108,12,.28);
}

.teacher-choice span {
    font-size: .82rem;
    font-weight: 700;
}

.teacher-file-help {
    display: block;
    margin-top: .4rem;
    color: var(--public-text-faint);
    font-size: .76rem;
}

.teacher-consent-list {
    display: grid;
    gap: .85rem;
}

.teacher-consent-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 1rem;
    background: rgba(255,255,255,.66);
    border: 1px solid var(--public-border);
    border-radius: 14px;
}

.teacher-consent-item label {
    color: var(--public-text-soft);
    line-height: 1.6;
    cursor: pointer;
}

.teacher-application-form .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .15rem;
    border-color: rgba(9,59,43,.26);
    box-shadow: none;
}

.teacher-application-form .form-check-input:checked {
    background-color: var(--public-green-800);
    border-color: var(--public-green-800);
}

.teacher-application-form .form-check-input:focus {
    border-color: var(--public-gold-500);
    box-shadow: 0 0 0 4px rgba(214,164,59,.13);
}

.teacher-form-actions {
    display: flex;
    justify-content: center;
    gap: .8rem;
    padding-top: .5rem;
}

.teacher-form-actions .public-btn {
    min-width: 220px;
}

.public-notice--danger {
    color: #8c332e;
    background: rgba(168,60,53,.09);
    border: 1px solid rgba(168,60,53,.20);
}

.rtl-page .teacher-form-section__header {
    direction: rtl;
}

.rtl-page .teacher-choice,
.rtl-page .availability-slot,
.rtl-page .teacher-consent-item {
    direction: rtl;
}

@media (max-width: 1199.98px) {
    .public-page-hero--teacher-application {
        background-size: 52vw auto;
        background-position: 94% center;
    }

    .teacher-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .public-page-hero--teacher-application {
        min-height: 480px;
        background:
            linear-gradient(
                90deg,
                rgba(6,47,34,.98),
                rgba(6,47,34,.90)
            ),
            linear-gradient(145deg, #0a3b2b, #052d21);
    }
}

@media (max-width: 767.98px) {
    .teacher-form-section__header {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .teacher-form-section__number {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .avail-slot-group,
    .teacher-choice-grid {
        grid-template-columns: 1fr;
    }

    .teacher-form-actions {
        flex-direction: column;
    }

    .teacher-form-actions .public-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .public-page-hero--teacher-application {
        min-height: 430px;
    }

    .teacher-form-section {
        padding: 1rem;
    }

    .availability-card__header,
    .teacher-week-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-form-section__title {
        font-size: 1.15rem;
    }
}
/* PAGE DE REMERCIEMENT */
.teacher-application-thanks-page{min-height:100vh;background:radial-gradient(circle at 20% 10%,rgba(214,164,59,.10),transparent 24rem),var(--public-bg)}.teacher-thanks-section{display:flex;align-items:center;min-height:calc(100vh - 160px);padding:clamp(3rem,8vw,6rem) 0}.teacher-thanks-card{position:relative;max-width:820px;margin:0 auto;padding:clamp(1.5rem,4vw,3rem);overflow:hidden;text-align:center;background:radial-gradient(circle at 100% 0,rgba(214,164,59,.13),transparent 18rem),rgba(255,253,248,.96);border:1px solid var(--public-border);border-radius:28px;box-shadow:0 28px 80px rgba(6,47,34,.14)}.teacher-thanks-card::before{position:absolute;inset:auto -80px -120px auto;width:320px;height:320px;content:"";background:url('/assets/images/recrutement.png') center/cover no-repeat;border-radius:50%;opacity:.08;pointer-events:none}.teacher-thanks-card__icon{display:grid;place-items:center;width:78px;height:78px;margin:0 auto 1.25rem;color:#fff;background:linear-gradient(135deg,var(--public-green-700),var(--public-green-950));border:1px solid rgba(214,164,59,.35);border-radius:24px;box-shadow:0 16px 36px rgba(6,47,34,.18);font-size:2rem}.teacher-thanks-card__title{margin:0;color:var(--public-green-950);font-family:"Outfit",sans-serif;font-size:clamp(2rem,5vw,3.3rem);font-weight:800;line-height:1.08}.teacher-thanks-card__text{max-width:650px;margin:1rem auto 0;color:var(--public-text-soft);font-size:1rem;line-height:1.75}.teacher-thanks-card__notice{display:flex;align-items:flex-start;gap:.8rem;max-width:650px;margin:1.5rem auto 0;padding:1rem 1.1rem;text-align:left;color:var(--public-text-soft);background:rgba(214,164,59,.10);border:1px solid rgba(168,108,12,.18);border-radius:15px}.teacher-thanks-card__notice>i{margin-top:.2rem;color:var(--public-gold-700)}.teacher-thanks-card__notice strong{display:block;margin-bottom:.2rem;color:var(--public-green-950)}.teacher-thanks-card__actions{display:flex;justify-content:center;gap:.8rem;flex-wrap:wrap;margin-top:1.75rem}@media(max-width:575.98px){.teacher-thanks-section{align-items:flex-start;min-height:auto;padding:2rem 0}.teacher-thanks-card{border-radius:20px}.teacher-thanks-card__actions{flex-direction:column}.teacher-thanks-card__actions .public-btn{width:100%}}