/* =========================
   RESET DEFENSIVO
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    position: relative;
    overflow: hidden;
}

/* =========================
   VARIÁVEIS DE POSICIONAMENTO
========================= */
:root {
    --primary-color: #0A4D8C;
    --secondary-color: #007bff;
    --accent-color: #FF6B35;
    --warning-color: #F59E0B;
    --dark-color: #1A1A1A;
    --light-gray: #F3F4F6;
    --medium-gray: #6B7280;

    --gradient-primary: linear-gradient(
        135deg,
        #0A4D8C 0%,
        #0D5A9F 50%,
        #084A80 100%
    );

    --gradient-secondary: linear-gradient(
        135deg,
        #0A4D8C 0%,
        #084A80 100%
    );
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.55;
    background: #ffffff;
}

/* =========================
   HERO
========================= */
.hero-section {
    background: var(--gradient-primary);
    padding: 120px 0 90px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: rgba(255,255,255,0.12);
    color: #E5E7EB;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.92);
    max-width: 820px;
}

/* =========================
   TRUST BADGES
========================= */
.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 32px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E5E7EB;
    font-size: 0.95rem;
}

/* =========================
   BOTÕES
========================= */
.btn-hero-primary {
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 800;
    padding: 14px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: #ffffff;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
}

.cta-subtitle {
    margin-top: 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

/* =========================
   SEÇÕES
========================= */
.py-section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.section-description {
    color: #334155;
    max-width: 760px;
    margin: 0 auto;
}

/* =========================
   STEPS SECTION
========================= */
.steps-section {
    padding: 90px 0;
    background: #ffffff;
}

.step-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    height: 100%;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 32px;
    background: var(--accent-color);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 20px 0;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.step-description {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* =========================
   TRUST SECTION
========================= */
.trust-section {
    padding: 90px 0;
    background: var(--light-gray);
}

.trust-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    height: 100%;
    text-align: center;
}

.trust-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.trust-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.trust-card-text {
    color: var(--medium-gray);
    line-height: 1.6;
}

.legal-section {
    margin-top: 60px;
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.legal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-text {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* =========================
   FORM SECTION
========================= */
.form-section {
    padding: 90px 0;
    background: #ffffff;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-badge {
    display: inline-block;
    background: rgba(0, 179, 134, 0.1);
    color: var(--secondary-color);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.form-subtitle {
    color: var(--medium-gray);
    font-size: 1.05rem;
}

/* Progress Bar */
.form-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}

.form-progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--medium-gray);
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: var(--secondary-color);
    color: #ffffff;
}

.progress-step.completed .progress-circle {
    background: var(--secondary-color);
    color: #ffffff;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.progress-step.active .progress-label {
    color: var(--secondary-color);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.required {
    color: #DC2626;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 179, 134, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 179, 134, 0.1);
}

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

.form-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.radio-card {
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-label {
    display: block;
    padding: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.radio-card input[type="radio"]:checked + .radio-card-label {
    border-color: var(--secondary-color);
    background: rgba(0, 179, 134, 0.05);
    color: var(--secondary-color);
}

.checkbox-card {
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: rgba(0, 179, 134, 0.05);
}

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

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-title {
    font-weight: 700;
    color: var(--dark-color);
}

.checkbox-description {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.upload-area {
    border: 2px dashed #E5E7EB;
    border-radius: 10px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 179, 134, 0.02);
}

.upload-area i {
    font-size: 3rem;
    color: var(--medium-gray);
    margin-bottom: 16px;
}

.upload-text {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 32px;
}

.btn-form {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form-primary {
    background: var(--gradient-secondary);
    color: #ffffff;
}

.btn-form-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 179, 134, 0.3);
}

.btn-form-secondary {
    background: transparent;
    border: 2px solid #E5E7EB;
    color: var(--dark-color);
}

#btnSubmit {
    display: none;
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
}

.form-success.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.success-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.success-message {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.success-details {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 32px;
}

/* =========================
   CTA SECTION
========================= */
.cta-section {
    padding: 90px 0;
    background: var(--light-gray);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-card {
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
}

.cta-card-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-card-subtitle {
    color: var(--medium-gray);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.security-note {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #020617;
    padding: 60px 0 30px;
    color: #E5E7EB;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-description {
    color: #94A3B8;
    margin-bottom: 24px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
}

.footer-contact a {
    color: #E5E7EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #94A3B8;
    font-size: 0.9rem;
}

/* =========================
   ANIMAÇÕES
========================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .py-section {
        padding: 60px 0;
    }

    .form-container {
        padding: 32px 24px;
    }

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

    .form-buttons {
        flex-direction: column;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .progress-label {
        font-size: 0.75rem;
    }

    .form-radio-group {
        grid-template-columns: 1fr;
    }
}