/* Configurações Gerais */
* {
    box-sizing:
        border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: rgb(163, 150, 129);
    display: flex;
    justify-content: center;
    padding: 20px;
    padding-bottom: 100px;
}

/* Layout Lado a Lado */
.checkout-container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.forms-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.form-section {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
}

/* Resumo e Seleção */
.resumo-compra,
.payment-selection,
.card-form {
    background: #23232e;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #343444;
}

.payment-selection h4,
.resumo-compra h4 {
    border-bottom: 1px solid #6064b6;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.method-item input {
    display: none;
}

.method-btn {
    background: #1a1a1e;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.method-item input:checked+.method-btn {
    border-color: #6064b6;
    background: #2a2a3a;
}


.card-credit {
    width: 100%;
    height: 210px;
    perspective: 1000px;
    margin-bottom: 20px;
}

#card-inner-credit {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.card-front-credit,
.card-back-credit {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 25px;
    color: white;
}

.card-front-credit {
    background: linear-gradient(135deg, #121212 0%, #2c3e50 100%);
}

.card-back-credit {
    background: #222;
    transform: rotateY(180deg);
    padding: 0;
}


.magnetic-stripe {
    background: #000;
    width: 100%;
    height: 40px;
    margin-top: 20px;
}

.signature-area {
    background: #fff;
    width: 80%;
    height: 35px;
    margin: 20px auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10px;
}

.cvv-value {
    color: #000;
    font-style: italic;
    font-weight: bold;
}

.hologram {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #7f8c8d, #bdc3c7);
    border-radius: 50%;
    margin-left: 20px;
    opacity: 0.3;
}

/* Inputs */
.card-form input {
    padding: 12px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    font-size: 15px;
}

.row {
    display: flex;
    gap: 10px;
}

.btn-finish {
    background: #28a745;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-finish:hover {
    background: #218838;
}

/* Estilo do Modal de Sucesso */
.modal-confirmacao {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #23232e;
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    border: 1px solid #28a745;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-flutuante {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;    
}

.footer-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #23232e;
    border-top: 2px solid #6064b6;
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #bbb;
    font-size: 0.9rem;
    margin: 0;
}

/* Botão de Voltar */
.btn-voltar-loja {
    background-color: transparent;
    color: #6064b6;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid #6064b6;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-voltar-loja:hover {
    background-color: #6064b6;
    color: white;
}

/* Ajuste para Mobile */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    body {
        padding-bottom: 140px;
    }
}