:root {
    --primary-burgundy: #8B1E2F;
    --primary-burgundy-light: #A01D2D;
    --rose: #FFF5F6;
    --rose-dark: #FFE4E8;
    --text-dark: #2C1810;
    --text-body: #4A4A4A;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(139, 30, 47, 0.08);
    --shadow-hover: 0 8px 30px rgba(139, 30, 47, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--rose) 0%, #FFFFFF 100%);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

/* Header */
.checkout-header {
    text-align: center;
    padding: 40px 0;
}

.checkout-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary-burgundy);
    margin-bottom: 20px;
}

.back-link {
    position: absolute;
    top: 45px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-burgundy);
    font-weight: 600;
    transition: transform 0.3s;
    z-index: 10;
}

.back-link:hover {
    transform: translateX(-5px);
}


.event-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.event-summary span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-summary svg {
    color: var(--primary-burgundy);
}

/* Main Layout */
.checkout-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* Form Section */
.form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary-burgundy);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label svg {
    width: 18px;
    height: 18px;
    color: var(--primary-burgundy);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 30, 47, 0.1);
}

.form-group input::placeholder {
    color: #AAA;
}

/* Payment Section */
.payment-section {
    position: relative;
}

.payment-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--rose-dark);
    position: sticky;
    top: 20px;
}

.payment-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary-burgundy);
    text-align: center;
    margin-bottom: 30px;
}

.price-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-burgundy);
}

.price-value .cents {
    font-size: 1.5rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 2px dashed var(--rose-dark);
}

.qr-code {
    width: 220px;
    height: 220px;
    border-radius: 10px;
}

.pix-instruction {
    text-align: center;
    color: var(--text-body);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pix-code-container {
    margin-bottom: 30px;
}

#pix-code {
    width: 100%;
    padding: 12px;
    background: #F8F8F8;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    word-break: break-all;
}

.copy-button {
    width: 100%;
    padding: 16px;
    background: var(--primary-burgundy);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: var(--primary-burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 30, 47, 0.3);
}

.copy-button.copied {
    background: #2ECC71;
}

.confirm-payment-button {
    width: 100%;
    padding: 16px;
    background: transparent;
    color: var(--primary-burgundy);
    border: 2px solid var(--primary-burgundy);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.confirm-payment-button:hover {
    background: var(--primary-burgundy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 30, 47, 0.3);
}

.confirm-payment-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.post-payment-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #FFF9E6;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-burgundy);
}

.post-payment-info svg {
    flex-shrink: 0;
    color: var(--primary-burgundy);
    width: 24px;
    height: 24px;
}

.post-payment-info p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

.contact-link.whatsapp {
    background: #25D366;
    color: white;
}

.contact-link.whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.contact-link.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: white;
}

.contact-link.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 42, 123, 0.4);
}


/* Footer */
.checkout-footer {
    padding: 40px 0;
    border-top: 2px solid var(--rose-dark);
    margin-top: 40px;
}

.trust-seals {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.seal svg {
    width: 32px;
    height: 32px;
    color: var(--primary-burgundy);
}

.seal span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
        /* Remove body padding on mobile to ensure true centering */
    }

    .checkout-container {
        padding: 15px;
        /* Consistent symmetric padding */
    }

    .back-link {
        position: static;
        margin-bottom: 20px;
        display: inline-flex;
    }

    .checkout-header h1 {
        font-size: 2rem;
    }

    .checkout-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-section,
    .payment-card {
        padding: 30px 20px;
    }

    .payment-card {
        position: static;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .trust-seals {
        gap: 30px;
    }
}