:root {
  /* Color Palette */
  --blue-primary: #0d2c8d;
  --blue-hover: #093075;
  --blue-light: #e8eef9;
  --gray-bg: #f7f8fa;
  --gray-light: #fafbfc;
  --border: #e3e6ed;
  --border-light: #f0f2f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --success: #4caf50;
  --error: #f44336;
  --white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 44, 141, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 44, 141, 0.08);
  --shadow-lg: 0 8px 24px rgba(13, 44, 141, 0.1);
  --shadow-hover: 0 12px 32px rgba(13, 44, 141, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ============================= */
/* MAIN CONTAINER */
/* ============================= */
/* Validation */

/* pop up login */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-header {
  color:var(--blue-primary);
  padding: 24px;
  text-align: center;
}

.auth-modal-header i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.auth-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.auth-modal-body {
  /* padding: 32px 24px; */
  text-align: center;
}

.auth-modal-body p {
  margin: 0 0 12px 0;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.auth-modal-body p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: #333;
}

.auth-modal-footer {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-footer .btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.auth-modal-footer .btn-primary {
  border: 1px solid var(--blue-primary);
  background: var(--blue-primary);
  color: white;
}

.auth-modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: var(--blue-primary);
  background-color: white;
}

.auth-modal-footer .btn-register {
  border: 1px solid var(--blue-primary);
  background: #f5f5f5;
  color: var(--blue-primary);
}

.auth-modal-footer .btn-register:hover {
  background-color: var(--blue-primary);
  color: white;
  transform: translateY(-2px);
}

.auth-modal-footer .btn-cancel {
  background: transparent;
  color: #999;
  font-size: 14px;
  padding: 10px;
}

.auth-modal-footer .btn-cancel:hover {
  color: #666;
  background: #f9f9f9;
}

/* Loading Overlay */
#authLoadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-loading-content {
  text-align: center;
}

.auth-loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-loading-text {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.auth-loading-subtext {
  color: #777;
  font-size: 14px;
  margin: 8px 0 0 0;
}

@media (max-width: 480px) {
  .auth-modal-content {
    width: 95%;
    margin: 20px;
  }
  .auth-modal-header {
    padding: 20px;
  }
  .auth-modal-header i {
    font-size: 36px;
  }
  .auth-modal-header h3 {
    font-size: 20px;
  }
  .auth-modal-body {
    padding: 12px 18px;
  }
  .auth-modal-footer .btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}



  /* Additional inline styles for better UX */
  .required { color: #f44336; }
  .form-group { margin-bottom: 15px; }
  .form-text { 
    display: block; 
    font-size: 0.875rem; 
    color: #666; 
    margin-top: 4px;
  }
  .form-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 500;
  }
  .coupon-section { margin-top: 20px; margin-bottom: 20px; }
  .coupon-input-group { 
    display: flex; 
    gap: 10px; 
    margin-top: 8px;
  }
  .coupon-input-group input { flex: 1; }
  .summary-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .summary-row.subtotal { 
    margin-top: 10px; 
    padding-top: 10px; 
    border-top: 2px solid #e0e0e0;
  }
  .summary-row.discount { color: #4caf50; }
  .summary-row.final-price { 
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #333;
    font-size: 1.1rem;
  }
  .alert-box {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
  }
  .alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
  }
  .alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
  }
  .working-hours-info {
    margin-top: 15px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* ============================================ */
.room-container {
  display: flex;
  
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.room-left {
  flex: 1.5;
  min-width: 0;
}

/* ============================= */
/* IMAGE SLIDER */
/* ============================= */

.room-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base);
}

.room-slider:hover {
  box-shadow: var(--shadow-lg);
}

.slides {
  display: flex;
  transition: transform var(--transition-slow);
  cursor: grab;
}

.slides:active {
  cursor: grabbing;
}

.slides img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  user-select: none;
  -webkit-user-drag: none;
}

/* Dots Navigation */
.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(13, 44, 141, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.dot.active {
  width: 24px;
  height: 8px;
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  border-radius: 4px;
}

/* ============================= */
/* ROOM INFO SECTION */
/* ============================= */

.room-info {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: box-shadow var(--transition-base);
}

.room-info:hover {
  box-shadow: var(--shadow-md);
}

.room-info h2 {
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.location {
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 0;
}

.location i {
  color: var(--blue-primary);
  font-size: 16px;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}


.feature i {
  font-size: 24px;
  color: var(--blue-primary);
  min-width: 24px;
}

.feature p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* ============================= */
/* BOOKING CARD */
/* ============================= */

.booking-card {
  flex: 1;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 20px;
  transition: box-shadow var(--transition-base);
  border: 1px solid var(--border-light);
}

.booking-card:hover {
  box-shadow: var(--shadow-hover);
}

.booking-card h3 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 28px;
  text-align: center;
  color: var(--text-primary);
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.booking-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.booking-card input[type="date"],
.booking-card input[type="time"],
.booking-card input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.booking-card input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(13, 44, 141, 0.08);
}

.booking-card input:hover:not(:focus) {
  border-color: var(--blue-primary);
}

/* Time Group Layout */
.time-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Coupon Section */
.coupon-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.coupon-section label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: block;
}

.coupon-input-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.coupon-input-group input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--blue-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Booking Summary */
.booking-summary {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-primary);
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.summary-row span {
  color: var(--text-secondary);
}

.summary-row strong {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-row.subtotal {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

.summary-row.discount {
  color: var(--success);
  background: rgba(76, 175, 80, 0.08);
  padding: 12px 16px;
  margin: 8px -8px;
  border-radius: var(--radius-sm);
}

.summary-row.discount strong {
  color: var(--success);
}

.summary-row.final-price {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.summary-row.final-price strong {
  color: var(--blue-primary);
  font-size: 20px;
}

/* Submit Button */
.book-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-hover));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.book-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.book-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.book-btn:hover:not(:disabled)::before {
  left: 100%;
}

.book-btn:active:not(:disabled) {
  transform: translateY(0);
}

.book-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--text-muted);
}

/* Working Hours Info */
.working-hours-info {
  margin-top: 20px;
  padding: 16px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(13, 44, 141, 0.15);
}

.working-hours-info i {
  color: var(--blue-primary);
  font-size: 18px;
}

.working-hours-info span {
  color: var(--text-secondary);
}

.working-hours-info strong {
  color: var(--blue-primary);
  font-weight: 600;
}

/* Alert Messages */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-danger {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid var(--error);
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid var(--success);
}

.alert i {
  font-size: 18px;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* Tablets and smaller laptops */
@media (max-width: 1200px) {
  .room-container {
    gap: 32px;
  }
  
  .slides img {
    height: 400px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .room-container {
    flex-direction: column;
    gap: 32px;
    /* padding: 32px 16px; */
  }
  
  .booking-card {
    order: -1;
    max-width: 100%;
    position: static;
  }
  
  .room-left {
    width: 100%;
  }
  
  .slides img {
    height: 360px;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  .room-container {
    gap: 24px;
    flex-direction: column-reverse;
  }
  
  .slides img {
    height: 260px;
  }
  
  .room-info {
    padding: 20px;
  }
  
  .room-info h2 {
    font-size: 22px;
  }
  
  .booking-card {
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  
  .booking-card h3 {
    font-size: 20px;
  }
  
  .time-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature {
    padding: 12px;
  }
  
  .book-btn {
    font-size: 15px;
    padding: 14px 20px;
  }
  
  .summary-row {
    font-size: 14px;
  }
  
  .summary-row.final-price {
    font-size: 16px;
  }
  
  .summary-row.final-price strong {
    font-size: 18px;
  }
  
  .coupon-input-group {
    flex-direction: column;
  }
  
  .btn-secondary {
    width: 100%;
  }
}

/* Small mobile devices */
@media (max-width: 400px) {
  
  .slides img {
    height: 220px;
  }
  
  .room-info,
  .booking-card {
    padding: 16px;
  }
  
  .room-info h2 {
    font-size: 20px;
  }
}