/* =========================================================
   RECRUITMENT APPLICATION PAGE - MODERN REDESIGN
   Events Web v4.0 (Prime & Match Detail Aesthetics)
   ========================================================= */

.recruitment-page-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px 60px;
    font-family: inherit;
    display: block;
    box-sizing: border-box;
}

.recruitment-wrapper {
    background: var(--card-bg, #1a1a1f);
    border: 1px solid rgba(44, 143, 255, 0.25);
    border-radius: 18px;
    padding: 34px 38px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(44, 143, 255, 0.06);
    color: var(--text-color, #e0e0e0);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .recruitment-page-container {
        padding: 70px 14px 40px;
    }
    .recruitment-wrapper {
        padding: 24px 20px;
        border-radius: 14px;
    }
}

/* -----------------------------------------
   ШАПКА НАБОРА
   ----------------------------------------- */
.recruitment-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recruitment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(44, 143, 255, 0.2), rgba(80, 192, 255, 0.12));
    color: #50c0ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    border: 1px solid rgba(44, 143, 255, 0.35);
    box-shadow: 0 0 15px rgba(44, 143, 255, 0.2);
}

.recruitment-badge i {
    color: #ff9f43;
    filter: drop-shadow(0 0 6px rgba(255, 159, 67, 0.6));
}

.recruitment-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #fff;
    line-height: 1.25;
    text-shadow: none;
}

.recruitment-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--placeholder-color, #aaa);
    margin-bottom: 16px;
}

.recruitment-role-tag strong {
    color: #50c0ff;
}

.recruitment-desc {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #ffffff;
    text-align: left;
    margin-top: 14px;
    white-space: pre-line;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.recruitment-desc p { margin: 0 0 10px 0; }
.recruitment-desc p:last-child { margin-bottom: 0; }
.recruitment-desc ul, .recruitment-desc ol { margin: 8px 0; padding-left: 20px; }
.recruitment-desc li { margin-bottom: 4px; }

/* -----------------------------------------
   СЕКЦИЯ АНКЕТЫ И ПОЛЕЙ ВВОДА
   ----------------------------------------- */
.form-section-label {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid var(--accent-color, #2C8FFF);
    padding-left: 10px;
}

.form-fields-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recruitment-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-main-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    user-select: none;
    text-shadow: none;
    margin-bottom: 0;
}

.required-star {
    color: #ff5252;
    margin-left: 3px;
}

.field-limits-hint {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
}

.field-hint-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 1px;
    margin-bottom: 4px;
    white-space: normal;
}

.field-hint-text i {
    color: var(--accent-color, #2C8FFF);
    font-size: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.field-hint-text span {
    word-break: break-word;
}

.field-control-wrap {
    position: relative;
    width: 100%;
}

/* Формовые контролы в стиле Prime */
.prime-form-control {
    width: 100%;
    height: 44px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.prime-form-control:focus {
    outline: none;
    border-color: var(--accent-color, #2C8FFF);
    box-shadow: 0 0 0 3px rgba(44, 143, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.prime-form-control::placeholder {
    color: #64748b;
    font-size: 13px;
}

.prime-textarea-control {
    height: auto;
    min-height: 115px;
    resize: vertical;
    line-height: 1.55;
}

/* Стилизованный Select */
.prime-select-styled {
    position: relative;
}

.prime-select-styled select {
    cursor: pointer;
    appearance: none;
    padding-right: 36px;
}

.prime-select-styled::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 12px;
    pointer-events: none;
}

/* Радио-кнопки в виде красивых пилюль */
.radio-pill-group {
    display: flex;
    gap: 12px;
}

.radio-pill {
    cursor: pointer;
    user-select: none;
}

.radio-pill input[type="radio"] {
    display: none;
}

.radio-pill .pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.radio-pill .pill-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.radio-pill input[type="radio"]:checked + .pill-btn {
    background: rgba(44, 143, 255, 0.18);
    border-color: var(--accent-color, #2C8FFF);
    color: #fff;
    box-shadow: 0 0 12px rgba(44, 143, 255, 0.25);
}

.radio-pill input[type="radio"]:checked + .pill-btn i {
    color: #50c0ff;
}

/* Счетчик символов и сообщение о лимите */
.char-counter {
    display: none !important;
}

.field-limit-msg {
    display: none;
    font-size: 11px;
    color: #ff5252;
    margin-top: 5px;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

/* Кнопка отправки заявки */
.form-submit-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-submit-app {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2C8FFF 0%, #1a6fd4 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'CustomFont', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(44, 143, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(44, 143, 255, 0.5);
    filter: brightness(1.08);
}

.btn-submit-app:active {
    transform: scale(0.98);
}

.btn-submit-app:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* -----------------------------------------
   КАРТОЧКА СТАТУСА ПОДАННОЙ ЗАЯВКИ
   ----------------------------------------- */
.application-status-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-card-header .header-icon {
    font-size: 20px;
    color: var(--accent-color, #2C8FFF);
}

.status-card-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.status-pill.status-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.35);
    box-shadow: 0 0 16px rgba(241, 196, 15, 0.2);
}

.status-pill.status-approved {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.35);
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.2);
}

.status-pill.status-rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.35);
    box-shadow: 0 0 16px rgba(231, 76, 60, 0.2);
}

/* Сетка метаданных (Match Detail style) */
.status-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.meta-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.meta-icon {
    font-size: 16px;
    color: var(--accent-color, #2C8FFF);
    width: 20px;
    text-align: center;
}

.meta-pill-text {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-val {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

/* Блок комментария администрации */
.review-comment-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    margin-top: 16px;
    border-left: 4px solid var(--accent-color, #2C8FFF);
}

.review-comment-box.review-status-approved {
    border-left-color: #2ecc71;
}

.review-comment-box.review-status-rejected {
    border-left-color: #e74c3c;
}

.review-comment-title {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-comment-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
}

/* Уведомление о кулдауне */
.cooldown-notice-box {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    color: #ff9999;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cooldown-notice-box strong {
    color: #fff;
}

/* -----------------------------------------
   БАННЕР ЗАКРЫТОГО НАБОРА
   ----------------------------------------- */
.recruitment-closed-banner {
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 20px 16px;
    margin-bottom: 16px;
}

.closed-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.closed-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.closed-banner-desc {
    font-size: 13px;
    color: #999;
    max-width: 480px;
    margin: 0 auto 14px;
    line-height: 1.5;
}

.btn-closed-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'CustomFont', sans-serif;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ddd;
    transition: all 0.2s ease;
}

.btn-closed-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

/* -----------------------------------------
   КАРТОЧКИ-ПОДСКАЗКИ (Авторизация, Закрыт)
   ----------------------------------------- */
.recruitment-prompt-card {
    text-align: center;
    padding: 36px 20px;
}

.prompt-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(44, 143, 255, 0.12);
    border: 1px solid rgba(44, 143, 255, 0.3);
    color: #50c0ff;
    box-shadow: 0 0 20px rgba(44, 143, 255, 0.2);
}

.prompt-icon-wrap.icon-warning {
    background: rgba(241, 196, 15, 0.12);
    border-color: rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.2);
}

.prompt-icon-wrap.icon-neutral {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #888;
}

.recruitment-prompt-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.recruitment-prompt-card p {
    font-size: 14px;
    color: #aaa;
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.cooldown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ff8585;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.btn-primary-action, .btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'CustomFont', sans-serif;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-action {
    background: linear-gradient(135deg, #2C8FFF 0%, #1a6fd4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(44, 143, 255, 0.35);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 143, 255, 0.5);
    color: #fff;
}

.btn-secondary-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    color: #fff;
}

/* =========================================================
   MULTIPLE CHOICE GRID (СЕТКА ВАРИАНТОВ)
   ========================================================= */
.recruitment-grid-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.recruitment-grid-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 143, 255, 0.45) rgba(0, 0, 0, 0.25);
}

.recruitment-grid-scroll::-webkit-scrollbar {
    height: 7px;
}

.recruitment-grid-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.recruitment-grid-scroll::-webkit-scrollbar-thumb {
    background: rgba(44, 143, 255, 0.45);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.recruitment-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: #50c0ff;
}

.recruitment-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.recruitment-grid-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.recruitment-grid-table th.grid-header-corner {
    width: 35%;
    min-width: 140px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.recruitment-grid-table th.grid-header-col {
    min-width: 60px;
    color: #50c0ff;
    font-size: 14px;
}

.grid-body-row {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.grid-body-row:last-child {
    border-bottom: none;
}

.grid-body-row:hover {
    background: rgba(44, 143, 255, 0.05);
}

.grid-body-row.grid-row-error {
    background: rgba(231, 76, 60, 0.15) !important;
    animation: gridRowShake 0.4s ease;
}

@keyframes gridRowShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.grid-row-title {
    padding: 14px 18px;
    font-weight: 600;
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    word-break: break-word;
}

.grid-cell-choice {
    text-align: center;
    padding: 10px 8px;
    vertical-align: middle;
}

.grid-cell-label {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    margin: 0 auto;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.grid-cell-label:hover .grid-radio-visual {
    border-color: #50c0ff;
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(80, 192, 255, 0.3);
}

.grid-radio-input {
    display: none;
}

.grid-radio-visual {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.grid-radio-input:checked + .grid-radio-visual {
    border-color: #2C8FFF;
    background: rgba(44, 143, 255, 0.25);
    box-shadow: 0 0 12px rgba(44, 143, 255, 0.5);
}

.grid-radio-input:checked + .grid-radio-visual::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #50c0ff;
    box-shadow: 0 0 8px rgba(80, 192, 255, 0.8);
    animation: gridPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gridPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.grid-mobile-col-hint {
    display: none;
}

@media (max-width: 640px) {
    .recruitment-grid-table th.grid-header-corner {
        min-width: 110px;
        width: 30%;
    }
    .grid-row-title {
        padding: 12px 14px;
        font-size: 13px;
    }
    .recruitment-grid-table th.grid-header-col {
        min-width: 50px;
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* =========================================================
   YOUTUBE RESPONSIVE VIDEO EMBED
   ========================================================= */
.recruitment-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    margin: 10px 0 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(44, 143, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.recruitment-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   CHOICES (RADIO & CHECKBOXES)
   ========================================================= */
.custom-choices-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.custom-choice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.custom-choice-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(44, 143, 255, 0.3);
}

.custom-choice-radio, .custom-choice-checkbox {
    display: none;
}

.custom-choice-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-choice-radio:checked + .custom-choice-circle {
    border-color: #2C8FFF;
    background: rgba(44, 143, 255, 0.3);
}

.custom-choice-radio:checked + .custom-choice-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #50c0ff;
    box-shadow: 0 0 8px rgba(80, 192, 255, 0.8);
}

.custom-choice-square {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: transparent;
    font-size: 11px;
}

.custom-choice-checkbox:checked + .custom-choice-square {
    border-color: #2C8FFF;
    background: #2C8FFF;
    color: #fff;
    box-shadow: 0 0 10px rgba(44, 143, 255, 0.4);
}

.custom-choice-text {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.4;
    font-weight: normal;
    text-shadow: none;
}

.custom-choice-radio:checked ~ .custom-choice-text,
.custom-choice-checkbox:checked ~ .custom-choice-text {
    color: #e2e8f0;
    font-weight: normal;
    text-shadow: none;
}

.custom-choice-item:has(.custom-choice-radio:checked),
.custom-choice-item:has(.custom-choice-checkbox:checked) {
    background: rgba(44, 143, 255, 0.08);
    border-color: rgba(44, 143, 255, 0.35);
}

/* =========================================================
   STAR RATING COMPONENT
   ========================================================= */
.recruitment-rating-component {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    width: fit-content;
}

.rating-stars-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-star-btn {
    background: none;
    border: none;
    padding: 4px;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
    line-height: 1;
}

.rating-star-btn:hover {
    transform: scale(1.22);
}

.rating-star-btn.active {
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.rating-score-display {
    font-size: 14px;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* =========================================================
   LINEAR SCALE COMPONENT
   ========================================================= */
.recruitment-scale-component {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    width: fit-content;
}

.scale-extreme-label {
    font-size: 13px;
    color: #a0aec0;
    font-weight: 600;
}

.scale-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scale-pill-label {
    cursor: pointer;
    user-select: none;
}

.scale-radio-input {
    display: none;
}

.scale-pill-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-pill-box:hover {
    border-color: #50c0ff;
    background: rgba(44, 143, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.scale-radio-input:checked + .scale-pill-box {
    background: linear-gradient(135deg, #2C8FFF 0%, #1a6fd4 100%);
    border-color: #2C8FFF;
    color: #fff;
    box-shadow: 0 0 14px rgba(44, 143, 255, 0.5);
    transform: translateY(-2px);
}

/* =========================================================
   CHECKBOX GRID
   ========================================================= */
.grid-checkbox-input {
    display: none;
}

.grid-checkbox-visual {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: transparent;
    font-size: 11px;
}

.grid-cell-label:hover .grid-checkbox-visual {
    border-color: #50c0ff;
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(80, 192, 255, 0.3);
}

.grid-checkbox-input:checked + .grid-checkbox-visual {
    border-color: #2C8FFF;
    background: #2C8FFF;
    color: #fff;
    box-shadow: 0 0 12px rgba(44, 143, 255, 0.5);
}

/* =========================================================
   HUB CARDS & PRE-WRAP TEXT
   ========================================================= */
.recruitment-hub-card {
    background: var(--card-bg, #1a1a1f);
    border: 1px solid rgba(44, 143, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.recruitment-hub-card:hover {
    border-color: #50c0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hub-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.hub-card-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.label-text {
    white-space: pre-wrap;
    word-break: break-word;
}

/* =========================================================
   LIGHT THEME ADAPTATION (БЕЛАЯ ТЕМА ДЛЯ НАБОРОВ)
   ========================================================= */
.light-theme .recruitment-wrapper {
    background: #ffffff;
    border-color: rgba(44, 143, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 0 20px rgba(44, 143, 255, 0.08);
    color: #1e293b;
}

.light-theme .recruitment-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light-theme .recruitment-title {
    color: #0f172a;
    text-shadow: none;
}

.light-theme .recruitment-role-tag {
    color: #64748b;
}

.light-theme .recruitment-role-tag strong {
    color: #0284c7;
}

.light-theme .recruitment-desc {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

/* Фоновый баннер набора (Стив или кастомный арт) всегда является тёмным hero-блоком */
.recruitment-header.has-bg-image,
.light-theme .recruitment-header.has-bg-image {
    position: relative;
    border: 1px solid rgba(44, 143, 255, 0.35) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

.recruitment-header.has-bg-image .recruitment-title,
.light-theme .recruitment-header.has-bg-image .recruitment-title {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}

.recruitment-header.has-bg-image .recruitment-role-tag,
.light-theme .recruitment-header.has-bg-image .recruitment-role-tag {
    color: rgba(255, 255, 255, 0.85) !important;
}

.recruitment-header.has-bg-image .recruitment-role-tag strong,
.light-theme .recruitment-header.has-bg-image .recruitment-role-tag strong {
    color: #60a5fa !important;
}

.recruitment-header.has-bg-image .recruitment-desc,
.light-theme .recruitment-header.has-bg-image .recruitment-desc {
    background: rgba(0, 0, 0, 0.38) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

.recruitment-header.has-bg-image .recruitment-badge,
.light-theme .recruitment-header.has-bg-image .recruitment-badge {
    background: linear-gradient(135deg, rgba(44, 143, 255, 0.35), rgba(80, 192, 255, 0.2)) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(96, 165, 250, 0.5) !important;
}

.light-theme .form-section-label {
    color: #0f172a;
}

.light-theme .field-main-label {
    color: #0f172a;
    font-weight: normal;
    text-shadow: none;
}

.light-theme .field-hint-text {
    color: #64748b;
}

.light-theme .prime-form-control {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.light-theme .prime-form-control:focus {
    background: #ffffff;
    border-color: #2C8FFF;
    box-shadow: 0 0 0 3px rgba(44, 143, 255, 0.18);
}

.light-theme .prime-form-control::placeholder {
    color: #94a3b8;
}

.light-theme .radio-pill .pill-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.light-theme .radio-pill .pill-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.light-theme .radio-pill input[type="radio"]:checked + .pill-btn {
    background: rgba(44, 143, 255, 0.12);
    border-color: #2C8FFF;
    color: #1d4ed8;
}

.light-theme .custom-choice-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.light-theme .custom-choice-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.light-theme .custom-choice-circle {
    background: #ffffff;
    border-color: #cbd5e1;
}

.light-theme .custom-choice-square {
    background: #ffffff;
    border-color: #cbd5e1;
}

.light-theme .custom-choice-text {
    color: #334155;
    font-weight: normal;
    text-shadow: none;
}

.light-theme .custom-choice-radio:checked ~ .custom-choice-text,
.light-theme .custom-choice-checkbox:checked ~ .custom-choice-text {
    color: #0f172a;
    font-weight: normal;
    text-shadow: none;
}

.light-theme .custom-choice-item:has(.custom-choice-radio:checked),
.light-theme .custom-choice-item:has(.custom-choice-checkbox:checked) {
    background: rgba(44, 143, 255, 0.08);
    border-color: #2C8FFF;
}

.light-theme .recruitment-rating-component {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.light-theme .rating-star-btn {
    color: #cbd5e1;
}

.light-theme .rating-star-btn.active {
    color: #f59e0b;
}

.light-theme .recruitment-scale-component {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.light-theme .scale-extreme-label {
    color: #64748b;
}

.light-theme .scale-pill-box {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.light-theme .scale-pill-box:hover {
    background: #f1f5f9;
    border-color: #2C8FFF;
    color: #0f172a;
}

.light-theme .recruitment-grid-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.light-theme .recruitment-grid-scroll::-webkit-scrollbar {
    height: 7px;
}

.light-theme .recruitment-grid-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.light-theme .recruitment-grid-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.light-theme .recruitment-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.light-theme .recruitment-grid-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.light-theme .recruitment-grid-table th {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.light-theme .recruitment-grid-table th.grid-header-corner {
    border-right-color: #e2e8f0;
}

.light-theme .recruitment-grid-table th.grid-header-col {
    color: #0284c7;
}

.light-theme .grid-row-title {
    color: #1e293b;
    border-right-color: #e2e8f0;
}

.light-theme .grid-body-row {
    border-bottom-color: #f1f5f9;
}

.light-theme .grid-body-row:hover {
    background: rgba(44, 143, 255, 0.04);
}

.light-theme .grid-radio-visual {
    background: #ffffff;
    border-color: #cbd5e1;
}

.light-theme .grid-radio-input:checked + .grid-radio-visual {
    background: rgba(44, 143, 255, 0.15);
    border-color: #2C8FFF;
}

.light-theme .grid-checkbox-visual {
    background: #ffffff;
    border-color: #cbd5e1;
}

.light-theme .form-submit-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.light-theme .application-status-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.light-theme .status-card-header h2 {
    color: #0f172a;
}

.light-theme .meta-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.light-theme .meta-label {
    color: #64748b;
}

.light-theme .meta-val {
    color: #0f172a;
}

.light-theme .review-comment-box {
    background: #f8fafc;
}

.light-theme .review-comment-title {
    color: #475569;
}

.light-theme .review-comment-text {
    color: #0f172a;
}

.light-theme .recruitment-closed-banner {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.light-theme .closed-banner-title {
    color: #0f172a;
}

.light-theme .closed-banner-desc {
    color: #64748b;
}

.light-theme .btn-closed-action {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.light-theme .btn-closed-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.light-theme .recruitment-prompt-card h2 {
    color: #0f172a;
}

.light-theme .recruitment-prompt-card p {
    color: #64748b;
}

.light-theme .btn-secondary-action {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.light-theme .btn-secondary-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.light-theme .recruitment-hub-sub {
    color: #64748b !important;
}

.light-theme .recruitment-hub-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.light-theme .hub-card-title {
    color: #0f172a !important;
}

.light-theme .hub-card-desc {
    color: #64748b !important;
}

.field-error-highlight {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 14px rgba(255, 77, 77, 0.45) !important;
    animation: shakeField 0.4s ease;
}

@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
