/* =========================
   Arquivo: pagamento.css
   Diretório: ativerma\inicio\pagamento\pagamento.css
   ESTILOS DO MODAL DE PAGAMENTO
========================= */

/* =========================
   CONTAINER PRINCIPAL
========================= */
.pagamento-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* =========================
   TÍTULOS DAS SEÇÕES
========================= */
.pagamento-section-title {
    font-size: 1.1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.pagamento-section-title i {
    color: #1672d8;
    font-size: 1.2rem;
}

/* Linha divisória entre as colunas */
.pagamento-coluna-esquerda {
    border-right: 1px solid #e5e7eb; /* linha sutil */
    padding-right: 2rem; /* espaçamento para afastar conteúdo da linha */
}

/* =========================
   COLUNA ESQUERDA
========================= */
.pagamento-coluna-esquerda {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Opções de Pagamento */
.pagamento-opcoes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pagamento-opcao {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagamento-opcao:hover {
    border-color: #1672d8;
    background: rgba(22, 114, 216, 0.02);
}

.pagamento-opcao input[type="radio"] {
    display: none;
}

.pagamento-opcao input[type="radio"]:checked + .opcao-content {
    color: #1672d8;
}

.pagamento-opcao input[type="radio"]:checked ~ .opcao-content::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: #1672d8;
    border-radius: 2px;
}

.opcao-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1rem;
    color: #374151;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 1rem;
}

.opcao-content i {
    font-size: 1.5rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.pagamento-opcao input[type="radio"]:checked + .opcao-content i {
    color: #1672d8;
}

/* Checkbox de Termos */
.pagamento-termos {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

#modal-pagamento .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

#modal-pagamento .checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#modal-pagamento .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#modal-pagamento .checkbox-container:hover .checkmark {
    border-color: #1672d8;
}

#modal-pagamento .checkbox-container input:checked ~ .checkmark {
    background-color: #1672d8;
    border-color: #1672d8;
}

#modal-pagamento .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#modal-pagamento .checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

#modal-pagamento .checkbox-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

#modal-pagamento .checkbox-text a {
    color: #1672d8;
    text-decoration: none;
    font-weight: 500;
}

#modal-pagamento .checkbox-text a:hover {
    text-decoration: underline;
}

/* =========================
   COLUNA DIREITA
========================= */
.pagamento-coluna-direita {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Resumo do App */
.resumo-app {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.resumo-app-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(22, 114, 216, 0.1), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.resumo-app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resumo-app-logo i {
    font-size: 2rem;
    color: #1672d8;
}

.resumo-app-info h4 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.resumo-app-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Valor Total */
.resumo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    border: 2px solid #1672d8;
    margin-top: auto;
}

.resumo-total span {
    font-size: 1.1rem;
    color: #374151;
    font-weight: 500;
}

.resumo-total strong {
    font-size: 1.7rem;
    color: #1672d8;
    font-weight: 700;
}

#modal-pagamento .form-group.floating-label {
    margin-bottom: 0;
}

/* =========================
   RESPONSIVIDADE
========================= */

/* Tablet */
@media (max-width: 768px) {
    .pagamento-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pagamento-coluna-esquerda {
        order: 2;
    }
    
    .pagamento-coluna-direita {
        order: 1;
    }

    .pagamento-coluna-esquerda {
        border-right: none;
        padding-right: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .resumo-app {
        flex-direction: column;
        text-align: center;
    }
    
    .resumo-total {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}