/* --- Staff Application Forum Page --- */
.forum-page {
    padding-top: 120px;
    padding-bottom: 70px;
    min-height: 70vh;
}

.forum-hero {
    background: linear-gradient(140deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 34px;
    text-align: center;
}

.forum-hero h2 {
    color: var(--dark-bg);
    font-size: 2rem;
    margin-bottom: 8px;
}

.forum-hero p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.application-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.application-window {
    width: 100%;
    max-width: 820px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 50px -24px rgba(2, 6, 23, 0.55);
    overflow: hidden;
}

.application-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.application-header h3 {
    color: var(--dark-bg);
    font-size: 1.2rem;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.step-progress {
    padding: 14px 20px 8px;
}

.step-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
}

.step-fill {
    width: 25%;
    height: 100%;
    background: var(--primary-blue);
    border-radius: 999px;
    transition: width 0.25s ease;
}

#step-label {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

#staff-application-form {
    padding: 0 20px 20px;
}

.app-step h4 {
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.app-step p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.check-row {
    display: block;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.app-step label {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    display: block;
}

.app-step input,
.app-step textarea,
.app-step select {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.94rem;
    outline: none;
}

.app-step input:focus,
.app-step textarea:focus,
.app-step select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

.app-step small {
    display: block;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.required-mark {
    color: #dc2626;
}

.dynamic-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

.dynamic-check small {
    grid-column: 2;
    margin-top: 0;
}

.application-choice-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

.application-choice-group legend {
    color: var(--text-main);
    font-weight: 700;
    padding: 0 6px;
}

.application-choice-options {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.feedback-message {
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.92rem;
}

.feedback-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.feedback-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

@media (max-width: 700px) {
    .forum-page {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .forum-hero {
        padding: 22px;
    }

    .application-window {
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column;
    }
}
