/* EAFPS — EBEC frontend
 *
 * Wrapper around the apply button + the application form. The form itself
 * inherits all its chrome from application-forms.css (shared with the
 * membership / event flows), so we only style the surrounding container
 * and the "Apply" reveal button here.
 */

.eafps-ebec {
    --eafps-brand: #0f3a5f;
    font-family: "Inter", inherit;
    color: #2a2a2a;
    box-sizing: border-box;
}
.eafps-ebec * { box-sizing: inherit; }

.eafps-ebec__title {
    margin: 0 0 18px;
    font-family: "Butler", serif;
    font-weight: 400;
    font-size: 32px;
    color: var(--eafps-brand);
}

.eafps-ebec__description,
.eafps-ebec__consigne,
.eafps-ebec__instructions {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.55;
}
.eafps-ebec__consigne {
    background: #f6f8fb;
    padding: 14px 18px;
    border-radius: 10px;
}
.eafps-ebec__instructions {
    margin-top: 24px;
    font-size: 14px;
    color: #6b7480;
}

.eafps-ebec__apply-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.eafps-ebec__apply-btn {
    display: inline-flex !important;
    padding: 14px 20px !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--nectar-accent-color) !important;
    border: 1px solid var(--nectar-accent-color) !important;
    border-radius: 50px !important;
    color: #FFF !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: normal;
    text-transform: uppercase;
    text-align: center;
    opacity: 1 !important;
    cursor: pointer;
    transition: gap .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.eafps-ebec__apply-btn:hover {
    background: transparent !important;
    border: 1px solid var(--nectar-accent-color) !important;
    color: var(--nectar-accent-color) !important;
}
.eafps-ebec__apply-btn.is-active {
    opacity: 0.55 !important;
    pointer-events: none;
}

.eafps-ebec__form-wrap[hidden] {
    display: none;
}

.eafps-ebec__notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 4px solid;
    font-size: 15px;
    line-height: 1.5;
}
.eafps-ebec__notice--success {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b4720;
}
.eafps-ebec__notice--info {
    background: #fff3e0;
    border-color: #e65100;
    color: #4a2300;
}

/* ── Thank-you page (hero navy + image right + overlapping white card) ── */

.eafps-ebec-ty {
    --eafps-ty-navy:        #272E47;
    --eafps-ty-text:        #4C4C4C;
    --eafps-ty-hero-pad-y:  60px;
    --eafps-ty-hero-pad-x:  100px;
    --eafps-ty-image-w:     440px;
    --eafps-ty-image-h:     420px;
    --eafps-ty-image-top:   60px;
    --eafps-ty-image-gap:   50px;

    position: relative;
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: "Inter", inherit;
    box-sizing: border-box;
}
.eafps-ebec-ty * { box-sizing: inherit; }

.eafps-ebec-ty__hero {
    position: relative;
    background: var(--eafps-ty-navy);
    border-radius: 15px;
    padding: var(--eafps-ty-hero-pad-y) var(--eafps-ty-hero-pad-x);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    min-height: calc( var(--eafps-ty-image-top) + var(--eafps-ty-image-h) * 0.6 );
}

.eafps-ebec-ty__title {
    color: #FFF;
    font-family: "Inter", sans-serif;
    font-size: 45px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.45px;
    text-transform: uppercase;
    margin: 0;
    max-width: calc( 100% - var(--eafps-ty-image-w) - var(--eafps-ty-image-gap) );
}

.eafps-ebec-ty__image {
    position: absolute;
    top: var(--eafps-ty-image-top);
    right: var(--eafps-ty-hero-pad-x);
    width: var(--eafps-ty-image-w);
    height: var(--eafps-ty-image-h);
    background-color: lightgray;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.eafps-ebec-ty__message {
    /* The image (absolute) sits at `right: var(--hero-pad-x)` and is
     * `var(--image-w)` wide — so its LEFT edge sits at
     * (right_pad + image_w) from the container's right edge. We reserve
     * that distance + a gap as right margin so the text never flows
     * underneath the image. */
    margin: 48px 0 0 var(--eafps-ty-hero-pad-x);
    margin-right: calc( var(--eafps-ty-hero-pad-x) + var(--eafps-ty-image-w) + var(--eafps-ty-image-gap) );
    color: var(--eafps-ty-text);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 170%;
}
.eafps-ebec-ty__message p { margin: 0 0 1em; }
.eafps-ebec-ty__message p:last-child { margin-bottom: 0; }

/* ── Responsive collapse ───────────────────────────────────────────── */

@media ( max-width: 1300px ) {
    .eafps-ebec-ty {
        --eafps-ty-hero-pad-x: 80px;
        --eafps-ty-image-w:    420px;
        --eafps-ty-image-h:    420px;
    }
    .eafps-ebec-ty__title { font-size: 36px; }
}

@media ( max-width: 1000px ) {
    .eafps-ebec-ty {
        padding: 0 16px 60px;
    }
    .eafps-ebec-ty__hero {
        padding: 56px 28px;
        min-height: 0;
    }
    .eafps-ebec-ty__title {
        font-size: 28px;
        max-width: 100%;
    }
    .eafps-ebec-ty__image {
        position: static;
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        margin-top: 28px;
        border-radius: 8px;
    }
    .eafps-ebec-ty__message {
        margin: -32px 16px 0;
        padding: 28px 24px;
    }
}
