/* ============================================================
   afiliados.css — Programa de Afiliados MISE
   Segue o design system existente: dark theme + #EB7819
   ============================================================ */

/* ── Layout base da página ── */
.af-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ── Breadcrumb / back button ── */
.af-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.af-back-btn:hover {
    color: #ffffff;
}

/* ── HERO BANNER ── */
.af-hero {
    background: linear-gradient(135deg, #000733 0%, #0b1240 60%, #000733 100%);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.af-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(235, 120, 25, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.af-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(235, 120, 25, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.af-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(235, 120, 25, 0.15);
    border: 1px solid rgba(235, 120, 25, 0.35);
    color: #EB7819;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.af-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.15;
}

.af-hero-title span {
    color: #EB7819;
}

.af-hero-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.af-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #EB7819;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(235, 120, 25, 0.35);
}

.af-hero-cta:hover {
    background: #d46a10;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(235, 120, 25, 0.45);
    color: #ffffff;
}

/* ── SEÇÃO "COMO FUNCIONA" ── */
.af-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}

.af-section-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 28px;
}

/* Steps grid */
.af-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.af-step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s, border-color 0.2s;
}

.af-step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(235, 120, 25, 0.3);
}

.af-step-num {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(235, 120, 25, 0.15);
    border: 1px solid rgba(235, 120, 25, 0.3);
    color: #EB7819;
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-step-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
}

.af-step-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── CARDS DE BENEFÍCIOS (Empresa x Freelancer) ── */
.af-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 600px) {
    .af-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.af-benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.af-benefit-card:hover {
    transform: translateY(-3px);
}

.af-benefit-card.empresa {
    border-top: 3px solid #EB7819;
}

.af-benefit-card.freelancer {
    border-top: 3px solid #FF8533;
}

.af-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.af-benefit-icon.empresa {
    background: rgba(235, 120, 25, 0.15);
}

.af-benefit-icon.freelancer {
    background: rgba(255, 133, 51, 0.15);
}

.af-benefit-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.af-benefit-type.empresa { color: #EB7819; }
.af-benefit-type.freelancer { color: #FF8533; }

.af-benefit-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.af-benefit-desc {
    font-size: 0.87rem;
    color: #94a3b8;
    line-height: 1.6;
}

.af-benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
}

.af-benefit-tag.empresa {
    background: rgba(235, 120, 25, 0.15);
    color: #EB7819;
    border: 1px solid rgba(235, 120, 25, 0.35);
}

.af-benefit-tag.freelancer {
    background: rgba(255, 133, 51, 0.15);
    color: #FF8533;
    border: 1px solid rgba(255, 133, 51, 0.35);
}

/* ── PRÉ-REQUISITOS ── */
.af-prereqs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 48px;
}

.af-prereqs-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.af-prereq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.af-prereq-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.af-prereq-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── FORMULÁRIO DE CANDIDATURA ── */
.af-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 48px;
    position: relative;
}

.af-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EB7819, #f59e0b);
    border-radius: 20px 20px 0 0;
}

.af-form-header {
    margin-bottom: 28px;
}

.af-form-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}

.af-form-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.af-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .af-form-row {
        grid-template-columns: 1fr;
    }
}

.af-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.af-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.af-form-label span {
    color: #EB7819;
}

.af-form-input,
.af-form-select {
    background: #000733;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.af-form-input:focus,
.af-form-select:focus {
    outline: none;
    border-color: #EB7819;
    box-shadow: 0 0 0 3px rgba(235, 120, 25, 0.15);
}

.af-form-input::placeholder {
    color: #475569;
}

.af-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.af-form-select option {
    background: #0b1240;
    color: #ffffff;
}

/* Checkbox de termos */
.af-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(235, 120, 25, 0.06);
    border: 1px solid rgba(235, 120, 25, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    cursor: pointer;
}

.af-terms-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #EB7819;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}

.af-terms-text {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

.af-terms-text a {
    color: #EB7819;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.af-terms-text a:hover {
    color: #f59e0b;
}

/* Submit btn */
.af-submit-btn {
    width: 100%;
    background: #EB7819;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px rgba(235, 120, 25, 0.3);
}

.af-submit-btn:hover {
    background: #d46a10;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(235, 120, 25, 0.45);
}

.af-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── AVISO / DISCLAIMER ── */
.af-disclaimer {
    background: rgba(11, 18, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.af-disclaimer-text {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.af-disclaimer-text strong {
    color: #94a3b8;
}

/* ── FAQ / PERGUNTAS FREQUENTES ── */
.af-faq {
    margin-bottom: 48px;
}

.af-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.af-faq-item:hover {
    border-color: rgba(235, 120, 25, 0.25);
}

.af-faq-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.af-faq-question {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.af-faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #ffffff;
}

.af-faq-item.open .af-faq-chevron {
    transform: rotate(180deg);
}

.af-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
}

.af-faq-item.open .af-faq-answer {
    max-height: 300px;
    padding: 0 20px 18px;
}

/* ── FLASH MESSAGES ── */
.af-flash {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.af-flash.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.af-flash.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .login-page-body main.app-section {
        padding-top: 0 !important;
    }

    main.app-section section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .af-hero {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .af-wrapper {
        padding: 24px 16px 40px !important;
    }

    .af-hero-title {
        font-size: 1.75rem;
    }

    .af-form-card {
        padding: 28px 20px;
    }

    .af-steps {
        grid-template-columns: 1fr;
    }
    
    .af-dicas-list li {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .af-faq-btn {
        justify-content: center;
        text-align: center;
        position: relative;
    }

    .af-faq-question {
        text-align: center;
        padding: 0 24px;
    }

    .af-faq-chevron {
        position: absolute;
        right: 20px;
    }

    .af-faq-answer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .af-hero-title {
        font-size: 1.5rem;
    }

    .af-steps {
        grid-template-columns: 1fr;
    }
}
