/* ========================================
   PROFESSIONAL PAYMENT METHOD UI
   Modern, Clean, Trustworthy Design
   ======================================== */

/* Payment Option Container */
.payment-option {
    position: relative;
    margin-bottom: 1rem;
}

/* Hide default radio button */
.payment-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Payment Label */
.payment-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

/* Payment Card */
.payment-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid #e0e5dd;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.payment-card:hover {
    border-color: #2d7a52;
    box-shadow: 0 4px 12px rgba(45, 122, 82, 0.1);
    transform: translateY(-2px);
}

/* Selected State */
.payment-radio:checked + .payment-label .payment-card {
    border-color: #2d7a52;
    background: #f4faf7;
    box-shadow: 0 4px 16px rgba(45, 122, 82, 0.15);
}

/* Payment Icon Container */
.payment-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cash-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.online-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.payment-radio:checked + .payment-label .payment-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Payment Content */
.payment-content {
    flex: 1;
}

.payment-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1c19;
    margin-bottom: 0.25rem;
}

.payment-description {
    font-size: 0.875rem;
    color: #6b7169;
    margin-bottom: 0.5rem;
}

.payment-badge {
    margin-top: 0.5rem;
}

.payment-badge .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Payment Methods Icons Row */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.payment-method-icon {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.payment-method-icon:hover {
    opacity: 1;
}

/* Payment Badges (Icons + Text) */
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e5dd;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #52564f;
    transition: all 0.2s ease;
}

.payment-badge:hover {
    background: white;
    border-color: #2d7a52;
    color: #2d7a52;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(45, 122, 82, 0.1);
}

.payment-badge i {
    font-size: 1rem;
}

/* Specific brand colors */
.payment-badge .fa-cc-visa {
    color: #1a1f71;
}

.payment-badge .fa-cc-mastercard {
    color: #eb001b;
}

.payment-badge .fa-mobile-alt {
    color: #6b7169;
}

.payment-badge .fa-university {
    color: #52564f;
}

/* Check Icon (Appears when selected) */
.payment-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8eae6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.payment-check i {
    font-size: 1.25rem;
    color: #a8ada6;
    transition: all 0.3s ease;
}

.payment-radio:checked + .payment-label .payment-check {
    background: #2d7a52;
}

.payment-radio:checked + .payment-label .payment-check i {
    color: white;
}

/* Security Notice Enhancement */
.alert-light {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-option {
    animation: slideIn 0.3s ease forwards;
}

.payment-option:nth-child(1) {
    animation-delay: 0.1s;
}

.payment-option:nth-child(2) {
    animation-delay: 0.2s;
}

.payment-option:nth-child(3) {
    animation-delay: 0.3s;
}

.payment-option:nth-child(4) {
    animation-delay: 0.4s;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .payment-card {
        padding: 1rem;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }

    .payment-title {
        font-size: 1rem;
    }

    .payment-description {
        font-size: 0.8125rem;
    }

    .payment-check {
        width: 28px;
        height: 28px;
    }

    .payment-check i {
        font-size: 1rem;
    }

    .payment-method-icon {
        height: 20px;
    }
}

/* Focus States for Accessibility */
.payment-radio:focus + .payment-label .payment-card {
    outline: 2px solid #2d7a52;
    outline-offset: 2px;
}

/* Badge Enhancements */
.badge {
    letter-spacing: 0.02em;
}

.badge.bg-light {
    border: 1px solid #e0e5dd;
}

/* Security Icon Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fa-shield-check {
    animation: pulse 2s ease-in-out infinite;
}

/* Hover Effects on Icons */
.payment-icon i {
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-icon i {
    transform: scale(1.1);
}

/* Payment Card Border Animation */
.payment-radio:checked + .payment-label .payment-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2d7a52, #48a56f);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.15;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.3;
    }
}

/* Tooltip Enhancement (Optional) */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1a1c19;
    color: white;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 0.5rem;
}

/* Loading State (for future use) */
.payment-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.payment-card.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #2d7a52;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State (after selection) */
.payment-radio:checked + .payment-label .payment-title {
    color: #2d7a52;
}

/* Disabled State */
.payment-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-card.disabled::after {
    content: 'Coming Soon';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #6b7169;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

/* Print Styles */
@media print {
    .payment-option {
        page-break-inside: avoid;
    }

    .payment-card {
        border-color: #000;
    }

    .payment-icon {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}
