/* Reset e Base Moderno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;
    --radius-3xl: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Principal Split Screen */
.container {
    display: flex;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    background: var(--bg-primary);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* Lado Esquerdo - Banner/Imagem */
.banner-section {
    flex: 1;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%),
        url('https://doacao-cruzada.pedromedina.com.br/assets/image/bg.png') center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: white;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.08"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.06"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

/* Removido .banner-decorations e seus estilos associados */

.banner-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.banner-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.6;
}

.banner-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    z-index: 2;
}

.banner-footer i {
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Lado Direito - Formulário */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--bg-primary);
    height: 100vh;
    overflow-y: auto;
    position: relative; /* Necessário para o loading-overlay absoluto */
}

.donation-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.donation-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.donation-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Container do Formulário */
.donation-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow-y: auto;
    position: relative; /* Necessário para o loading-overlay absoluto */
}

/* Indicador de Etapas Moderno */
.step-indicator {
    display: flex;
    background: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
    border-radius: 1px;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.step-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
}

/* Etapas do Formulário */
.form-step {
    padding: 1.5rem;
    display: none;
    animation: slideIn 0.4s ease-out;
    min-height: auto;
}

.form-step.active {
    display: flex;
    flex-direction: column;
}

.form-step h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Formulários Modernos */
.form-group {
    /* margin-bottom: 1.5rem; */
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.form-group input.error {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Valor Personalizado */
.custom-amount label {
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--border-color);
}

/* Métodos de Pagamento */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.payment-method-btn {
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.payment-method-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.payment-method-btn.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.payment-method-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.payment-method-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-method-btn small {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Container do Input do Cartão */
.card-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.card-input-container input {
    flex: 1;
    padding-right: 4rem;
}

.card-brand-container {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.card-brand-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.card-brand-indicator i {
    font-size: 1.25rem;
}

.card-brand-indicator i.fab.fa-cc-visa {
    color: #1a1f71;
}

.card-brand-indicator i.fab.fa-cc-mastercard {
    color: #eb001b;
}

.card-brand-indicator i.fab.fa-cc-amex {
    color: #006fcf;
}

.card-brand-indicator i.fab.fa-cc-discover {
    color: #ff6000;
}

.card-brand-indicator i.fab.fa-cc-jcb {
    color: #0e4c96;
}

.card-brand-indicator i.fab.fa-cc-diners-club {
    color: #0079be;
}

/* Seções de Pagamento */
.payment-section {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.payment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.payment-section h4 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    position: relative;
}

.payment-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Botões Modernos */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-buttons .btn-secondary {
    flex: 1;
}

.form-buttons .btn-primary {
    flex: 2;
}

/* Card informativo do cartão de crédito */
.credit-card-info {
    margin-top: 1.5rem;
}

.payment-info-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.payment-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981, #34d399);
}

.payment-info-card i {
    font-size: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
}

.payment-info-card strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.payment-info-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Seção de endereço */
.payment-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-section h4 i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    font-style: italic;
}

.payment-info-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* PIX Section Moderna */
.success-message {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border-left: 4px solid var(--success-color);
    box-shadow: var(--shadow-lg);
}

.success-message i {
    font-size: 1rem;
    color: var(--success-color);
    animation: successPulse 1s ease-out;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--success-color);
    font-weight: 600;
}

.pix-section {
    margin: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: auto;
}

.pix-header {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pix-status i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.pix-status h3 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.pix-timer {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.pix-timer #countdown {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    display: block;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

.pix-timer small {
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--text-secondary);
}

.pix-payment-container {
    padding: 1.5rem;
}

.pix-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1rem;
}

.pix-qr-section {
    text-align: center;
}

.qr-code-wrapper {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.qr-code-wrapper img {
    max-width: 140px;
    height: auto;
    border-radius: var(--radius-md);
}

.pix-amount {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.amount-label {
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pix-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Layout atualizado para valor e pix copia e cola abaixo do QR Code */
.pix-value-and-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem; /* Adiciona espaço acima */
}

.pix-instructions-modern {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.instruction-step {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.instruction-step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin: 0;
}

.pix-copy-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.pix-copy-section label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.copy-container-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copy-container-modern input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.copy-container-modern input:hover,
.copy-container-modern input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.copy-btn-modern {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    min-height: 52px;
    width: 100%;
}

.copy-btn-modern:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.copy-btn-modern:disabled {
    background: var(--bg-secondary);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.copy-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.75rem;
}

.pix-footer {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.payment-checking {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: var(--radius-md);
    color: #99400e;
    border: 1px solid #fcd34d;
    font-size: 0.85rem;
}

.payment-checking i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.payment-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.payment-actions .btn-secondary,
.payment-actions .btn-primary {
    flex: 1;
    max-width: 150px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

/* Mensagens de Erro */
.error-message {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 1.5rem 0;
    text-align: center;
    border-left: 4px solid var(--error-color);
    box-shadow: var(--shadow-lg);
}

.error-message i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

.error-message-modern {
    background: linear-gradient(135deg, #fef2f2, #fdf2f8);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.error-icon {
    background: #fee2e2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.error-icon i {
    color: #dc2626;
    font-size: 1.125rem;
}

.error-content {
    flex: 1;
}

.error-content h4 {
    color: #dc2626;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.error-content p {
    color: #991b1b;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.error-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.error-close:hover {
    color: #6b7280;
    background: rgba(0, 0, 0, 0.05);
}

.input-with-brand {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-brand input {
    flex: 1;
    padding-right: 3rem;
}

.card-brand-indicator {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.card-brand-indicator i {
    font-size: 1.25rem;
}

.card-brand-indicator .fa-cc-visa {
    color: #1a1f71;
}

.card-brand-indicator .fa-cc-mastercard {
    color: #eb001b;
}

.card-brand-indicator .fa-cc-amex {
    color: #006fcf;
}

.card-brand-indicator .fa-credit-card {
    color: var(--text-secondary);
}

/* Tela de Agradecimento Animada */
.thank-you-container {
    padding: 2rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin: 1.5rem 0;
}

.thank-you-animation {
    margin-bottom: 2rem;
}

.heart-burst {
    position: relative;
    display: inline-block;
}

.heart-icon {
    font-size: 4rem;
    color: #ef4444;
    animation: heartPulse 2s ease-in-out infinite;
}

.burst-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: particleBurst 1.5s ease-out forwards;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: scale(0) translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1) translate(var(--x, 0), var(--y, 0));
    }
}

.thank-you-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.thank-you-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.thank-you-impact {
    font-size: 1rem;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.celebration-emojis {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.emoji {
    font-size: 2rem;
    animation: emojiFloat 2s ease-in-out infinite;
}

.emoji:nth-child(2) { animation-delay: 0.2s; }
.emoji:nth-child(3) { animation-delay: 0.4s; }
.emoji:nth-child(4) { animation-delay: 0.6s; }

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

.new-donation-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.new-donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
    text-align: center;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.thank-you-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 25%,
        rgba(236, 72, 153, 0.05) 50%,
        rgba(251, 146, 60, 0.05) 75%,
        rgba(34, 197, 94, 0.05) 100%);
    animation: rainbow 8s linear infinite;
    z-index: 0;
}

.thank-you-animation {
    position: relative;
    margin-bottom: 2rem;
    z-index: 2;
}

/* Animação do Coração com Explosão */
.heart-burst {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.heart-icon {
    font-size: 4rem;
    color: #ef4444;
    animation: heartPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

.burst-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    border-radius: 50%;
    animation: particleBurst 1.5s ease-out infinite;
}

.particle:nth-child(1) {
    animation-delay: 0.1s;
    transform: rotate(0deg) translateX(60px);
}

.particle:nth-child(2) {
    animation-delay: 0.2s;
    transform: rotate(60deg) translateX(60px);
}

.particle:nth-child(3) {
    animation-delay: 0.3s;
    transform: rotate(120deg) translateX(60px);
}

.particle:nth-child(4) {
    animation-delay: 0.4s;
    transform: rotate(180deg) translateX(60px);
}

.particle:nth-child(5) {
    animation-delay: 0.5s;
    transform: rotate(240deg) translateX(60px);
}

.particle:nth-child(6) {
    animation-delay: 0.6s;
    transform: rotate(300deg) translateX(60px);
}

/* Animação do Check SVG */
.checkmark-animation {
    display: inline-block;
    margin-top: 1rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10b981;
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: checkmarkScale 0.8s ease-in-out;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #10b981;
    fill: rgba(16, 185, 129, 0.1);
    animation: checkmarkCircle 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmarkCheck 0.8s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Conteúdo do Agradecimento */
.thank-you-content {
    position: relative;
    z-index: 2;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: titleSlideIn 1s ease-out 0.5s both;
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    animation: contentFadeIn 1s ease-out 1s both;
}

.thank-you-impact {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
    animation: contentFadeIn 1s ease-out 1.2s both;
}

/* Emojis Celebratórios */
.celebration-emojis {
    margin: 2rem 0;
    font-size: 2rem;
    animation: emojisFloat 2s ease-in-out 1.5s both;
}

.celebration-emojis .emoji {
    display: inline-block;
    margin: 0 0.5rem;
    animation: emojiJump 0.6s ease-in-out infinite alternate;
}

.celebration-emojis .emoji:nth-child(1) {
    animation-delay: 0s;
}

.celebration-emojis .emoji:nth-child(2) {
    animation-delay: 0.1s;
}

.celebration-emojis .emoji:nth-child(3) {
    animation-delay: 0.2s;
}

.celebration-emojis .emoji:nth-child(4) {
    animation-delay: 0.3s;
}

.new-donation-btn {
    margin-top: 2rem;
    animation: buttonSlideUp 1s ease-out 2s both;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.new-donation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

/* Animações Keyframes */
@keyframes rainbow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heartPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
    }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.6));
    }
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg) translateX(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg) translateX(30px);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateX(60px);
    }
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes checkmarkCircle {
    0% {
        stroke-dashoffset: 166;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmarkCheck {
    0% {
        stroke-dashoffset: 48;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes emojisFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes emojiJump {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@keyframes buttonSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer */
.donation-footer {
    display: none;
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading States */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para o loading - apenas na form-section */
.form-section .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    flex-direction: column;
    border-radius: 0;
    box-shadow: inset 0 0 100px rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.loading-spinner {
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: loadingSpin 1.2s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

@keyframes loadingSpin {
    0% { 
        transform: rotate(0deg);
        border-top-color: var(--primary-color);
        border-right-color: var(--secondary-color);
    }
    25% { 
        border-top-color: var(--secondary-color);
        border-right-color: #ec4899;
    }
    50% { 
        border-top-color: #ec4899;
        border-right-color: #f97316;
    }
    75% { 
        border-top-color: #f97316;
        border-right-color: var(--primary-color);
    }
    100% { 
        transform: rotate(360deg);
        border-top-color: var(--primary-color);
        border-right-color: var(--secondary-color);
    }
}

.loading-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(0);
    }
    50% { 
        opacity: 0.7; 
        transform: translateY(-2px);
    }
}


/* Responsividade */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }

    .banner-section {
        flex: 0 0 30vh;
        min-height: 30vh;
        padding: 1rem;
    }

    .banner-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .banner-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .banner-footer {
        display: none;
    }

    .form-section {
        flex: 1;
        height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }

    .banner-section {
        flex: 0 0 25vh;
        min-height: 25vh;
        padding: 1rem;
    }

    .banner-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        max-width: none;
    }

    .banner-footer {
        display: none;
    }

    .form-section {
        flex: 1;
        height: 75vh;
        overflow-y: auto;
    }

    .donation-header,
    .form-step {
        padding: 1rem;
    }

    .step-indicator {
        padding: 0.75rem 1rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

    .pix-main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .qr-code-wrapper img {
        max-width: 120px;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-actions .btn-secondary,
    .payment-actions .btn-primary {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        height: 100vh;
    }

    .banner-section {
        flex: 0 0 20vh;
        min-height: 25vh;
        padding: 0.75rem;
    }

    .banner-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .banner-content p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .form-section {
        flex: 1;
        height: 80vh;
        overflow-y: auto;
    }

    .donation-header {
        padding: 0.75rem 1rem;
    }

    .donation-header h2 {
        font-size: 1.25rem;
    }

    .form-step {
        padding: 0.75rem 1rem;
    }

    .form-step h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .payment-method-btn {
        padding: 1.25rem 1rem;
    }

    .payment-method-btn i {
        font-size: 1.25rem;
    }

    .step-indicator {
        padding: 0.5rem 1rem;
    }

    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

/* Estados Especiais */
.form-group input:invalid {
    border-color: var(--error-color);
}

.form-group input:valid {
    border-color: var(--success-color);
}

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

/* Focus Visible para navegação por teclado */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.payment-method-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}