/* ==============================================================================
   CADASTRO DE MEMBROS EFETIVOS - COLETIVO SOCIALISTA CAPIXABA
   Design System Limpo, Militante, Moderno & Responsivo
   ============================================================================== */

:root {
    --bg-dark: #07080b;
    --bg-card: #0d0f15;
    --bg-card-inner: #131620;
    --bg-input: #090a0e;
    --border-subtle: #232736;
    --border-focus: #e01a22;
    --red-primary: #e01a22;
    --red-hover: #c8102e;
    --red-glow: rgba(224, 26, 34, 0.35);
    --gold: #f59e0b;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --font-heading: 'Bebas Neue', 'Anton', sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Base & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Glows */
.bg-ambient-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(224, 26, 34, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(224, 26, 34, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 17, 26, 0.7) 0%, transparent 100%);
}

.cadastro-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
    position: relative;
    z-index: 1;
}

/* Navbar de Apoio */
.cadastro-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2.5rem;
}

.cadastro-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    transition: opacity 0.2s ease;
}

.cadastro-logo-link:hover {
    opacity: 0.85;
}

.cadastro-logo-img {
    height: 38px;
    width: auto;
}

.cadastro-logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.cadastro-logo-text span {
    color: var(--red-primary);
}

.cadastro-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.cadastro-back-btn:hover {
    color: var(--text-white);
    border-color: var(--red-primary);
    background: rgba(224, 26, 34, 0.1);
}

/* Hero Header */
.cadastro-header {
    text-align: center;
    margin-bottom: 3rem;
}

.security-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.cadastro-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.cadastro-title span {
    color: var(--red-primary);
    background: linear-gradient(135deg, #ff2b36, #e01a22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cadastro-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

/* Security Notice Box */
.security-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(224, 26, 34, 0.06);
    border: 1px solid rgba(224, 26, 34, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.security-notice-icon {
    font-size: 1.3rem;
    color: var(--red-primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.security-notice-text {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.5;
}

.security-notice-text strong {
    color: var(--text-white);
}

/* Stepper Progress Bar */
.stepper-progress {
    display: flex;
    justify-content: space-between;
    margin: 2.5rem auto 3rem;
    max-width: 760px;
    position: relative;
}

.stepper-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border-subtle);
    z-index: 0;
}

.stepper-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    cursor: pointer;
}

.stepper-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.stepper-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    transition: color 0.25s ease;
}

.stepper-step.active .stepper-number {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--red-glow);
}

.stepper-step.active .stepper-label {
    color: var(--text-white);
    font-weight: 700;
}

.stepper-step.completed .stepper-number {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.stepper-step.completed .stepper-label {
    color: #34d399;
}

/* Card Principal do Formulário */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
}

.form-section-block {
    padding: 2.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.form-section-block:last-child {
    border-bottom: none;
}

.section-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-badge-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(224, 26, 34, 0.15);
    color: var(--red-primary);
    border: 1px solid rgba(224, 26, 34, 0.3);
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--text-white);
    text-transform: uppercase;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: -0.8rem;
    margin-bottom: 1.5rem;
}

/* Form Grid & Layout */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label-styled {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.label-required {
    color: var(--red-primary);
    font-weight: 800;
}

.label-hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
}

/* Inputs & Form Controls */
.input-styled,
.select-styled {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-styled::placeholder {
    color: var(--text-muted);
}

.input-styled:focus,
.select-styled:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 14px var(--red-glow);
    background: #0d0f15;
}

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

.input-prefix-icon {
    position: absolute;
    left: 1rem;
    color: var(--red-primary);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}

.input-styled.has-prefix {
    padding-left: 2.3rem;
}

/* Custom Select Dropdown */
.select-styled-wrap {
    position: relative;
    width: 100%;
}

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

.select-styled-chevron {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.85rem;
}

/* ==============================================================================
   SELEÇÃO MÚLTIPLA DE HOBBIES (Cultura, Lazer e Esportes)
   ============================================================================== */
.hobbies-hub {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hobby-category-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.hobby-cat-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hobby-cat-icon {
    font-size: 1.15rem;
    color: var(--red-primary);
}

.hobby-cat-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hobby-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* Hobby Chip Button */
.hobby-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #090a0e;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #d1d5db;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.hobby-chip:hover {
    border-color: rgba(224, 26, 34, 0.5);
    color: var(--text-white);
    background: rgba(224, 26, 34, 0.08);
}

.hobby-chip.active {
    background: rgba(224, 26, 34, 0.2);
    border-color: var(--red-primary);
    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.75rem;
    color: var(--red-primary);
}

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

/* Campo customizado de outro hobby */
.custom-hobby-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.custom-hobby-input {
    flex: 1;
    background: #090a0e;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    color: var(--text-white);
    font-size: 0.85rem;
}

.btn-add-custom-hobby {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-custom-hobby:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
}

/* ==============================================================================
   CAMPO DISSERTATIVO: "NO QUE VOCÊ É BOM"
   ============================================================================== */
.textarea-styled {
    width: 100%;
    min-height: 140px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
}

.textarea-styled:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 14px var(--red-glow);
    background: #0d0f15;
}

.textarea-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-subtle);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.74rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-tag:hover {
    border-color: var(--red-primary);
    color: var(--text-white);
    background: rgba(224, 26, 34, 0.1);
}

/* ==============================================================================
   TERMO DE COMPROMISSO MILITANTE
   ============================================================================== */
.terms-card-wrapper {
    background: #08090d;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.terms-scroll-area {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.75rem;
    font-size: 0.88rem;
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

/* Custom Scrollbar */
.terms-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.terms-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.terms-scroll-area::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 4px;
}

.terms-item {
    margin-bottom: 1rem;
}

.terms-item strong {
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.terms-item strong i {
    color: var(--red-primary);
}

/* Checkbox estilizado de aceite */
.terms-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    background: rgba(224, 26, 34, 0.08);
    border: 1px solid rgba(224, 26, 34, 0.3);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.terms-checkbox-wrap:hover {
    border-color: var(--red-primary);
    background: rgba(224, 26, 34, 0.12);
}

.terms-checkbox-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--red-primary);
    margin-top: 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox-label {
    font-size: 0.88rem;
    color: #f3f4f6;
    font-weight: 600;
    line-height: 1.45;
}

/* ==============================================================================
   SUBMISSION & ACTIONS
   ============================================================================== */
.form-submit-block {
    padding: 2.25rem;
    background: #090a0f;
    text-align: center;
}

.btn-submit-membro {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e01a22, #b90e16);
    border: none;
    border-radius: var(--radius-md);
    padding: 1.15rem 2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(224, 26, 34, 0.5);
}

.btn-submit-membro:hover {
    background: linear-gradient(135deg, #ff2b36, #e01a22);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(224, 26, 34, 0.7);
}

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

.submit-note-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.submit-note-privacy i {
    color: #10b981;
}

/* Honeypot anti-bot (invisível para humanos) */
.honey-field-trap {
    display: none !important;
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* ==============================================================================
   SUCCESS STATE SCREEN
   ============================================================================== */
.success-card-fullscreen {
    display: none;
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.4s ease;
}

.success-badge-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    color: #10b981;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.success-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.success-hero-title span {
    color: var(--red-primary);
}

.success-p-desc {
    font-size: 1.05rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.success-protocol-box {
    background: #090a0e;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.success-protocol-box strong {
    color: #34d399;
    font-family: monospace;
    font-size: 1rem;
}

.success-actions-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-success-whatsapp {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.95rem 1.75rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px -5px rgba(37, 211, 102, 0.4);
}

.btn-success-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(37, 211, 102, 0.6);
}

.btn-success-home {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-success-home:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .cadastro-container {
        padding: 1.25rem 0.85rem 4rem;
    }

    .form-section-block {
        padding: 1.5rem 1rem;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stepper-progress {
        display: none; /* Em mobile, economiza espaço vertical */
    }

    .btn-submit-membro {
        font-size: 1.25rem;
        padding: 1rem 1.25rem;
    }
}


/* Campo de especificação de autodeclaração étnica */
.custom-etnia-wrap {
    margin-top: 0.65rem;
    animation: fadeInEtnia 0.22s ease-out;
}

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