/* =========================================================
   RECRUITMENT & MODAL CSS - COLETIVO SOCIALISTA CAPIXABA
   Design System Limpo, Militante, Glassmorphism & Alta Legibilidade
   ========================================================= */

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden !important;
}

/* =========================================================
   FORM SYSTEM (Static & Inside Modal)
   ========================================================= */
.recruitment-form-wrap {
    background: #11131a;
    border: 1px solid #262833;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    position: relative;
}

.recruitment-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Standard Inputs & Selects */
.form-input,
.form-select {
    width: 100%;
    background: #090a0e;
    border: 1px solid #2d303e;
    border-radius: 8px;
    padding: 0.82rem 1rem;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #e01a22;
    box-shadow: 0 0 14px rgba(224, 26, 34, 0.4);
    background: #0d0f15;
}

/* Input with Prefix (@ do Instagram) */
.input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: #e01a22;
    font-weight: 800;
    font-size: 1.05rem;
    pointer-events: none;
    user-select: none;
}

.form-input.input-has-prefix {
    padding-left: 2.2rem;
}

/* Custom Select Dropdown with Chevron */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-chevron {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.select-wrapper:hover .select-chevron {
    color: #ffffff;
}

/* =========================================================
   SEARCHABLE MUNICÍPIO COMBOBOX
   ========================================================= */
.municipio-combobox {
    position: relative;
    width: 100%;
}

.combobox-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.combobox-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.combobox-input {
    padding-left: 2.4rem !important;
    padding-right: 2.5rem !important;
    cursor: text;
}

.municipio-combobox:hover .combobox-icon,
.municipio-combobox.open .combobox-icon {
    color: #e01a22;
}

.combobox-toggle-btn {
    position: absolute;
    right: 0.6rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.combobox-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.municipio-combobox.open .combobox-toggle-btn {
    transform: rotate(180deg);
    color: #e01a22;
}

/* Dropdown Menu */
.combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 230px;
    background: #0d0e14;
    border: 1px solid #2d303e;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(224, 26, 34, 0.2);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3d4152 #0d0e14;
    animation: comboboxSlideDown 0.18s ease-out forwards;
}

@keyframes comboboxSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.combobox-dropdown::-webkit-scrollbar {
    width: 6px;
}

.combobox-dropdown::-webkit-scrollbar-track {
    background: #0d0e14;
}

.combobox-dropdown::-webkit-scrollbar-thumb {
    background: #3d4152;
    border-radius: 4px;
}

.combobox-dropdown::-webkit-scrollbar-thumb:hover {
    background: #e01a22;
}

.combobox-options-list {
    padding: 0.4rem 0;
}

.combobox-option {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    user-select: none;
}

.combobox-option:hover,
.combobox-option.highlighted {
    background: rgba(224, 26, 34, 0.18);
    color: #ffffff;
    padding-left: 1.25rem;
}

.combobox-option.selected {
    background: rgba(224, 26, 34, 0.28);
    color: #ffffff;
    font-weight: 700;
    border-left: 3px solid #e01a22;
}

.combobox-option .option-match {
    color: #ff4d58;
    font-weight: 800;
}

.combobox-option .option-check {
    font-size: 0.8rem;
    color: #25d366;
    margin-left: 0.5rem;
}

.combobox-empty {
    padding: 1.2rem 1rem;
    font-size: 0.84rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
}

.combobox-empty strong {
    color: #e5e7eb;
}

/* =========================================================
   SUBMIT BUTTON & PRIVACY NOTE
   ========================================================= */
.btn-submit-form {
    width: 100%;
    background: linear-gradient(135deg, #e01a22, #a60a1e);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0.35rem;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.btn-submit-form i {
    font-size: 1.25rem;
    color: #25d366;
}

.btn-submit-form:hover {
    background: linear-gradient(135deg, #f0252e, #b80c23);
    box-shadow: 0 10px 30px rgba(224, 26, 34, 0.6);
    transform: translateY(-2px);
}

.btn-submit-form:active {
    transform: translateY(0);
}

.form-privacy-note {
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.form-privacy-note i {
    color: #6b7280;
    font-size: 0.75rem;
}

/* =========================================================
   RECRUITMENT MODAL (Full Overlay & Card)
   ========================================================= */
.recruitment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.recruitment-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.recruitment-modal-card {
    background: #11131a;
    border: 1px solid rgba(224, 26, 34, 0.45);
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(224, 26, 34, 0.25);
    display: flex;
    flex-direction: column;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: #2d303e #11131a;
}

.recruitment-modal-overlay.active .recruitment-modal-card {
    transform: scale(1) translateY(0);
}

.recruitment-modal-card::-webkit-scrollbar {
    width: 6px;
}

.recruitment-modal-card::-webkit-scrollbar-thumb {
    background: #2d303e;
    border-radius: 4px;
}

.recruitment-modal-header {
    background: #090a0e;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #232530;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-badge {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.35);
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    font-family: 'Space Grotesk', monospace;
}

.modal-badge i {
    font-size: 0.9rem;
}

.recruitment-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2d303e;
    color: #9ca3af;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.recruitment-modal-close:hover {
    background: #e01a22;
    border-color: #e01a22;
    color: #ffffff;
    transform: rotate(90deg);
}

.recruitment-modal-body {
    padding: 1.6rem 1.75rem 2rem;
}

.modal-headline {
    margin-bottom: 1.35rem;
}

.modal-headline h3 {
    font-family: 'Bebas Neue', 'Anton', Impact, sans-serif;
    font-size: 2.1rem;
    color: #ffffff;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 0.45rem;
}

.modal-headline p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.45;
}

/* =========================================================
   SUCCESS STATE IN MODAL
   ========================================================= */
.modal-success-state {
    text-align: center;
    padding: 1.5rem 0.5rem 0.5rem;
    animation: successFadeIn 0.3s ease-out forwards;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    border: 2px solid #25d366;
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.35rem;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
    animation: pulseGreen 2.2s infinite ease-in-out;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(37, 211, 102, 0.65);
        transform: scale(1.05);
    }
}

.modal-success-state h4 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.modal-success-state .success-desc {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

.success-manual-card {
    background: rgba(224, 26, 34, 0.08);
    border: 1px solid rgba(224, 26, 34, 0.35);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    text-align: left;
    margin: 0 auto 1.6rem;
    max-width: 480px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.manual-card-icon {
    font-size: 1.4rem;
    color: #e01a22;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.manual-card-text strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.manual-card-text p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.45;
    margin: 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 480px;
    margin: 0 auto;
}

.btn-close-success {
    width: 100%;
    background: linear-gradient(135deg, #e01a22, #a60a1e);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 1.4rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.btn-close-success:hover {
    background: linear-gradient(135deg, #f0252e, #b80c23);
    box-shadow: 0 8px 25px rgba(224, 26, 34, 0.6);
    transform: translateY(-2px);
}

.btn-close-success:active {
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE DESIGN (Mobile & Tablets)
   ========================================================= */
@media (max-width: 640px) {
    .recruitment-form-wrap {
        padding: 1.5rem 1.15rem;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .form-group {
        margin-bottom: 1.05rem;
    }

    .recruitment-modal-overlay {
        padding: 0.75rem;
    }

    .recruitment-modal-card {
        max-height: 94vh;
        border-radius: 16px;
    }

    .recruitment-modal-header {
        padding: 1rem 1.15rem;
    }

    .recruitment-modal-body {
        padding: 1.25rem 1.15rem 1.75rem;
    }

    .modal-headline h3 {
        font-size: 1.7rem;
    }

    .btn-submit-form {
        padding: 0.9rem 1rem;
        font-size: 0.96rem;
    }

    .combobox-dropdown {
        max-height: 190px;
    }
}

/* =========================================================
   HOBBY CHIPS, TEXTAREAS & CALLOUT CADASTRO COMPLETO
   ========================================================= */
.hobbies-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.hobby-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #090a0e;
    border: 1px solid #2d303e;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    color: #d1d5db;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.hobby-chip:hover {
    border-color: #e01a22;
    color: #ffffff;
    background: rgba(224, 26, 34, 0.08);
}

.hobby-chip.active {
    background: rgba(224, 26, 34, 0.22);
    border-color: #e01a22;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(224, 26, 34, 0.35);
}

.hobby-chip .chip-check {
    display: none;
    font-size: 0.72rem;
}

.hobby-chip.active .chip-check {
    display: inline-block;
}

/* Callout link para ficha completa */
.full-registration-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(224, 26, 34, 0.08);
    border: 1px solid rgba(224, 26, 34, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.callout-text {
    font-size: 0.82rem;
    color: #e5e7eb;
}

.callout-text strong {
    color: #ffffff;
}

.btn-open-full-form {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e01a22;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-open-full-form:hover {
    background: #ff2b36;
    transform: translateY(-1px);
}

.terms-quick-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: #d1d5db;
    cursor: pointer;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.terms-quick-check input[type="checkbox"] {
    accent-color: #e01a22;
    width: 16px;
    height: 16px;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

