/* Frontend Payment Styles */

.payment-methods {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.payment-methods h3 {
    margin-top: 0;
    color: #333;
}

.payment-method {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #0073aa;
}

.payment-method.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.payment-method .payment-logo {
    width: 60px;
    height: auto;
    margin-left: auto;
}

.payment-method .payment-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-left: 25px;
}

.payment-gateway-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.payment-gateway-container.active {
    display: block;
}

#paypal-button-container {
    margin-top: 15px;
}

.tb-payment-notification {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.tb-payment-notification.tb-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.tb-payment-notification.tb-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.tb-payment-notification.tb-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.tb-payment-notification p {
    margin: 0;
}

.payment-security-info {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 4px;
    font-size: 13px;
    color: #2d5a2d;
}

.payment-security-info::before {
    content: "🔒 ";
}

.payment-total {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 20px 0;
}

.payment-total h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.payment-total .total-amount {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.payment-loading {
    text-align: center;
    padding: 20px;
}

.payment-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styling */
.tb-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.tb-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tb-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.tb-modal-close:hover {
    color: #000;
}

.tb-booking-summary {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.tb-booking-summary p {
    margin: 8px 0;
    font-size: 16px;
}

.tb-total-summary {
    margin: 20px 0;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 5px;
    text-align: center;
}

.tb-total-summary h4 {
    margin: 0;
    font-size: 24px;
    color: #2e7d32;
    font-weight: bold;
}

.tb-payment-methods {
    margin: 20px 0;
}

.tb-payment-methods h4 {
    margin-bottom: 15px;
    color: #333;
}

.tb-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tb-payment-option:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.tb-payment-option input[type="radio"] {
    margin-right: 10px;
}

.tb-modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.tb-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.tb-btn-primary {
    background: #007cba;
    color: white;
}

.tb-btn-primary:hover {
    background: #005a87;
}

.tb-btn-secondary {
    background: #6c757d;
    color: white;
}

.tb-btn-secondary:hover {
    background: #545b62;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-methods {
        padding: 15px;
    }
    
    .payment-method {
        padding: 12px;
    }
    
    .payment-method label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payment-method .payment-logo {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .tb-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .tb-modal-actions {
        flex-direction: column;
    }
    
    .tb-btn {
        width: 100%;
    }
}

/* Success Modal Styles - Mobile First */
.tb-success-modal {
    z-index: 10001;
    padding: 10px;
}

.tb-success-content {
    max-width: 500px;
    width: 100%;
    margin: 2% auto;
    text-align: center;
    max-height: 95vh;
    overflow-y: auto;
}

.tb-success-header {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.tb-success-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
}

.tb-success-header h2 {
    margin: 0 0 5px;
    color: #10B981;
    font-size: 24px;
    font-weight: 600;
}

.tb-success-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.tb-success-details {
    text-align: left;
    margin-bottom: 20px;
}

.tb-booking-reference {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #0ea5e9;
}

.tb-booking-reference strong {
    color: #0369a1;
    font-size: 18px;
}

.tb-booking-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tb-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.tb-info-row:last-child {
    border-bottom: none;
}

.tb-total-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #10B981;
    font-weight: 600;
}

.tb-label {
    color: #6b7280;
    font-weight: 500;
}

.tb-value {
    color: #111827;
    font-weight: 500;
}

.tb-total {
    color: #10B981;
    font-size: 18px;
    font-weight: 700;
}

.tb-success-message {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.tb-success-message p {
    margin: 5px 0;
    color: #92400e;
    font-size: 14px;
}

.tb-success-actions {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.tb-success-actions .tb-btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
}

/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .tb-success-modal {
        padding: 5px;
    }
    
    .tb-success-content {
        width: 98%;
        margin: 1% auto;
        padding: 15px;
        max-height: 98vh;
    }
    
    .tb-success-header {
        padding: 15px 0;
    }
    
    .tb-success-icon {
        width: 50px;
        height: 50px;
    }
    
    .tb-success-header h2 {
        font-size: 20px;
    }
    
    .tb-success-header p {
        font-size: 14px;
    }
    
    .tb-booking-reference {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .tb-booking-reference strong {
        font-size: 16px;
        word-break: break-word;
    }
    
    .tb-booking-info {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .tb-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 10px 0;
    }
    
    .tb-label {
        font-size: 13px;
        font-weight: 600;
    }
    
    .tb-value {
        font-size: 14px;
        word-break: break-word;
    }
    
    .tb-total {
        font-size: 16px;
    }
    
    .tb-success-message {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .tb-success-message p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .tb-success-actions {
        padding-top: 15px;
    }
    
    .tb-success-actions .tb-btn {
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .tb-success-content {
        width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .tb-success-header h2 {
        font-size: 18px;
    }
    
    .tb-booking-reference strong {
        font-size: 14px;
    }
    
    .tb-info-row {
        padding: 8px 0;
    }
    
    .tb-label {
        font-size: 12px;
    }
    
    .tb-value {
        font-size: 13px;
    }
}