/* ============================================
   ESTILO GLOBAL - EDOCBR MODERNO
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --secondary: #10B981;
    --text-dark: #111827;
    --text-light: #6B7280;
    --border-light: #E5E7EB;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER / NAVEGAÇÃO
   ============================================ */

.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    object-fit: contain;
    padding: 4px;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(13, 148, 136, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.15);
}

.btn-secondary:hover {
    background: #4B5563;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-full {
    width: 100%;
    margin-top: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   SEÇÕES PRINCIPAIS
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

.card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-inner {
    padding: 40px;
}

/* ============================================
   GRID DE BENEFÍCIOS
   ============================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.benefit-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border: 2px solid var(--border-light);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.1);
    transform: translateY(-8px);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   DEPOIMENTOS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-weight: 700;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.certificado-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.certificado-card {
    max-width: 600px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header-cert {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.card-header-cert h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-flag {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.cert-title {
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.cert-title h2 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-title h3 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   INDICADOR DE STEPS
   ============================================ */

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-line {
    width: 50px;
    height: 3px;
    background: var(--border-light);
    transition: all 0.3s ease;
}

.step.active .step-line,
.step.completed .step-line {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.step:last-child .step-line {
    display: none;
}

/* ============================================
   CONTEÚDO DO FORMULÁRIO
   ============================================ */

.step-content {
    padding: 32px 24px;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-cert {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.radio-label:hover {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.02);
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   CAIXAS DE DADOS
   ============================================ */

.data-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.data-box h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    color: var(--text-dark);
    font-weight: 700;
}

.data-item {
    margin-bottom: 16px;
}

.data-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.data-value-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.data-value.highlight {
    color: var(--primary);
}

/* ============================================
   MENSAGENS
   ============================================ */

.message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

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

.message-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

.message-loading {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.message::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.message-success::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

.message-error::before {
    content: '✕';
    color: var(--error);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   GRID DE DADOS (CONFIRMAÇÃO)
   ============================================ */

.cert-data-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cert-data-item {
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.cert-data-item:hover {
    border-color: var(--primary);
    background: rgba(13, 148, 136, 0.02);
}

.cert-data-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cert-data-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    word-break: break-word;
}

/* ============================================
   FOOTER
   ============================================ */

.card-footer-cert {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.9rem;
}

.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo {
    color: white;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   PÁGINA DE SUCESSO
   ============================================ */

.success-container {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.success-card {
    max-width: 900px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.4s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(13, 148, 136, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 3.5rem;
    color: var(--success);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.success-card h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.certificado-preview {
    padding: 32px;
    margin-bottom: 32px;
}

.cert-border {
    border: 8px double var(--primary);
    border-radius: 12px;
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.cert-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 32px;
}

.brasil-flag {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cert-body {
    text-align: left;
}

/* ============================================
   LOADING
   ============================================ */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        height: 60px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .card-inner {
        padding: 24px;
    }

    .step-content {
        padding: 24px 16px;
    }

    .steps-indicator {
        padding: 16px 12px;
        gap: 4px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .step-line {
        width: 30px;
    }

    .cert-data-group {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: 32px 20px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .success-card h1 {
        font-size: 1.5rem;
    }

    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .card-header-cert {
        padding: 24px 16px;
    }

    .header-flag {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .cert-title {
        padding: 24px 16px 16px;
    }

    .cert-title h2 {
        font-size: 1.1rem;
    }

    .cert-title h3 {
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .data-box {
        padding: 16px;
    }

    .data-box h3 {
        font-size: 1rem;
    }

    .cert-border {
        padding: 16px;
    }

    .success-card {
        padding: 24px 16px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .success-card h1 {
        font-size: 1.3rem;
    }
}

/* ============================================
   ANIMAÇÕES ADICIONAIS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

.scale-in {
    animation: scaleIn 0.4s ease;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
