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

:root {
    --primary-color: #1a4d2e;
    --secondary-color: #2d7a47;
    --accent-color: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('public/nikolasferreira.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    border: 3px solid var(--text-light);
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 1rem;
    animation: fadeInUp 1.2s ease-out, pulseHero 2s ease-in-out infinite;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, var(--accent-color) 100%);
    color: #000000;
    border-color: var(--accent-color);
    animation: fadeInUp 1.2s ease-out, pulseHero 2s ease-in-out infinite, pulseHeroHover 1.5s ease-in-out infinite;
}

@keyframes pulseHero {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

@keyframes pulseHeroHover {
    0%, 100% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: translateY(-5px) scale(1.04);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
    }
}

.hero-btn:active {
    transform: translateY(-2px);
}

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

/* Carta Section */
.carta-section {
    padding: 80px 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.carta-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.carta-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.carta-date {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.carta-signature {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 15px;
}

.carta-signature strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.carta-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.carta-content p {
    margin-bottom: 25px;
    text-align: justify;
    text-indent: 2em;
}

.carta-content p:first-of-type {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Assinatura Section */
.assinatura-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
}

.assinatura-header {
    text-align: center;
    margin-bottom: 50px;
}

.assinatura-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.assinatura-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.assinatura-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.assinatura-form {
    margin-bottom: 40px;
}

.form-group-simple {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.form-group-simple label {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.form-group-simple input {
    padding: 18px 20px;
    font-size: 1.3rem;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    background: var(--bg-white);
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    font-weight: 600;
}

.form-group-simple input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 5px rgba(26, 77, 46, 0.15);
    transform: scale(1.02);
}

/* Design de Certificado/Assinatura */
.assinatura-design {
    margin: 40px 0;
    animation: fadeInUp 0.6s ease-out;
}

.certificado-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
    max-width: 100%;
}

.certificado-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 77, 46, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.certificado-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 30px;
}

.certificado-logo {
    width: 80px;
    height: 56px;
    margin: 0 auto 15px;
    animation: scaleIn 0.5s ease-out;
    position: relative;
}

.bandeira-brasil {
    width: 80px;
    height: 56px;
    background: #009739;
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.bandeira-brasil::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 35px;
    height: 35px;
    background: #FFDF00;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #009739;
}

.bandeira-brasil::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #002776;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.certificado-titulo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.certificado-body {
    text-align: center;
    margin: 40px 0;
    min-height: 200px;
    padding: 20px 0;
    overflow: visible;
}

.certificado-texto {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.6;
}

.certificado-declaracao {
    margin: 40px -20px;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.08) 0%, rgba(45, 122, 71, 0.08) 100%);
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bolsonaro-name {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: slideOut 0.8s ease-out forwards;
    transform: translateX(0);
    padding: 15px 0;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(20px);
        letter-spacing: 0.25em;
    }
}

.declaracao-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
    line-height: 1.6;
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.linha-assinatura {
    margin-top: 50px;
    text-align: center;
}

.linha {
    width: 300px;
    height: 2px;
    background: var(--primary-color);
    margin: 0 auto 10px;
    position: relative;
}

.linha::before,
.linha::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.linha::before {
    left: 0;
}

.linha::after {
    right: 0;
}

.assinatura-label {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.certificado-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.certificado-footer p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 8px 0;
    font-weight: 600;
}

.data-assinatura {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

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

.assinar-btn {
    width: 100%;
    padding: 25px 30px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 4px solid var(--accent-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulseButton 2s ease-in-out infinite;
}

.assinar-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.assinar-btn:hover::before {
    left: 100%;
}

.assinar-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 77, 46, 0.6);
    border-color: #ffed4e;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.assinar-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.assinar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.assinar-btn .btn-text {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.8rem;
}

.assinar-btn .btn-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    animation: bounceIcon 1.5s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(26, 77, 46, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(26, 77, 46, 0.7), 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.btn-icon {
    font-size: 1.5rem;
}

.assinatura-success {
    text-align: center;
    padding: 50px 20px;
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    margin-bottom: 25px;
    animation: scaleIn 0.8s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon.bandeira-brasil {
    width: 120px;
    height: 84px;
    margin: 0 auto;
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(0deg);
    }
    to {
        transform: scale(1) rotate(360deg);
    }
}

.assinatura-success h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.assinatura-success p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 500;
}

.success-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

/* Doação Section */
.doacao-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
}

.doacao-header {
    text-align: center;
    margin-bottom: 50px;
}

.doacao-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.doacao-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.doacao-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.valores-sugeridos {
    margin-bottom: 40px;
}

.valores-sugeridos h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.valor-btn {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valor-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.valor-btn.active {
    background: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
    font-weight: 700;
}

.valor-personalizado {
    margin-bottom: 40px;
}

.valor-personalizado label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 5px 15px;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

#valor-custom {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    padding: 12px 0;
    outline: none;
    font-weight: 600;
}

.gerar-qr-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.gerar-qr-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gerar-qr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.qr-code-container {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    animation: fadeIn 0.5s ease-in;
}

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

.qr-code-container h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

#qr-code {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-instruction {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.pix-code-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.pix-code-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.pix-code-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

#pix-code-input {
    flex: 1;
    padding: 15px;
    font-size: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: var(--bg-light);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: var(--text-dark);
    min-height: 50px;
    resize: vertical;
}

#pix-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.copy-pix-btn {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.copy-pix-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.copy-pix-btn.copied {
    background: #28a745;
}

.copy-pix-btn .copy-icon {
    font-size: 1.2rem;
}

.copy-pix-btn .copy-text {
    font-weight: 600;
}

.pix-code-hint {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}

.valor-exibido {
    padding: 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 10px;
    display: inline-block;
    margin-top: 15px;
}

.valor-exibido strong {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
}

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

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

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-btn {
        padding: 15px 30px;
        font-size: 1rem;
        margin-top: 1.5rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: fit-content;
        box-sizing: border-box;
    }

    .carta-header h2 {
        font-size: 2rem;
    }

    .carta-content {
        font-size: 1.1rem;
    }

    .assinatura-header h2 {
        font-size: 2rem;
    }

    .assinatura-subtitle {
        font-size: 1.1rem;
    }

    .assinatura-content {
        padding: 30px 20px;
    }

    .assinar-btn {
        padding: 20px 25px;
        font-size: 1.5rem;
    }

    .assinar-btn .btn-text {
        font-size: 1.5rem;
    }

    .assinar-btn .btn-icon {
        font-size: 1.8rem;
    }

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

    .manifesto-list li {
        font-size: 1rem;
    }

    .bolsonaro-name {
        font-size: 2.2rem;
    }

    .certificado-declaracao {
        margin: 30px -10px;
        padding: 35px 25px;
    }

    .doacao-header h2 {
        font-size: 2rem;
    }

    .doacao-content {
        padding: 30px 20px;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pix-code-container {
        flex-direction: column;
    }

    .copy-pix-btn {
        width: 100%;
    }

    #pix-code-input {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 15px;
    }

    .hero-content {
        padding: 0 10px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-btn {
        padding: 15px 25px;
        font-size: 0.95rem;
        width: calc(100% - 20px);
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        box-sizing: border-box;
        animation: fadeInUp 1.2s ease-out, pulseHeroMobile 2s ease-in-out infinite;
    }

    @keyframes pulseHeroMobile {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        50% {
            transform: scale(1.02);
            box-shadow: 0 9px 22px rgba(0, 0, 0, 0.35);
        }
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }
}
