/* Booking Page Specific Styles */

/* Ensure global reset from style.css is used */
/* body styles are handled by .booking-page in style.css */

/* Main content wrapper to sit above the blurred background */
.booking-content-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  /* Space for fixed navbar */
  padding-bottom: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Adjustments for the .wrap container within the booking page */
.booking-content-wrapper .wrap {
  max-width: 1000px;
  /* Wider for the two-column layout */
  padding: 20px;
  background: rgba(255,
      255,
      255,
      0.08);
  /* Slightly lighter overlay for content */
  backdrop-filter: blur(5px);
  /* Additional blur for content area */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
  /* Light text for dark background */
}

.booking-content-wrapper h2,
.booking-content-wrapper h3 {
  font-family: "Cinzel", serif;
  /* Use theme font for headings */
  color: var(--gold);
  /* Use theme gold color */
  text-align: center;
  margin-bottom: 20px;
}

.booking-content-wrapper .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.booking-content-wrapper .col-left {
  flex: 2;
  /* Left column takes more space */
  min-width: 300px;
}

.booking-content-wrapper .summary {
  flex: 1;
  /* Right column for summary */
  min-width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #f5f5f5;
}

.booking-content-wrapper .summary h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 20px;
}

.booking-content-wrapper .summary .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-content-wrapper .summary .row:last-of-type {
  border-bottom: none;
}

.booking-content-wrapper .summary .total {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--gold);
}

/* Panel styling for steps */
.panel {
  background: rgba(0, 0, 0, 0.3);
  /* Darker background for panels */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.panel.hidden {
  display: none;
}

.panel h2,
.panel h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 20px;
}

.stack label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #ddd;
}

.stack input[type="date"],
.stack select,
.stack input[type="text"],
.stack input[type="email"],
.stack input[type="tel"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stack input:focus,
.stack select:focus,
.stack textarea:focus {
  border-color: var(--gold);
  /* Gold border on focus */
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
  /* Gold glow on focus */
}

.stack button {
  /* Apply main theme button styles */
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  transition: all 0.32s ease;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
  cursor: pointer;
  width: auto;
  /* Override width: 100% from previous .btn */
  margin-top: 25px;
}

.stack button:hover {
  background: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(139, 29, 48, 0.3);
}

.stack .muted {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 10px;
}

.stack a {
  color: var(--gold);
  /* Use theme gold for links */
  text-decoration: underline;
}

.stack a:hover {
  color: var(--burgundy);
  /* Use theme burgundy on hover */
}

.room-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  color: #fff;
}

.room-option:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

/* Terms & Conditions Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  display: block;
  /* Override style.css display:none */
  position: relative;
  /* Override style.css position:fixed */
  background: #1c1c1c;
  /* Dark background for modal */
  color: #f5f5f5;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal header h2 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.modal .content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  /* For scrollbar */
  margin-bottom: 20px;
}

.modal .content p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.modal footer .btn {
  /* Use theme button styles */
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal footer .btn-primary {
  background: var(--gold);
  color: #fff;
}

.modal footer .btn-primary:hover {
  background: var(--burgundy);
}

.modal footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Mobile Responsiveness for Booking */
@media (max-width: 768px) {
  .booking-content-wrapper {
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .booking-content-wrapper .wrap {
    padding: 20px;
    margin: 20px auto;
  }

  .booking-content-wrapper .columns {
    flex-direction: column;
    gap: 25px;
  }

  .booking-content-wrapper .col-left,
  .booking-content-wrapper .summary {
    min-width: unset;
    width: 100%;
  }

  .booking-content-wrapper .summary {
    order: -1;
    /* Show summary first on mobile */
  }

  .panel {
    padding: 25px 20px;
  }

  .stack input[type="date"],
  .stack select,
  .stack input[type="text"],
  .stack input[type="email"],
  .stack input[type="tel"] {
    padding: 15px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .stack button {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    min-height: 50px;
  }

  .modal {
    padding: 25px;
    width: 95%;
  }

  .modal footer {
    flex-direction: column;
    gap: 12px;
  }

  .modal footer .btn {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .booking-content-wrapper {
    padding-top: 65px;
    padding-bottom: 20px;
  }

  .booking-content-wrapper .wrap {
    padding: 15px;
    margin: 15px auto;
  }

  .booking-content-wrapper .columns {
    gap: 20px;
  }

  .panel {
    padding: 20px 15px;
  }

  .stack input[type="date"],
  .stack select,
  .stack input[type="text"],
  .stack input[type="email"],
  .stack input[type="tel"] {
    padding: 12px;
  }

  .stack button {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .modal {
    padding: 20px;
    width: 98%;
  }

  .modal footer .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .booking-content-wrapper {
    padding-top: 60px;
  }

  .booking-content-wrapper .wrap {
    padding: 12px;
    margin: 10px auto;
  }

  .panel {
    padding: 18px 12px;
  }

  .stack button {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .modal {
    padding: 18px;
    width: 100%;
    border-radius: 0;
  }
}

/* Room Cards */
.room-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.room-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.room-info h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.2em;
}

.room-info p {
  margin: 0 0 15px 0;
  color: #666;
  line-height: 1.5;
}

.room-price {
  font-size: 1.3em;
  font-weight: bold;
  color: #e67e22;
  margin-bottom: 15px;
}

.btn-select-room {
  background: #e67e22;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
  width: 100%;
}

.btn-select-room:hover {
  background: #d35400;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #e67e22;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Error and Success Messages */
.error-message,
.success-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.success-message {
  background: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

/* Booking Summary */
#bookingSummary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

#bookingSummary h4 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 8px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 0;
}

.summary-item.total {
  font-weight: bold;
  font-size: 1.1em;
  border-top: 1px solid #dee2e6;
  padding-top: 12px;
  margin-top: 12px;
  color: #e67e22;
}