/*
 * Pages publiques /apply et /apply/merci — shell dark (classement)
 */

.jt-pub-cl-header-inner--brand-stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jt-pub-cl-header-inner--brand-stack .jt-pub-cl-header-copy {
    align-items: center;
}

.jt-pub-cl-brand-logo--lc {
    width: min(100%, 280px);
    max-width: 280px;
    height: auto;
    max-height: none;
}

.jt-pub-chapter-chip {
    margin: 0;
    display: flex;
    justify-content: center;
}

.jt-pub-chapter-chip span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #7ee8fa;
    background: rgba(0, 200, 255, 0.12);
    border: 1px solid rgba(0, 200, 255, 0.4);
    border-radius: 999px;
}

.jt-pub-apply-form {
    max-width: 36rem;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 12px;
}

.jt-pub-apply-intro {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.jt-pub-apply-type-fieldset {
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
}

.jt-pub-apply-type-legend {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.jt-pub-apply-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jt-pub-apply-type-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(5, 14, 29, 0.5);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.jt-pub-apply-type-option input {
    margin: 0;
    accent-color: var(--jt-pub-primary);
}

.jt-pub-apply-type-option:has(input:checked) {
    border-color: rgba(0, 200, 255, 0.55);
    background: rgba(0, 200, 255, 0.12);
}

.jt-pub-apply-panel[hidden] {
    display: none !important;
}

.jt-pub-apply-intro[hidden] {
    display: none !important;
}

.jt-pub-apply-alert {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.35);
    color: var(--jt-raw-ffb4b4);
    font-size: 0.95rem;
}

.jt-pub-apply-field {
    margin-bottom: 1rem;
}

.jt-pub-apply-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.jt-pub-apply-field input,
.jt-pub-apply-field select,
.jt-pub-apply-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(5, 14, 29, 0.6);
    color: var(--jt-color-white);
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
}

.jt-pub-apply-field textarea {
    min-height: 5rem;
    resize: vertical;
}

.jt-pub-apply-field input:focus,
.jt-pub-apply-field select:focus,
.jt-pub-apply-field textarea:focus {
    outline: none;
    border-color: rgba(0, 200, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.15);
}

.jt-pub-apply-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.jt-pub-apply-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--jt-pub-primary) 0%, var(--jt-raw-0099cc) 100%);
    color: var(--jt-pub-bg);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.jt-pub-apply-submit:hover {
    filter: brightness(1.08);
}

.jt-pub-apply-back {
    font-size: 0.95rem;
    color: rgba(0, 200, 255, 0.9);
    text-decoration: none;
}

.jt-pub-apply-back:hover {
    text-decoration: underline;
}

.jt-pub-apply-merci {
    max-width: 32rem;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem 1.5rem;
}

.jt-pub-apply-merci p {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 959px) {
    .jt-pub-apply-form {
        padding: 1rem 1rem 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .jt-pub-apply-type-options {
        flex-direction: column;
    }

    .jt-pub-apply-type-option {
        width: 100%;
        box-sizing: border-box;
    }

    .jt-pub-apply-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .jt-pub-apply-submit {
        width: 100%;
        text-align: center;
    }
}
