/* Booking Calendar Styles */

#calendar {
    width: 100%;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.calendar-table td {
    padding: 0;
    text-align: center;
    border: 1px solid #e9ecef;
    height: 60px;
    vertical-align: middle;
}

.calendar-day {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    position: relative;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f8f9fa;
    opacity: 0.5;
}

.calendar-day.disabled:hover {
    background-color: #f8f9fa;
}

.calendar-day.other-month {
    color: #ced4da;
}

.calendar-day.selected {
    background-color: var(--accent-gold-bolder);
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background-color: var(--accent-gold-bold);
}

.calendar-day.today {
    border: 2px solid var(--accent-gold-bolder);
}

.calendar-day.has-appointments {
    background-color: var(--accent-gold-bold);
}

.calendar-day.has-appointments.selected {
    background-color: var(--accent-gold-bolder);
}

.day-number {
    font-size: 1rem;
    font-weight: 500;
}

.appointment-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold-bolder);
    border-radius: 50%;
    margin-top: 4px;
    display: inline-block;
}

.appointment-indicator.more {
    width: auto;
    height: auto;
    font-size: 8px;
    line-height: 1;
    padding: 1px 2px;
    border-radius: 2px;
    background-color: var(--accent-gold-bolder);
    color: white;
    text-align: center;
    margin-left: 2px;
}

.calendar-day.selected .appointment-indicator {
    background-color: white;
}

.calendar-day.selected .appointment-indicator.more {
    background-color: white;
    color: var(--accent-gold-bolder);
}

/* Appointment List Styles */
.appointment-item {
    padding: 12px;
    border-left: 3px solid var(--accent-gold-bolder);
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
}

.appointment-time {
    font-weight: 600;
    color: var(--accent-gold-bolder);
    font-size: 1rem;
}

.appointment-name {
    font-weight: 500;
    color: #212529;
    margin-top: 4px;
}

.appointment-contact {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Form Styles */
#bookingForm .form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

#bookingForm .form-control,
#bookingForm .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
}

#bookingForm .form-control:focus,
#bookingForm .form-select:focus {
    border-color: var(--accent-gold-bolder);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Custom PayPal Button - Using Theme Variables */
.btn-paypal-custom {
    background: linear-gradient(135deg, var(--accent-gold-bolder) 0%, var(--accent-gold-bold) 100%);
    color: var(--text-muted);
    padding: 1.2rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--accent-gold-bolder);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 25px rgba(218, 190, 190, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.btn-paypal-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold-bold) 0%, var(--accent-gold-bolder) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-paypal-custom:hover::before {
    left: 0;
}

.btn-paypal-custom:hover {
    color: var(--text-muted);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(218, 190, 190, 0.4);
    border-color: var(--accent-gold-bold);
}

.btn-paypal-custom:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(218, 190, 190, 0.3);
}

.btn-paypal-custom i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-paypal-custom:hover i {
    transform: scale(1.1);
}

/* Remove Bootstrap button overrides */
.btn-luxury {
    background: linear-gradient(135deg, var(--accent-gold-bolder) 0%, var(--accent-gold-bold) 100%);
    color: var(--text-muted);
    padding: 1rem 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--accent-gold-bolder);
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
}

.btn-luxury:hover {
    background: linear-gradient(135deg, var(--accent-gold-bold) 0%, var(--accent-gold-bolder) 100%);
    color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-luxury:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border-radius: 12px;
    border: none;
}

.card-title {
    color: #212529;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-table th,
    .calendar-table td {
        padding: 4px;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        padding: 4px;
    }
    
    .day-number {
        font-size: 0.875rem;
    }
    
    .appointment-indicator {
        width: 4px;
        height: 4px;
    }
    
    .appointment-indicator.more {
        font-size: 7px;
        padding: 1px;
    }
}

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Custom Modal Structure - Using Theme Variables */

.modal-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-custom.show {
    display: flex;
    opacity: 1;
}

.modal-dialog-custom {
    background: var(--accent-gold);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(26, 26, 26, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-custom.show .modal-dialog-custom {
    transform: scale(1);
}

.modal-content-custom {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--accent-gold-bolder) 0%, var(--accent-gold-bold) 100%);
    padding: 2.5rem;
    border-bottom: 3px solid var(--text-muted);
    position: relative;
    display: flex!important;
    align-items: center;
    justify-content: space-between;
}

.modal-header-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
    opacity: 0.2;
}

.modal-title-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    margin: 0;
    text-shadow: 0 2px 4px rgba(26, 26, 26, 0.1);
}

.modal-title-custom i {
    font-size: 2.2rem;
    color: var(--text-muted);
}

.modal-body-custom {
    padding: 0;
    background: var(--accent-gold);
    flex: 1;
    overflow-y: auto;
}

/* Custom Close Button */
.btn-close-custom {
  background:transparent;
  border:none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
}

.btn-close-custom:hover {
    color: var(--accent-gold-bolderr);
    transform: rotate(90deg) scale(1.1);
}

/* Booking Payment Layout */
.booking-payment-layout {
    display: flex;
    min-height: 500px;
}

.booking-summary-section {
    flex: 1;
    padding: 2.5rem;
    border-right: 2px solid var(--accent-gold-bolder);
}

.paypal-payment-section {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Enhanced Booking Summary */
.booking-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 3px solid var(--accent-gold-bolder);
    box-shadow: 0 8px 25px rgba(218, 190, 190, 0.2);
    position: relative;
    overflow: hidden;
}

.booking-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold-bolder), var(--accent-gold-bold), var(--accent-gold-bolder));
}

.summary-title {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-gold-bold);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-gold-bold);
    transition: all 0.2s ease;
}

.summary-row:hover {
    background: rgba(218, 190, 190, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 0 -0.5rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    border-top: 3px solid var(--accent-gold-bolder);
    margin-top: 1rem;
    padding-top: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-bold) 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.summary-row:last-child {
    border-bottom: none;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-gold-bold);
    transition: all 0.2s ease;
}
.summary-label {
    color: var(--text-muted-bold);
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
}

.summary-value {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    flex: 1.5;
    text-align: right;
}

/* Payment Section */
.payment-title {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

/* Enhanced PayPal Button Container */
#paypal-button-container {
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 3px solid var(--accent-gold-bolder);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(218, 190, 190, 0.2);
    position: relative;
    overflow: hidden;
}

#paypal-button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold-bolder), var(--accent-gold-bold), var(--accent-gold-bolder));
}

#paypal-payment-status {
    width: 100%;
    margin-top: 1rem;
}

/* Enhanced Payment Processing States */
.payment-processing {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--accent-gold-bolder);
    margin: 1rem 0;
    color: var(--text-muted);
}

.payment-processing .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--accent-gold-bold);
    margin-bottom: 1rem;
}

.payment-success {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f5e8 100%);
    border-radius: 16px;
    border: 3px solid #28a745;
    margin: 1rem 0;
    color: #155724;
    animation: successPulse 0.6s ease;
}

.payment-success .bi-check-circle {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.payment-success h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.payment-success p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.payment-cancelled {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #fff3cd 0%, #fef8e7 100%);
    border-radius: 16px;
    border: 3px solid #ffc107;
    margin: 1rem 0;
    color: #856404;
    animation: cancelShake 0.5s ease;
}

.payment-cancelled .bi-x-circle {
    font-size: 5rem;
    color: #ffc107;
    margin-bottom: 1rem;
    display: block;
}

.payment-cancelled h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.payment-cancelled p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.payment-error {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8d7da 0%, #fde8e8 100%);
    border-radius: 16px;
    border: 3px solid #dc3545;
    margin: 1rem 0;
    color: #721c24;
    animation: cancelShake 0.5s ease;
}

.payment-error .bi-exclamation-triangle {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 1rem;
    display: block;
}

.payment-error h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.payment-error p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Animations */
@keyframes successPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cancelShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-paypal-custom {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .btn-paypal-custom i {
        font-size: 1rem;
    }
    
    /* Custom Modal Responsive */
    .modal-dialog-custom {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header-custom {
        padding: 1.5rem;
    }
    
    .modal-title-custom {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .modal-title-custom i {
        font-size: 1.6rem;
    }
    
    .btn-close-custom {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
    
    .booking-payment-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .booking-summary-section {
        border-right: none;
        border-bottom: 2px solid var(--accent-gold-bolder);
        padding: 1.5rem;
    }
    
    .paypal-payment-section {
        padding: 1.5rem;
    }
    
    .booking-summary {
        padding: 1.5rem;
    }
    
    .summary-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .summary-row {
        padding: 0.75rem 0;
    }
    
    #paypal-button-container {
        padding: 1.5rem;
    }
    
    .payment-processing,
    .payment-success,
    .payment-cancelled {
        padding: 2rem;
    }
    
    .payment-success .bi-check-circle,
    .payment-cancelled .bi-x-circle {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .btn-paypal-custom {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    /* Custom Modal Small Screen */
    .modal-dialog-custom {
        width: 98%;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .modal-header-custom {
        padding: 1rem;
    }
    
    .modal-title-custom {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        gap: 0.5rem;
    }
    
    .modal-title-custom i {
        font-size: 1.4rem;
    }
    
    .btn-close-custom {
        width: 35px;
        height: 35px;
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1rem;
    }
    
    .booking-summary-section,
    .paypal-payment-section {
        padding: 1rem;
    }
    
    .booking-summary {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .summary-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .summary-row {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .summary-label,
    .summary-value {
        font-size: 0.85rem;
    }
    
    
    .payment-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    #paypal-button-container {
        padding: 1rem;
    }
}
