/* ===================================
   VrindaGo™ - Booking & Payment System
   UPI, WhatsApp & Bank Transfer Integration
=================================== */

/* Book Now Button */
.book-now-btn {
    background: var(--accent-green) !important;
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-now-btn:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.booking-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.booking-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.booking-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.booking-body {
    padding: var(--space-6);
}

/* Booking Steps */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-step h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-3);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Counter Controls */
.guest-counter,
.room-counter {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-light);
    border-radius: 8px;
    padding: var(--space-2);
    width: fit-content;
}

.guest-counter button,
.room-counter button {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guest-counter button:hover,
.room-counter button:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

.guest-counter span,
.room-counter span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    min-width: 24px;
    text-align: center;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-light);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
    border-top: 2px solid var(--primary-blue);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
}

.advance-payment {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: var(--space-3);
    margin-top: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--accent-green);
}

/* Navigation Buttons */
.continue-btn,
.back-btn,
.complete-btn {
    width: 100%;
    padding: var(--space-4);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.continue-btn,
.complete-btn {
    background: var(--primary-blue);
    color: white;
    margin-bottom: var(--space-4);
}

.continue-btn:hover,
.complete-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.back-btn {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.back-btn:hover {
    background: var(--border-light);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.payment-method {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: var(--space-4);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.payment-method:hover {
    border-color: var(--primary-blue-light);
    background: rgba(30, 64, 175, 0.02);
}

.payment-method.active {
    border-color: var(--primary-blue);
    background: rgba(30, 64, 175, 0.05);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.payment-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.payment-header h5 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.payment-badge.instant {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.payment-badge.secure {
    background: rgba(30, 64, 175, 0.2);
    color: var(--primary-blue);
}

/* Payment Details */
.payment-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.payment-details h5 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

/* UPI Payment Styles */
.qr-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.qr-code {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    text-align: center;
}

.qr-instructions {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: var(--space-3);
}

.qr-instructions h6 {
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
}

.qr-instructions ol {
    padding-left: var(--space-4);
    color: var(--text-primary);
}

.qr-instructions li {
    margin-bottom: var(--space-1);
}

/* UPI Manual Payment */
.upi-manual {
    margin-top: var(--space-4);
}

.upi-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.upi-field {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.upi-field label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.copy-field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    flex: 1;
}

.copy-field span {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-blue);
}

.copy-field button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-field button:hover {
    background: var(--primary-blue-dark);
}

/* WhatsApp Payment Styles */
.whatsapp-steps {
    margin-bottom: var(--space-4);
}

.step {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    align-items: flex-start;
}

.step-number {
    background: var(--primary-blue);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.whatsapp-payment-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: var(--space-4);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
}

.whatsapp-payment-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Bank Transfer Styles */
.bank-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.bank-field {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.bank-field label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 140px;
}

.transfer-note {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    padding: var(--space-3);
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}

.transfer-note i {
    color: var(--accent-gold);
    margin-top: 2px;
}

.transfer-note p {
    color: var(--text-primary);
    margin: 0;
}

/* Payment Confirmation */
.payment-confirmation {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.payment-confirmation h5 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.confirmation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.confirm-btn {
    padding: var(--space-3);
    border: 2px solid;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
    background: transparent;
}

.confirm-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.confirm-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.confirm-btn.email {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.confirm-btn.email:hover {
    background: var(--primary-blue);
    color: white;
}

.confirm-btn.call {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.confirm-btn.call:hover {
    background: var(--accent-green);
    color: white;
}

/* Booking Actions */
.booking-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3);
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.confirmation-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: var(--space-6);
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-green);
    margin-bottom: var(--space-4);
}

.confirmation-content h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.booking-summary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: var(--space-4);
    margin: var(--space-4) 0;
    text-align: left;
}

.booking-summary h4 {
    color: var(--primary-blue);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    color: var(--primary-blue);
    border-top: 2px solid var(--primary-blue);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
}

.next-steps {
    text-align: left;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.next-steps h4 {
    color: var(--accent-green);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: var(--space-1) 0;
    color: var(--text-primary);
}

.close-confirmation {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-confirmation:hover {
    background: var(--primary-blue-dark);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-modal-content {
        margin: var(--space-2);
        max-height: 95vh;
    }
    
    .booking-header,
    .booking-body {
        padding: var(--space-4);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .qr-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .confirmation-methods {
        grid-template-columns: 1fr;
    }
    
    .booking-actions {
        grid-template-columns: 1fr;
    }
    
    .upi-field,
    .bank-field {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .upi-field label,
    .bank-field label {
        min-width: auto;
    }
    
    .copy-field {
        width: 100%;
    }
}