/* ========================================
   Booking Modal Responsive Fixes
   ======================================== */

/* Modal Size Adjustments */
.booking-modal .modal-dialog {
    max-width: 700px !important;
    width: 80% !important;
    max-height: 90vh !important;
    margin: 0.5rem auto !important;
}

/* Ensure modal doesn't exceed viewport */
.booking-modal .modal-dialog.modal-lg {
    max-width: 700px !important;
}

/* Modal content padding adjustments */
.booking-modal .modal-content {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
    max-height: 90vh !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.booking-modal .modal-body {
    padding: 5px 5px 20px 5px !important;
    flex: 1 !important;
    overflow-y: visible !important;
    max-height: none !important;
}

/* Modal Header and Footer */
.booking-modal .modal-header {
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
}

.booking-modal .modal-footer {
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
}

/* Calendar Container Adjustments */
.calender-area {
    padding: 3px 0 !important;
    max-height: 100% !important;
    overflow: visible !important;
}

.booking-calendar {
    max-width: 400px !important;
    margin: 0 auto 3px auto !important;
}

/* Pignose Calendar Responsive Fixes */
.pignose-calendar {
    max-width: 400px !important;
    font-size: 12px !important;
    margin: 0 auto !important;
}

.pignose-calendar .pignose-calendar-top {
    padding: 8px 10px !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    position: relative !important;
    z-index: 10 !important;
    background: #fff !important;
    border-bottom: 1px solid #e9ecef !important;
}

.pignose-calendar .pignose-calendar-month {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    line-height: 1.3 !important;
    color: #495057 !important;
}

.pignose-calendar .pignose-calendar-body {
    padding: 8px 6px 6px 6px !important;
    margin-top: 5px !important;
}

.pignose-calendar .pignose-calendar-body table {
    width: 100% !important;
    font-size: 12px !important;
}

.pignose-calendar .pignose-calendar-body table td {
    width: 14.28% !important;
    height: 22px !important;
    padding: 1px !important;
    font-size: 9px !important;
}

.pignose-calendar .pignose-calendar-body table th {
    height: 20px !important;
    padding: 1px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
}

/* Calendar Unit Styling */
.pignose-calendar-unit {
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.pignose-calendar-unit:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.05) !important;
}

.pignose-calendar-unit.pignose-calendar-unit-active {
   
    color: white !important;
    font-weight: bold !important;
}

/* Available date styling */
.pignose-calendar-unit.available-date {
    background-color: #d4edda !important;
    border: 1px solid #28a745 !important;
    color: #155724 !important;
    font-weight: 500 !important;
}

/* Stepper Header Responsive */
.bs-stepper-header {
    flex-wrap: wrap !important;
    padding: 3px 2px !important;
    margin-bottom: 5px !important;
    flex-shrink: 0 !important;
}

/* Stepper Content */
.bs-stepper-content {
    flex: 1 !important;
    overflow-y: visible !important;
    max-height: none !important;
}

.bs-stepper-header .step {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    margin: 2px !important;
}

.bs-stepper-header .step .step-trigger {
    padding: 3px 1px !important;
    font-size: 9px !important;
}

.bs-stepper-header .step .bs-stepper-circle {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
}

.bs-stepper-header .step .h3 {
    font-size: 10px !important;
    margin-bottom: 1px !important;
}

/* Time Slot Container */
.booking-time-slider {
    padding: 3px 0 !important;
    margin: 3px 0 !important;
}

/* Time Slot Section Title */
.booking-time-slider .section-title h3 {
    font-size: 11px !important;
    margin-bottom: 0px !important;
    font-weight: 600 !important;
}

.booking-time-slider .section-title p {
    font-size: 8px !important;
    margin-bottom: 2px !important;
    color: #6c757d !important;
}

/* Time Slot Dropdown Styling */
.booking-time-slider select {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto 10px auto !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
    height: 34px !important;
    line-height: 1.3 !important;
}

/* Preferred time label and divider for clearer hierarchy */
.booking-time-slider .preferred-time-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 6px 0 6px 0 !important;
}

.booking-time-slider .preferred-time-label .label-text {
    font-size: 12px !important;
    font-weight: 600 !important;
}

.booking-time-slider .preferred-time-label .label-divider {
    flex: 1 1 auto !important;
    height: 1px !important;
    background: #e9ecef !important;
    border-radius: 1px !important;
}

/* Compact next/prev buttons */
.booking-modal .btn-next,
.booking-modal .btn-prev {
    padding: 6px 12px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

/* Cart Summary Styling */
.cart-summary {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    padding: 10px !important;
    margin-top: 10px !important;
}

.summary-header {
    margin-bottom: 8px !important;
}

.summary-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #495057 !important;
}

.summary-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.summary-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 10px !important;
}

.summary-label {
    font-weight: 500 !important;
    color: #6c757d !important;
}

.summary-value {
    font-weight: 600 !important;
    color: #495057 !important;
}

.booking-time-slider select:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: none !important;
}

/* Form Responsive Adjustments */
.payment-form {
    max-width: 500px !important;
    width: 100% !important;
}

/* Button Groups */
.btn-groups {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding: 10px 0 !important;
}

/* Next Step Button Specific Styling */
/* #time_next_step {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    padding: 8px 20px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
} */
 .pignose-calendar-header{
    background-color: #F8F8F8;

 }
 .booking-calendar .pignose-calendar-body{
margin-top:0px !important;
 }

#time_next_step:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* Section Titles */
.section-title.title-center h3 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
}

.section-title.title-center p {
    font-size: 10px !important;
    color: #6c757d !important;
    margin-bottom: 6px !important;
}

/* ========================================
   Mobile Responsive (768px and below)
   ======================================== */
@media (max-width: 768px) {
    .booking-modal .modal-dialog {
        width: 95% !important;
        margin: 0.25rem auto !important;
        max-width: 600px !important;
    }
    
    .booking-modal .modal-body {
        padding: 8px !important;
    }
    
    .booking-calendar {
        max-width: 350px !important;
    }
    
    .pignose-calendar {
        max-width: 350px !important;
    }
    
    .pignose-calendar .pignose-calendar-body table td {
        height: 20px !important;
        font-size: 8px !important;
        padding: 1px !important;
    }
    
    .pignose-calendar .pignose-calendar-body table th {
        height: 18px !important;
        font-size: 7px !important;
    }
    
    .bs-stepper-header {
        padding: 2px 1px !important;
    }
    
    .bs-stepper-header .step {
        min-width: 70px !important;
        margin: 1px !important;
    }
    
    .bs-stepper-header .step .step-trigger {
        padding: 2px 1px !important;
        font-size: 8px !important;
    }
    
    .bs-stepper-header .step .bs-stepper-circle {
        width: 20px !important;
        height: 20px !important;
        font-size: 8px !important;
    }
    
    .bs-stepper-header .step .h3 {
        font-size: 9px !important;
    }
    
    .section-title.title-center h3 {
        font-size: 13px !important;
    }
    
    .section-title.title-center p {
        font-size: 9px !important;
    }
    
    .booking-time-slider {
        padding: 2px 0 !important;
        margin: 2px 0 !important;
    }
    
    .booking-time-slider .section-title h3 {
        font-size: 10px !important;
    }
    
    .booking-time-slider .section-title p {
        font-size: 7px !important;
    }
    
    .booking-time-slider select {
        padding: 3px 6px !important;
        font-size: 9px !important;
        height: 24px !important;
        margin-bottom: 6px !important;
    }
    
    .btn-groups {
        gap: 6px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
}

/* ========================================
   Tablet Responsive (769px to 1024px)
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .booking-modal .modal-dialog {
        max-width: 550px !important;
        width: 70% !important;
    }
    
    .booking-calendar {
        max-width: 350px !important;
    }
    
    .pignose-calendar {
        max-width: 350px !important;
    }
    
    .pignose-calendar .pignose-calendar-body table td {
        height: 26px !important;
        font-size: 11px !important;
    }
}

/* ========================================
   Large Screen Adjustments (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .booking-modal .modal-dialog {
        max-width: 600px !important;
    }
    
    .booking-calendar {
        max-width: 380px !important;
    }
    
    .pignose-calendar {
        max-width: 380px !important;
    }
}

/* ========================================
   Close Button Styling
   ======================================== */
.booking-modal .btn-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1060 !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.booking-modal .btn-close:hover {
    background-color: #e9ecef !important;
    transform: scale(1.1) !important;
}

.booking-modal .btn-close i {
    font-size: 16px !important;
    color: #6c757d !important;
}

/* ========================================
   Loading Spinner Adjustments
   ======================================== */
.request-loader-time {
    z-index: 1070 !important;
}

/* ========================================
   Form Input Improvements
   ======================================== */
.booking-modal .form-control {
    border-radius: 6px !important;
    border: 1px solid #dee2e6 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.booking-modal .form-control:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* ========================================
   Button Improvements
   ======================================== */
.booking-modal .btn {
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
}

.booking-modal .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none !important;
}

.booking-modal .btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* ========================================
   Compact Time Selection Modal
   ======================================== */
.time-selection-modal {
    z-index: 1065 !important;
}

.time-selection-modal .modal-dialog {
    max-width: 300px !important;
    width: 90% !important;
    margin: 10px auto !important;
    transform: translateY(-50px) !important;
}

.time-selection-modal .modal-content {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    padding: 15px !important;
}

.time-selection-modal .modal-header {
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    margin-bottom: 10px !important;
}

.time-selection-modal .modal-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.time-selection-modal .modal-body {
    padding: 0 !important;
}

.time-selection-modal .time-slots {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

.time-selection-modal .time-slot {
    padding: 8px 12px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    text-align: center !important;
}

.time-selection-modal .time-slot:hover {
    background: #f8f9fa !important;
    border-color: #007bff !important;
}

.time-selection-modal .time-slot.selected {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.time-selection-modal .modal-footer {
    padding: 10px 0 0 0 !important;
    border-top: none !important;
    display: flex !important;
    gap: 8px !important;
}

.time-selection-modal .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}
