/* Booking Page Styles */

/* Override header position for booking page */
body .header {
  position: static !important;
  top: auto !important;
  left: auto !important;
  padding: 0rem 0rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Make navbar narrower for booking page */
body .header .navbar ul li {
  margin: 0 1.5rem !important;
}

body .header .navbar ul li a {
  font-size: 1.6rem !important;
  padding: 0rem 0rem !important;
}

body .header .logo img {
  height: 35px !important;
  margin-top: -8px !important;
}

.booking-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 60px;
    text-align: center;
}

/* Booking hero logo placement and sizing */
.booking-hero .container { position: relative; }
.booking-hero .logo {
  position: absolute;
  top: -40px;
  left: 0;
  right: auto;
}
.booking-hero .logo img {
  height: 40px;
  width: auto;
}

.booking-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.booking-hero p {
    font-size: 1.8rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.booking-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.calendar-weekdays div {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 1.4rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 400px;
}

.calendar-day {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    font-size: 1.4rem;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

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

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

.calendar-day.today {
    border: 2px solid #667eea;
    font-weight: 600;
}

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

/* Booking Form Styles */
.booking-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.booking-form-container h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 1.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Time zone specific styles */
.form-group select[name="time_zone"] {
    font-weight: 500;
}

.time-zone-note {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.cdt-time-note {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #1976d2;
}

.booking-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

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

.booking-submit-btn:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.4rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-hero h1 {
        font-size: 2rem;
    }
    
    .booking-hero p {
        font-size: 1.6rem;
    }
    
    .calendar-container {
        margin-bottom: 20px;
    }
    
    .booking-form-container {
        position: static;
        margin-top: 20px;
    }
    
    .calendar-day {
        padding: 10px 5px;
        font-size: 1.3rem;
    }
    
    .calendar-weekdays div {
        padding: 10px 5px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .booking-section {
        padding: 40px 0;
    }
    
    .booking-hero {
        padding: 60px 0 40px;
    }
    
    /* Move logo to left and reduce size on small screens */
    .booking-hero .logo {
      left: 0;
      right: auto;
    }
    .booking-hero .logo img {
      height: 32px;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-header h2 {
        font-size: 1.2rem;
    }
    
    .booking-form-container {
        padding: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Time slot availability indicator */
.time-slot-available {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 5px;
}

.time-slot-booked {
    color: #dc3545;
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Calendar day availability indicator */
.calendar-day.available::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
}

.calendar-day.limited::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ffc107;
    border-radius: 50%;
}

.calendar-day.booked::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #dc3545;
    border-radius: 50%;
} 