/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Seção esquerda - Resumo da compra */
.checkout-summary {
    width: 40%;
    background: linear-gradient(135deg, #4568dc 0%, #b06ab3 100%);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.checkout-summary::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.logo-container img {
    width: 120px;
    height: auto;
}

.product-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.secure-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.secure-badge i {
    margin-right: 0.5rem;
}

.product-image {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.product-image img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.immediate-access {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-weight: 600;
}

.total-price {
    text-align: right;
    margin-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.total-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.installment-price {
    font-size: 1.8rem;
    font-weight: 700;
}

.support {
    margin-top: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.support-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.support-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.support-icons a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.support-icons a:hover {
    transform: scale(1.2);
}

/* Seção direita - Formulário de pagamento */
.checkout-form {
    width: 60%;
    padding: 2rem;
    background-color: #fff;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-flag {
    width: 24px;
    height: auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4568dc;
    outline: none;
}

.form-control.error {
    border-color: #ff3860;
}

.error-message {
    color: #ff3860;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.visible {
    display: block;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method.active {
    border-color: #4568dc;
    background-color: rgba(69, 104, 220, 0.05);
}

.payment-method i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.payment-method.active i {
    color: #4568dc;
}

.payment-method-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.card-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 40px;
    height: 25px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.card-icon.active {
    opacity: 1;
}

.installment-selector {
    position: relative;
}

.installment-selector .form-control {
    padding-right: 2rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #ff6b6b 0%, #4568dc 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(69, 104, 220, 0.3);
}

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

.error-banner {
    background-color: #ff3860;
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.error-banner.visible {
    display: block;
}

.terms-privacy {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}

.terms-privacy a {
    color: #4568dc;
    text-decoration: none;
}

.terms-privacy a:hover {
    text-decoration: underline;
}

.security-badge {
    text-align: center;
    margin-top: 1rem;
}

.security-badge img {
    height: 40px;
    width: auto;
}

.access-info {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.interest-info {
    text-align: right;
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .checkout-summary,
    .checkout-form {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
