/* ═══════════════════════════════════════════════
   Phoenix Onboarding v2 — Design Tokens
   Source: Lovable prototype (approved 25/02/2026)
   ═══════════════════════════════════════════════ */
:root {
    --phoenix-primary: #418C83;
    --phoenix-primary-dark: #065a50;
    --phoenix-primary-foreground: #FFFFFF;
    --phoenix-foreground: #004038;
    --phoenix-muted-foreground: #6F6F6F;
    --phoenix-background: #F0F4F2;
    --phoenix-background-end: #eaede9;
    --phoenix-card: #FFFFFF;
    --phoenix-border: #c5cbc8;
    --phoenix-radius: 0.75rem;
    --phoenix-radius-lg: 1rem;
    --phoenix-radius-xl: 1.5rem;
    --phoenix-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Pilar colors */
    --pilar-psicologia: #8C62BE;
    --pilar-nutricao: #E8A84C;
    --pilar-orientacao: #468FFD;
}

/* ═══════════════════════════════════════════════
   Page wrapper
   ═══════════════════════════════════════════════ */
.phoenix-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--phoenix-background) 0%, var(--phoenix-background-end) 100%);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--phoenix-foreground);
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════ */
.phoenix-header {
    background: var(--phoenix-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   Main content area
   ═══════════════════════════════════════════════ */
.phoenix-main {
    flex: 1;
    display: flex;
}

.phoenix-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1rem;
}

.phoenix-grid {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    animation: phoenixFadeIn 0.4s ease-out;
}

@keyframes phoenixFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile: stack */
.phoenix-split {
    display: block;
}

/* Desktop: 2 columns */
@media (min-width: 900px) {
    .phoenix-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════
   Left panel (value proposition)
   ═══════════════════════════════════════════════ */
.phoenix-left-panel {
    max-width: 28rem;
}

@media (max-width: 899px) {
    .phoenix-left-panel {
        display: none;
    }
}

/* Badge */
.phoenix-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(65, 140, 131, 0.1);
    color: var(--phoenix-primary);
    margin-bottom: 1rem;
}

/* Title */
.phoenix-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.phoenix-title-accent {
    color: var(--phoenix-primary);
    display: block;
}

/* Subtitle */
.phoenix-subtitle {
    font-size: 0.875rem;
    color: var(--phoenix-muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footnote */
.phoenix-footnote {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    color: var(--phoenix-muted-foreground);
}

.phoenix-footnote-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(65, 140, 131, 0.6);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   Benefit items
   ═══════════════════════════════════════════════ */
.phoenix-benefits {
    margin-bottom: 1rem;
}

.phoenix-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0;
}

.phoenix-benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(65, 140, 131, 0.1);
    color: var(--phoenix-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.phoenix-benefit-text {
    font-size: 0.8rem;
    color: var(--phoenix-foreground);
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   Right panel (card)
   ═══════════════════════════════════════════════ */
.phoenix-card-wrapper {
    display: flex;
    justify-content: center;
}

.phoenix-card {
    background: var(--phoenix-card);
    border-radius: var(--phoenix-radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    box-shadow: var(--phoenix-shadow-lg);
    max-width: 24rem;
    width: 100%;
}

/* ═══════════════════════════════════════════════
   Stepper
   ═══════════════════════════════════════════════ */
.phoenix-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
}

.phoenix-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4rem;
}

.phoenix-step-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1.5px solid var(--phoenix-border);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--phoenix-muted-foreground);
}

.phoenix-step-dot.active {
    border-color: rgba(65, 140, 131, 0.3);
    background: rgba(65, 140, 131, 0.05);
    color: var(--phoenix-primary);
}

.phoenix-step-label {
    font-size: 0.625rem;
    color: var(--phoenix-muted-foreground);
    text-align: center;
    margin-top: 0.375rem;
    line-height: 1.2;
}

.phoenix-step-connector {
    width: 2.5rem;
    height: 1.5px;
    background: var(--phoenix-border);
    margin-top: 0.875rem;
}

/* ═══════════════════════════════════════════════
   Form inputs
   ═══════════════════════════════════════════════ */
.phoenix-input {
    width: 100% !important;
    height: 43px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--phoenix-border) !important;
    border-radius: var(--phoenix-radius) !important;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--phoenix-card);
    color: var(--phoenix-foreground) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-left: 0 !important;
}

.phoenix-input:focus {
    border-color: var(--phoenix-primary) !important;
    box-shadow: 0 0 0 3px rgba(65, 140, 131, 0.15) !important;
    outline: none;
}

.phoenix-input::placeholder {
    color: var(--phoenix-muted-foreground);
    opacity: 1;
}

.phoenix-input.invalid {
    border-color: var(--phoenix-destructive, #B10101) !important;
}

.phoenix-input-group {
    margin-bottom: 0.75rem;
    text-align: left;
}

.phoenix-input-error {
    font-size: 0.75rem;
    color: #B10101;
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════
   Verify hint
   ═══════════════════════════════════════════════ */
.phoenix-verify-hint {
    font-size: 0.6875rem;
    color: var(--phoenix-muted-foreground);
    text-align: center;
    margin-bottom: 1rem;
}

.phoenix-verify-hint i {
    font-size: 0.625rem;
    margin-right: 0.25rem;
}

/* ═══════════════════════════════════════════════
   Primary button
   ═══════════════════════════════════════════════ */
.phoenix-btn-primary {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: var(--phoenix-radius);
    background: var(--phoenix-primary);
    color: var(--phoenix-primary-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(65, 140, 131, 0.2);
    transition: background 0.2s;
}

.phoenix-btn-primary:hover:not(:disabled) {
    background: var(--phoenix-primary-dark);
}

.phoenix-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════
   Privacy note
   ═══════════════════════════════════════════════ */
.phoenix-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-size: 0.625rem;
    color: var(--phoenix-muted-foreground);
}

.phoenix-privacy-note i {
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
.phoenix-footer {
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.6875rem;
    color: var(--phoenix-muted-foreground);
    background: rgba(240, 244, 242, 0.5);
    border-top: 1px solid var(--phoenix-border);
    margin-top: 2rem;
}

.phoenix-footer a {
    color: var(--phoenix-primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.phoenix-footer a:hover {
    color: var(--phoenix-primary);
    text-decoration: underline;
}

.phoenix-footer nav {
    margin-bottom: 0.5rem;
}

.phoenix-footer-crisis {
    margin-top: 0.5rem;
}

.phoenix-footer-copyright {
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════
   Card inner elements
   ═══════════════════════════════════════════════ */
.phoenix-card-center {
    text-align: center;
    margin-bottom: 1rem;
}

.phoenix-card-mascot {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.phoenix-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    margin: 0;
}

.phoenix-card-subtitle {
    font-size: 0.75rem;
    color: var(--phoenix-muted-foreground);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.phoenix-card-subtitle strong {
    color: var(--phoenix-foreground);
}

/* ═══════════════════════════════════════════════
   Shared header pattern (mascot + breadcrumb)
   Used by SobreVoce, Dass21, NutriFit, Temas
   ═══════════════════════════════════════════════ */
.sobre-voce-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sobre-voce-mascot {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.sobre-voce-breadcrumb {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--phoenix-foreground);
    margin: 0 0 0.125rem 0;
}

.sobre-voce-step-count {
    color: var(--phoenix-muted-foreground);
    font-weight: 400;
    margin-left: 0.375rem;
}

.sobre-voce-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    margin: 0;
}

.sobre-voce-subtitle {
    font-size: 0.8125rem;
    color: var(--phoenix-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

.sobre-voce-subtitle strong {
    color: var(--phoenix-foreground);
}

/* Section card (Dados pessoais/Dados de saúde) */
.sobre-voce-section-card {
    background: var(--phoenix-card);
    border: 1px solid var(--phoenix-border);
    border-radius: var(--phoenix-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sobre-voce-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    margin: 0 0 0.75rem 0;
}

.sobre-voce-privacy-inline {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--phoenix-muted-foreground);
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(65, 140, 131, 0.04);
    border-radius: var(--phoenix-radius);
}

.sobre-voce-privacy-inline i {
    font-size: 0.8125rem;
    color: var(--phoenix-primary);
    flex-shrink: 0;
}

.sobre-voce-form-area {
    width: 100%;
    max-width: 28rem;
}

.sobre-voce-field {
    margin-bottom: 1rem;
}

.sobre-voce-field:last-child {
    margin-bottom: 0;
}

.sobre-voce-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--phoenix-foreground);
    margin-bottom: 0.375rem;
}

/* ═══════════════════════════════════════════════
   Loading spinner
   ═══════════════════════════════════════════════ */
.phoenix-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: phoenixSpin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes phoenixSpin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   Error container (aria-live)
   ═══════════════════════════════════════════════ */
.phoenix-error-toast {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--phoenix-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #991B1B;
}

/* ═══════════════════════════════════════════════
   Modal (user already registered)
   ═══════════════════════════════════════════════ */
.phoenix-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: phoenixFadeIn 0.2s ease-out;
}

.phoenix-modal {
    background: var(--phoenix-card);
    border-radius: var(--phoenix-radius-xl);
    padding: 2rem;
    max-width: 24rem;
    width: 90%;
    box-shadow: var(--phoenix-shadow-lg);
}

.phoenix-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    text-align: center;
    margin-bottom: 0.5rem;
}

.phoenix-modal-text {
    font-size: 0.8125rem;
    color: var(--phoenix-muted-foreground);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.phoenix-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phoenix-btn-secondary {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--phoenix-border);
    border-radius: var(--phoenix-radius);
    background: var(--phoenix-card);
    color: var(--phoenix-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.phoenix-btn-secondary:hover {
    background: #f5f5f5;
}

/* ═══════════════════════════════════════════════
   Centered card layout (Tela 02+)
   ═══════════════════════════════════════════════ */
.phoenix-centered-card {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    animation: phoenixFadeIn 0.4s ease-out;
}

.phoenix-card-wide {
    max-width: 100%;
}

/* ═══════════════════════════════════════════════
   Mascot speech bubble
   ═══════════════════════════════════════════════ */
.phoenix-mascot-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.phoenix-mascot-img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.phoenix-speech-bubble {
    background: var(--phoenix-background);
    border: 1px solid var(--phoenix-border);
    border-radius: var(--phoenix-radius);
    border-bottom-left-radius: 0.25rem;
    padding: 0.625rem 1rem;
}

.phoenix-speech-text {
    font-size: 0.75rem;
    color: var(--phoenix-muted-foreground);
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   Not-found page elements
   ═══════════════════════════════════════════════ */
.phoenix-nf-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.phoenix-nf-subtitle {
    font-size: 0.75rem;
    color: var(--phoenix-muted-foreground);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   Option buttons (accordion radio pattern)
   ═══════════════════════════════════════════════ */
.phoenix-options-group {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phoenix-option-wrapper {
    display: flex;
    flex-direction: column;
}

.phoenix-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    min-height: 46px;
    border-radius: var(--phoenix-radius);
    border: 1px solid var(--phoenix-border);
    background: var(--phoenix-card);
    color: var(--phoenix-foreground);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    text-align: left;
}

.phoenix-option-btn:hover {
    border-color: var(--phoenix-primary);
}

.phoenix-option-btn.selected {
    border-color: var(--phoenix-primary);
    background: rgba(65, 140, 131, 0.05);
}

.phoenix-option-check {
    color: var(--phoenix-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   Expanded content (Porto Seguro accordion)
   ═══════════════════════════════════════════════ */
.phoenix-option-expanded {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding: 1rem;
    background: rgba(240, 244, 242, 0.5);
    border: 1px solid var(--phoenix-border);
    border-radius: var(--phoenix-radius);
    animation: phoenixFadeIn 0.3s ease-out;
}

.phoenix-expanded-label {
    display: block;
    font-size: 0.75rem;
    color: var(--phoenix-muted-foreground);
    margin-bottom: 0.25rem;
}

.phoenix-select {
    appearance: auto;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236F6F6F' d='M6 8.825a.5.5 0 0 1-.354-.146l-3.5-3.5a.5.5 0 0 1 .708-.708L6 7.618l3.146-3.147a.5.5 0 0 1 .708.708l-3.5 3.5A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

/* ═══════════════════════════════════════════════
   TISS validation feedback
   ═══════════════════════════════════════════════ */
.phoenix-tiss-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: rgba(65, 140, 131, 0.08);
    border: 1px solid rgba(65, 140, 131, 0.2);
    border-radius: var(--phoenix-radius);
    font-size: 0.8125rem;
    color: var(--phoenix-primary-dark);
    margin-bottom: 0.5rem;
}

.phoenix-tiss-success i {
    color: var(--phoenix-primary);
}

.phoenix-tiss-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--phoenix-radius);
    font-size: 0.8125rem;
    color: #6D4C00;
    margin-bottom: 0.5rem;
}

.phoenix-tiss-error i {
    color: #F9A825;
}

/* ═══════════════════════════════════════════════
   Button variants
   ═══════════════════════════════════════════════ */
.phoenix-btn-sm {
    padding: 0.625rem;
    height: 38px;
    font-size: 0.8125rem;
}

.phoenix-btn-outline {
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--phoenix-radius);
    background: transparent;
    color: var(--phoenix-foreground);
    border: 1px solid var(--phoenix-border);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.phoenix-btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
}

.phoenix-btn-link {
    background: none;
    border: none;
    color: var(--phoenix-primary);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
}

.phoenix-btn-link:hover {
    color: var(--phoenix-primary-dark);
}

/* ═══════════════════════════════════════════════
   Action buttons area
   ═══════════════════════════════════════════════ */
.phoenix-nf-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ═══════════════════════════════════════════════
   Form container (Tela 03 - wider card layout)
   ═══════════════════════════════════════════════ */
.phoenix-form-container {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
    animation: phoenixFadeIn 0.4s ease-out;
}

.phoenix-mascot-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.phoenix-mascot-inline {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.phoenix-form-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    margin: 0;
}

.phoenix-form-subtitle {
    font-size: 0.875rem;
    color: var(--phoenix-muted-foreground);
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════
   Form card
   ═══════════════════════════════════════════════ */
.phoenix-form-card {
    background: var(--phoenix-card);
    border: 1px solid var(--phoenix-border);
    border-radius: var(--phoenix-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.phoenix-section-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--phoenix-foreground);
    margin-bottom: 1rem;
}

.phoenix-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--phoenix-foreground);
    margin-bottom: 0.375rem;
}

/* ═══════════════════════════════════════════════
   Password field with toggle
   ═══════════════════════════════════════════════ */
.phoenix-password-wrap {
    position: relative;
}

.phoenix-input-password {
    padding-right: 2.5rem;
}

.phoenix-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--phoenix-muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
}

.phoenix-password-toggle:hover {
    color: var(--phoenix-foreground);
}

/* ═══════════════════════════════════════════════
   Password strength hints
   ═══════════════════════════════════════════════ */
.phoenix-password-hints {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    animation: phoenixFadeIn 0.2s ease-out;
}

.phoenix-password-hint {
    font-size: 0.75rem;
    color: var(--phoenix-muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phoenix-password-hint.valid {
    color: #16a34a;
}

.phoenix-hint-icon {
    width: 0.875rem;
    text-align: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   Checkbox (Terms)
   ═══════════════════════════════════════════════ */
.phoenix-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--phoenix-foreground);
}

.phoenix-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    accent-color: var(--phoenix-primary);
    cursor: pointer;
}

.phoenix-checkbox-text a {
    color: var(--phoenix-primary);
    text-decoration: underline;
}

.phoenix-checkbox-text a:hover {
    color: var(--phoenix-primary-dark);
}

/* ═══════════════════════════════════════════════
   Navigation row (side by side buttons)
   ═══════════════════════════════════════════════ */
.phoenix-nav-row {
    display: flex;
    gap: 0.75rem;
}

.phoenix-nav-row .phoenix-btn-outline,
.phoenix-nav-row .phoenix-btn-primary {
    flex: 1;
}

/* Mobile: stack buttons */
@media (max-width: 480px) {
    .phoenix-nav-row {
        flex-direction: column-reverse;
    }
}

/* ═══════════════════════════════════════════════
   Info boxes (Tela 04 — verification)
   ═══════════════════════════════════════════════ */
.phoenix-info-box {
    border-radius: var(--phoenix-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.phoenix-info-box-primary {
    background: rgba(65, 140, 131, 0.06);
    border: 1px solid rgba(65, 140, 131, 0.2);
    color: var(--phoenix-foreground);
}

.phoenix-info-box-warning {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    color: #6D4C00;
}

.phoenix-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.phoenix-info-box-primary .phoenix-info-header i {
    color: var(--phoenix-primary);
}

.phoenix-info-box-warning .phoenix-info-header i {
    color: #F9A825;
}

.phoenix-info-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   File upload area (Tela 04)
   ═══════════════════════════════════════════════ */
.phoenix-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 2px dashed rgba(65, 140, 131, 0.3);
    border-radius: var(--phoenix-radius-lg);
    background: rgba(65, 140, 131, 0.02);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 140px;
}

.phoenix-upload-area:hover {
    border-color: var(--phoenix-primary);
    background: rgba(65, 140, 131, 0.05);
}

.phoenix-upload-area:focus-visible {
    outline: 2px solid var(--phoenix-primary);
    outline-offset: 2px;
}

.phoenix-upload-area.drag-over {
    border-color: var(--phoenix-primary);
    background: rgba(65, 140, 131, 0.08);
    border-style: solid;
}

.phoenix-upload-icon {
    font-size: 2rem;
    color: var(--phoenix-primary);
    opacity: 0.7;
}

.phoenix-upload-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--phoenix-muted-foreground);
    text-align: center;
}

.phoenix-upload-btn {
    width: auto;
    min-width: 10rem;
}

.phoenix-upload-hint {
    font-size: 0.6875rem;
    color: var(--phoenix-muted-foreground);
}

/* File selected success state */
.phoenix-upload-success {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(65, 140, 131, 0.06);
    border: 1px solid rgba(65, 140, 131, 0.2);
    border-radius: var(--phoenix-radius);
    font-size: 0.8125rem;
    color: var(--phoenix-primary-dark);
}

.phoenix-upload-success-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.phoenix-upload-success-content i.bi-file-earmark-check {
    color: var(--phoenix-primary);
    margin-right: 0.375rem;
}

.phoenix-upload-remove {
    background: none;
    border: 1px solid var(--phoenix-border);
    border-radius: var(--phoenix-radius);
    color: var(--phoenix-muted-foreground);
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.phoenix-upload-remove:hover {
    color: #B10101;
    border-color: #B10101;
}

/* Visually hidden file input — Safari requires the input to NOT be display:none
   for <label for="..."> to trigger the file picker. This positions it offscreen
   while keeping it accessible to the browser's click/focus system. */
.phoenix-sr-only-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* File uploading/processing state */
.phoenix-upload-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(65, 140, 131, 0.06);
    border: 1px solid rgba(65, 140, 131, 0.2);
    border-radius: var(--phoenix-radius);
}

.phoenix-upload-progress-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--phoenix-primary-dark);
}

.phoenix-spinner-sm {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid rgba(65, 140, 131, 0.2);
    border-top-color: var(--phoenix-primary);
    border-radius: 50%;
    animation: phoenixSpin 0.6s linear infinite;
    flex-shrink: 0;
}

.phoenix-upload-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(65, 140, 131, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.phoenix-upload-progress-bar-fill {
    height: 100%;
    width: 40%;
    background: var(--phoenix-primary);
    border-radius: 2px;
    animation: phoenixUploadProgress 1.2s ease-in-out infinite;
}

@keyframes phoenixUploadProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Desktop: taller upload area */
@media (min-width: 1025px) {
    .phoenix-upload-area {
        min-height: 180px;
    }
}
