/* Extraído de partials/membro.php: manter idêntico ao PHP. */
/* ==========================================================================
   ESTILOS PREMIUM DARK - PÁGINA TORNE-SE MEMBRO (GFH-TASK-011)
   ========================================================================== */
.hub-membro-page {
    background: var(--hub-bg);
    color: var(--hub-text);
    min-height: calc(100vh - 160px);
    padding: 30px 20px 80px 20px;
    box-sizing: border-box;
}

.hub-membro-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.hub-membro-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px auto;
}

.hub-badge-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(243, 106, 39, 0.12);
    border: 1px solid rgba(243, 106, 39, 0.35);
    border-radius: 999px;
    color: #F36A27;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.hub-membro-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: var(--hub-text);
}

.hub-membro-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--hub-text-muted);
    margin: 0;
}

/* Layout 2 Colunas */
.hub-membro-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 36px;
    align-items: start;
}

/* Informações / Lateral */
.hub-membro-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hub-info-card {
    background: var(--hub-surface-0);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hub-info-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0 0 14px 0;
}

.hub-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(243, 106, 39, 0.12);
    border: 1px solid rgba(243, 106, 39, 0.25);
    color: #F36A27;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-info-card-text {
    color: var(--hub-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.hub-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--hub-text-soft);
}

.hub-info-list li svg {
    color: #F36A27;
    flex-shrink: 0;
    margin-top: 3px;
}

.hub-info-list strong {
    color: var(--hub-text);
}

/* Passos */
.hub-steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hub-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hub-step-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: #F36A27;
    background: rgba(243, 106, 39, 0.1);
    border: 1px solid rgba(243, 106, 39, 0.2);
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-block;
    flex-shrink: 0;
}

.hub-step-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0 0 4px 0;
}

.hub-step-desc {
    font-size: 0.88rem;
    color: var(--hub-text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Quote */
.hub-quote-card {
    background: linear-gradient(135deg, rgba(243, 106, 39, 0.08), rgba(12, 12, 14, 0.95));
    border: 1px solid rgba(243, 106, 39, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.hub-quote-text {
    font-style: italic;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0 0 10px 0;
}

.hub-quote-author {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #F36A27;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Formulário Principal */
.hub-form-card {
    background: var(--hub-surface-0);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.hub-form-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(var(--hub-fg-rgb), 0.06);
}

.hub-form-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--hub-text);
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.hub-form-desc {
    font-size: 0.92rem;
    color: var(--hub-text-muted);
    margin: 0;
}

/* Alert */
.hub-form-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hub-form-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Campos */
.hub-membro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e5e5e5;
    letter-spacing: 0.01em;
}

.hub-required {
    color: #F36A27;
}

.hub-input,
.hub-select {
    width: 100%;
    box-sizing: border-box;
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.1);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--hub-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.hub-input::placeholder {
    color: #55555c;
}

.hub-input:focus,
.hub-select:focus {
    border-color: #F36A27;
    background: #17171b;
    box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.18);
}

.hub-input-uf {
    text-transform: uppercase;
}

.hub-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hub-form-grid-city {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 16px;
}

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

.hub-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 42px;
}

.hub-select option {
    background: var(--hub-surface-1);
    color: var(--hub-text);
}

.hub-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--hub-text-muted);
}

/* Radio Group */
.hub-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hub-radio-option {
    cursor: pointer;
}

.hub-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hub-radio-pill {
    display: inline-block;
    padding: 10px 18px;
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.1);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #aaaaaf;
    transition: all 0.2s ease;
}

.hub-radio-option input[type="radio"]:checked + .hub-radio-pill {
    background: rgba(243, 106, 39, 0.16);
    border-color: #F36A27;
    color: var(--hub-text);
    box-shadow: 0 0 12px rgba(243, 106, 39, 0.2);
}

/* LGPD Box */
.hub-terms-box {
    border-top: 1px solid rgba(var(--hub-fg-rgb), 0.08);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.hub-checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--hub-surface-2);
    border: 1.5px solid rgba(var(--hub-fg-rgb), 0.2);
    border-radius: 4px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.hub-checkbox-row input[type="checkbox"]:checked {
    background: #F36A27;
    border-color: #F36A27;
}

.hub-checkbox-row input[type="checkbox"]:checked::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.hub-checkbox-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--hub-text-muted);
}

.hub-checkbox-text strong {
    color: var(--hub-text-soft);
}

/* Submit Button */
.hub-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #F36A27, #e05514);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(243, 106, 39, 0.35);
    transition: all 0.25s ease;
    margin-top: 8px;
}

.hub-submit-btn:hover {
    background: linear-gradient(135deg, #ff7a38, #F36A27);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(243, 106, 39, 0.45);
}

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

.hub-privacy-hint {
    font-size: 0.8rem;
    text-align: center;
    color: #666670;
    margin: 4px 0 0 0;
}

/* Success Card */
.hub-success-card {
    max-width: 640px;
    margin: 40px auto;
    background: var(--hub-surface-0);
    border: 1px solid rgba(243, 106, 39, 0.4);
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.hub-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F36A27, #e05514);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 30px rgba(243, 106, 39, 0.45);
}

.hub-success-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--hub-text);
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
}

.hub-success-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hub-text-muted);
    margin: 0 0 32px 0;
}

.hub-success-desc strong {
    color: #F36A27;
}

.hub-success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: #F36A27;
    border: 1px solid #F36A27;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hub-btn-primary:hover {
    background: #d9581c;
    border-color: #d9581c;
    transform: translateY(-2px);
    color: #ffffff;
}

.hub-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: var(--hub-surface-2);
    border: 1px solid rgba(var(--hub-fg-rgb), 0.12);
    border-radius: 999px;
    color: var(--hub-text);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hub-btn-secondary:hover {
    background: #1d1d22;
    border-color: rgba(var(--hub-fg-rgb), 0.22);
    color: var(--hub-text);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 960px) {
    .hub-membro-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hub-membro-info {
        order: 2;
    }
    
    .hub-membro-form-wrapper {
        order: 1;
    }
}

@media (max-width: 580px) {
    .hub-membro-wrapper {
        padding: 20px 12px 60px 12px;
    }

    .hub-membro-header {
        margin-bottom: 24px;
    }

    .hub-membro-title {
        font-size: 1.85rem;
    }

    .hub-membro-subtitle {
        font-size: 0.92rem;
    }

    .hub-form-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .hub-form-title {
        font-size: 1.25rem;
    }

    .hub-form-desc {
        font-size: 0.84rem;
    }
    
    .hub-form-grid-2,
    .hub-form-grid-city {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hub-radio-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .hub-radio-option {
        width: 100%;
    }

    .hub-radio-pill {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .hub-submit-btn {
        width: 100%;
        min-height: 48px;
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    .hub-info-card {
        padding: 20px 16px;
    }
    
    .hub-success-card {
        padding: 32px 18px;
    }
}
