/* BookingPlace - Component Styles */

/* Navigation Components */
.navbar-custom {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand-custom {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-custom:hover {
    transform: scale(1.05);
}

.nav-link-custom {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

/* Booking Header */
.booking-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0;
    margin-bottom: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;    
    margin-top: 90px;
}


.breadcrumb-container {
    margin-bottom: 0.75rem;
}

.modern-breadcrumb {
    background: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.modern-breadcrumb .breadcrumb {
    margin: 0;
    background: transparent;
}

.modern-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.modern-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.modern-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.modern-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: .5rem;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.header-text p {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    margin-bottom: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Booking Sections */
.booking-section {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.booking-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-body {
    padding: 1.5rem;
}

/* Service Information Card */
.service-info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
}

.service-image {
    position: relative;
    flex-shrink: 0;
}

.service-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.discount-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.service-details {
    flex: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.service-meta {
    margin-bottom: 1rem;
}

.meta-item {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.meta-item i {
    color: var(--primary-color);
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-pricing {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-item, .vendor-item {
    flex: 1;
    min-width: 120px;
}

.price-label, .vendor-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vendor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Form Styling */
.booking-form {
    max-width: none;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.required {
    color: #dc3545;
    margin-left: 0.25rem;
}

.modern-input, .modern-textarea {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-input:focus, .modern-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.modern-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: "⚠";
    margin-right: 0.5rem;
}

/* Guest Counter */
.guest-counter {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.guest-counter:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.counter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: var(--secondary-color);
}

.counter-input {
    border: none;
    padding: 0.75rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    flex: 1;
    min-width: 60px;
}

.counter-input:focus {
    outline: none;
    box-shadow: none;
}

/* Payment Components */
.payment-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.payment-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option-item {
    position: relative;
}

.payment-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.payment-option-input:checked + .payment-option-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.option-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.option-text h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.option-text p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Payment Methods */
/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 in a row */
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 in a row */
    }
}

@media (max-width: 576px) {
    .payment-methods-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 in a row */
    }
}

.payment-method-option {
    position: relative;
}

/* Radio hidden */
.payment-method-option input[type="radio"] {
    visibility: hidden;
    position: absolute;
}

/* Card */
.payment-method-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 1.5rem;
    height: 200px;                 /* FIXED HEIGHT */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:start;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Active Card */
.payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}

/* Icon */
.method-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: .4rem;
}

/* Text */
.method-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.method-content p {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Wallet Box */
.wallet-balance {
    margin-top: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.balance-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Badges */
.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-badge.instant { background: #d4edda; color: #155724; }
.feature-badge.flexible { background: #fff3cd; color: #856404; }
.feature-badge.onsite   { background: #cce5ff; color: #004085; }

/* Green tick badge */
.method-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.25s ease;
}

.payment-method-option input[type="radio"]:checked + .payment-method-card .method-badge {
    opacity: 1;
}


/* Payment Details */
.payment-details {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
}

.partial-payment-card, .cash-payment-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.08);
}

.partial-header, .cash-header {
    margin-bottom: 1.5rem;
}

.partial-header h6, .cash-header h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.partial-header h6 i, .cash-header h6 i {
    color: var(--primary-color);
}

.partial-form {
    margin-bottom: 1.5rem;
}

.partial-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partial-field {
    flex: 1;
}

.field-label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.field-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.field-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.payment-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.breakdown-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.breakdown-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.breakdown-amount {
    font-size: 1.2rem;
    font-weight: 600;
}

.breakdown-amount.primary {
    color: var(--primary-color);
}

.breakdown-amount.secondary {
    color: var(--warning-color);
}

.cash-content {
    text-align: center;
}

.cash-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cash-benefits h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.benefits-list li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Referral Codes */
.referral-codes {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

/* Submit Button */
.submit-section {
    text-align: center;
    padding: 2rem;
}

.btn-submit-booking {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-submit-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-submit-booking:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit-booking .btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.terms-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Booking Summary */
.booking-summary-card {
    position: sticky;
    top: 20px;
}

.booking-calculation {
    font-size: 0.95rem;
}

.booking-calculation .d-flex {
    margin-bottom: 0.5rem;
}

.booking-calculation hr {
    margin: 1rem 0;
    border-color: rgba(0,0,0,0.1);
}

#paymentBreakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-image img {
        width: 100%;
        height: 200px;
    }
    
    .payment-option-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .partial-row {
        grid-template-columns: 1fr;
    }
    
    .payment-breakdown {
        grid-template-columns: 1fr;
    }
    
    .service-pricing {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    
    .section-body {
        padding: 1rem;
    }
    
    .booking-section {
        margin-bottom: 1rem;
    }
    
    .btn-submit-booking {
        width: 100%;
        padding: 1rem;
    }
}