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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
}

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

/* Cabeçalho */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

/* Conteúdo Principal */
.main-content {
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #718096;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card do Plano */
.plan-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid #667eea;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.plan-name {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #667eea;
    margin: 0 0.3rem;
}

.period {
    font-size: 1.2rem;
    color: #718096;
}

.plan-description {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefits-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.check-icon {
    width: 28px;
    height: 28px;
    color: #48bb78;
    flex-shrink: 0;
    background: #f0fff4;
    border-radius: 50%;
    padding: 4px;
}

.benefit-item strong {
    display: block;
    color: #2d3748;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.benefit-item p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

.security-badges {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
}

/* Card de Pagamento */
.payment-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.payment-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Formulário */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-input {
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #cbd5e0;
}

.card-element {
    padding: 0.9rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    transition: all 0.3s !important;
}

.card-element:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

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

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    border-left: 4px solid #c53030;
}

/* Botão de Submit */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.form-footer {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Seção de Informações */
.info-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.faq-item strong {
    display: block;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.faq-item p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Rodapé */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* Responsividade */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .plan-card,
    .payment-card,
    .info-section {
        padding: 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

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

    .security-badges {
        flex-direction: column;
    }
}