/* ===========================================
   Checkout Payment - Design Moderno
   Baseado nas cores do catálogo (#667eea, #764ba2)
   =========================================== */

/* Container Principal */
.payment-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Estado Bloqueado */
.payment-section.payment-locked {
    background: #f8f9fa;
    border: 2px dashed #e2e8f0;
}

.payment-section.payment-locked .payment-section-title {
    color: #a0aec0;
}

.payment-section.payment-locked .payment-method-tab {
    cursor: not-allowed;
}

.payment-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.payment-section-subtitle {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1.25rem;
}

/* Tabs de Método de Pagamento */
.payment-methods {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
}

.payment-method-tab:hover {
    border-color: var(--ff-primary);
    background: #f8f7ff;
}

.payment-method-tab.active {
    border-color: var(--ff-primary);
    background: var(--ff-gradient);
    color: white;
}

.payment-method-tab .payment-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ff-primary);
}

.payment-method-tab.active .payment-icon {
    color: white;
}

.payment-method-tab .payment-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* Conteúdo do Método Selecionado */
.payment-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Aviso/OBS */
.payment-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.25rem;
}

.payment-notice-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.payment-notice-text {
    font-size: 0.8rem;
    color: #a16207;
    margin: 0;
}

/* ========== CARTÃO DE CRÉDITO ========== */

/* Card Visual */
.credit-card-visual {
    background: var(--ff-gradient);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 10px 30px rgba(var(--ff-primary-rgb), 0.3);
}

.credit-card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.credit-card-chip {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-chip-icon {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-chip-icon::after {
    content: '';
    width: 25px;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #c9a000 0px,
        #c9a000 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 2px;
}

.card-brand-icons {
    display: flex;
    gap: 0.5rem;
}

.card-brand-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0.8;
}

.card-brand-circle.red {
    background: #ef4444;
}

.card-brand-circle.yellow {
    background: #fbbf24;
    margin-left: -15px;
}

.credit-card-number {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.credit-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.credit-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.credit-card-value {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Formulário do Cartão */
.card-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.card-form-group.small {
    flex: 0 0 120px;
}

.card-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.card-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.card-form-input:focus {
    outline: none;
    border-color: var(--ff-primary);
    box-shadow: 0 0 0 3px rgba(var(--ff-primary-rgb), 0.1);
}

.card-form-input::placeholder {
    color: #a0aec0;
}

/* ========== PIX ========== */

.pix-content {
    text-align: center;
    padding: 2rem 1rem;
}

.pix-icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--ff-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(var(--ff-primary-rgb), 0.3);
}

.pix-icon-container i {
    font-size: 3.5rem;
    color: white;
}

.pix-icon-container img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.pix-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.pix-description {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pix-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.pix-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4a5568;
}

.pix-benefit i {
    color: #10b981;
    font-size: 1rem;
}

/* ========== BOLETO ========== */

.boleto-content {
    text-align: center;
    padding: 2rem 1rem;
}

.boleto-icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--ff-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(var(--ff-primary-rgb), 0.3);
}

.boleto-icon-container i {
    font-size: 3.5rem;
    color: white;
}

.boleto-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.boleto-description {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.boleto-info {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.boleto-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #166534;
    margin-bottom: 0.5rem;
}

.boleto-info-item:last-child {
    margin-bottom: 0;
}

.boleto-info-item i {
    color: #22c55e;
}

/* ========== BOTÃO CONFIRMAR ========== */

.payment-confirm-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: var(--ff-gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.payment-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--ff-primary-rgb), 0.4);
}

.payment-confirm-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== RESPONSIVE - Tablet ========== */
@media (max-width: 992px) {
    .payment-section {
        padding: 1.25rem;
    }
    
    .payment-method-tab {
        padding: 0.875rem 0.5rem;
        min-height: 70px;
    }
    
    .payment-method-tab .payment-icon {
        font-size: 1.25rem;
    }
    
    .credit-card-visual {
        padding: 1.25rem;
        min-height: 160px;
    }
    
    .credit-card-number {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}

/* ========== RESPONSIVE - Mobile ========== */
@media (max-width: 576px) {
    .payment-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .payment-section-title {
        font-size: 1.1rem;
    }
    
    .payment-methods {
        gap: 0.5rem;
    }
    
    .payment-method-tab {
        padding: 0.75rem 0.25rem;
        min-height: 65px;
        border-radius: 10px;
    }
    
    .payment-method-tab .payment-icon {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
    }
    
    .payment-method-tab .payment-label {
        font-size: 0.7rem;
    }
    
    .credit-card-visual {
        padding: 1rem;
        min-height: 150px;
        border-radius: 12px;
    }
    
    .credit-card-number {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .credit-card-value {
        font-size: 0.8rem;
    }
    
    .credit-card-label {
        font-size: 0.6rem;
    }
    
    .card-chip-icon {
        width: 35px;
        height: 28px;
    }
    
    .card-brand-circle {
        width: 25px;
        height: 25px;
    }
    
    .card-brand-circle.yellow {
        margin-left: -12px;
    }
    
    .card-form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .card-form-group.small {
        flex: 1;
    }
    
    .card-form-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .pix-icon-container,
    .boleto-icon-container {
        width: 100px;
        height: 100px;
    }
    
    .pix-icon-container i,
    .boleto-icon-container i {
        font-size: 2.5rem;
    }
    
    .pix-benefits {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .payment-confirm-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
}
