/* Enhanced Payment Styles for Booking System */

.singleCol {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.colHeader {
    background: linear-gradient(135deg, #73BCB1 0%, #5a9b8f 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

.colHeader h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.colContent {
    padding: 20px;
}

.form-check {
    margin-bottom: 15px;
    padding: 15px;
    border: 0.5px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-check:hover {
    border-color: #73BCB1;
    background: #f8fffe;
}

.form-check-input:checked + .form-check-label {
    color: #73BCB1;
}

.form-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.method {
    font-weight: 600;
    font-size: 1rem;
}

.icon {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    min-height: 28px;
}

.icon img {
    height: 28px;
    border-radius: 4px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Responsive image sizing for payment methods */
@media (max-width: 768px) {
    .icon img {
        height: 24px;
        max-width: 100px;
        width: auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .icon img {
        height: 32px;
        max-width: 120px;
        width: auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (min-width: 1025px) {
    .icon img {
        height: 36px;
        max-width: 140px;
        width: auto;
        object-fit: contain;
        object-position: center;
    }
}

.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item strong {
    color: #495057;
    font-weight: 600;
}

.summary-item span {
    color: #73BCB1;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #73BCB1;
    box-shadow: 0 0 0 0.2rem rgba(115, 188, 177, 0.25);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.validation {
    font-size: 0.875rem;
    margin-top: 5px;
}

#confirm-booking-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#confirm-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(115, 188, 177, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .singleCol {
        margin-bottom: 15px;
    }
    
    .colContent {
        padding: 15px;
    }
    
    .form-check {
        padding: 12px;
    }
    
    .form-check-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .icon {
        align-self: flex-end;
    }
    
    .icon img {
        height: 22px !important;
        max-width: 80px !important;
        width: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* Enhanced layout for 2-column design */
@media (min-width: 768px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .singleCol {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .colContent {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .booking-summary {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .colHeader {
        padding: 12px 15px;
    }
    
    .colHeader h4 {
        font-size: 1rem;
    }
    
    .colContent {
        padding: 12px;
    }
    
    .form-check {
        padding: 10px;
    }
    
    .booking-summary {
        padding: 12px;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .summary-item strong {
        font-size: 0.9rem;
    }
    
    .summary-item span {
        font-size: 0.9rem;
    }
}

/* Loading States */
.payment-loading {
    opacity: 0.6;
    pointer-events: none;
}

.payment-loading .form-check {
    opacity: 0.5;
}

.payment-loading #confirm-booking-btn {
    opacity: 0.7;
}

/* Success States */
.payment-success {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.payment-error {
    border-color: #dc3545 !important;
    background-color: #f8d7da !important;
}

/* Animation for form checks */
.form-check-input:checked {
    animation: checkPulse 0.3s ease-in-out;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hover effects for summary items */
.summary-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0 -12px;
}

/* Enhanced button styles */
#confirm-booking-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#confirm-booking-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#confirm-booking-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Payment method icons enhancement */
.icon img {
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.form-check:hover .icon img {
    filter: grayscale(0);
}

.form-check-input:checked ~ .form-check-label .icon img {
    filter: grayscale(0);
}

/* Elegant Error Messages */
.payment-error-alert {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.payment-error-alert .alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.payment-error-alert .alert-danger {
    color: #721c24;
    background-color: transparent;
}

.payment-error-alert .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #dc3545;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-error-alert .btn-close:hover {
    opacity: 1;
    color: #b02a37;
}

.payment-error-alert .fas {
    color: #dc3545;
    font-size: 1.1rem;
}

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

/* Payment error styles removed - only show elegant messages */
