/* ===== ENHANCED PAYMENT METHODS STYLING ===== */

.payment-methods-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.payment-title {
    color: var(--coklat, #8B4513);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Payment Image */
.payment-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.payment-image:hover {
    transform: scale(1.02);
}

/* Payment Categories */
.payment-category {
    margin-bottom: 1.5rem;
}

.category-header {
    margin-bottom: 1rem;
}

.category-title {
    color: var(--coklat, #8B4513);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.category-badge.instant {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

/* Payment Options */
.payment-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-option:hover {
    border-color: var(--sage, #9CAF88);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.payment-option.active {
    border-color: var(--hijau, #28a745);
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--hijau, #28a745), var(--hijau2, #218838));
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-icon.ovo {
    background: linear-gradient(135deg, #4C3494, #3d2a7a);
}

.option-icon.dana {
    background: linear-gradient(135deg, #118EEA, #0e7bc4);
}

.option-icon.gopay {
    background: linear-gradient(135deg, #00AA5B, #008a4a);
}

.option-icon.shopee {
    background: linear-gradient(135deg, #EE4D2D, #d43d24);
}

.option-icon.cod {
    background: linear-gradient(135deg, var(--kuning, #ffc107), #e0a800);
}

.payment-option:hover .option-icon {
    transform: scale(1.1);
}

.option-details {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--coklat, #8B4513);
    margin-bottom: 0.25rem;
}

.option-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.option-info {
    font-size: 0.8rem;
    color: var(--hijau, #28a745);
    font-weight: 500;
    font-style: italic;
}

/* Active State Indicator */
.payment-option.active::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--hijau, #28a745);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-methods-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .payment-title {
        font-size: 1.3rem;
    }
    
    .payment-image {
        height: 150px;
    }
    
    .option-content {
        gap: 0.75rem;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .option-title {
        font-size: 1rem;
    }
    
    .option-subtitle {
        font-size: 0.85rem;
    }
    
    .option-info {
        font-size: 0.75rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .payment-methods-section {
        padding: 0.75rem;
    }
    
    .payment-option {
        padding: 0.75rem;
    }
    
    .option-content {
        gap: 0.5rem;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .option-title {
        font-size: 0.9rem;
    }
    
    .option-subtitle {
        font-size: 0.8rem;
    }
    
    .option-info {
        font-size: 0.7rem;
    }
    
    .payment-image {
        height: 120px;
    }
}

/* Animation for payment selection */
@keyframes paymentSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.payment-option.active {
    animation: paymentSelect 0.3s ease;
}

/* Loading state for payment options */
.payment-option.loading {
    opacity: 0.6;
    pointer-events: none;
}

.payment-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--hijau, #28a745);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus states for accessibility */
.payment-option:focus-within {
    outline: 2px solid var(--hijau, #28a745);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .payment-image {
        display: none;
    }
    
    .payment-option {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .category-badge {
        border: 1px solid #000;
    }
}