/* ===================== GLOBAL STYLES ===================== */
body {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* center vertically */
  min-height: 100vh; /* full viewport height */
  margin: 0;
  padding: 0 15px; /* keeps content off the screen edges */
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #87ceeb, #ffffff);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  box-sizing: border-box;
}

/* When a language is selected, stop centering the body */
body.language-selected {
  display: block; /* no more flex centering */
  text-align: center;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  body {
    background: #87ceeb;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: bold;
}

/* ===================== PRELOADER ===================== */
#preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 1.5rem;
  font-weight: bold;
  background: #f2f2f2;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
  display: none; /* ensure it disappears fully */
}

/* ===================== MAIN CONTENT ===================== */
#main-content {
  text-align: center;
  margin-top: 80px; /* adjust vertical spacing from top */
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  display: block;
}

/* ===================== MAIN TITLE ===================== */
#mainTitle {
  background: linear-gradient(90deg, #2c97df, #26d07c, #f5b342);
  background-size: 300% 100%;
  animation: gradientShift 12s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);

  text-align: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;

  /* Remove white box behind title */
  background-color: transparent;
  border: none;
  margin: 15px 0;
  padding: 5px 0;

  position: relative;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  z-index: 10;
}

#mainTitle:hover {
  transform: scale(1.05);
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
}

#mainTitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===================== PAGE 2 WELCOME CONTAINER ===================== */

.form-card {
  background: linear-gradient(to bottom right, #ffffff, #f0f4f8);
  border: 1px solid #d1d5db; /* soft gray */
  border-radius: 12px;
  padding: 24px 22px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #374151;
  box-sizing: border-box;
}

/* Form container padding */
.form-card .form-container {
  padding: 10px 0 0 0;
}

/* Flex rows for two inputs */
.form-card .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

/* Full width for underage row */
#underageContainer .form-group {
  flex: 0 0 100%;
}

/* Center Next button */
.form-card .form-row:last-of-type {
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .form-card {
    padding: 18px 14px;
    margin: 16px 12px;
  }
  .form-card .form-row .form-group {
    flex: 0 0 100%;
  }
}

/* Heading inside welcome */
.registration-welcome h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937; /* dark neutral */
  margin-bottom: 12px;
  background: linear-gradient(90deg, #0077b6, #00a8e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Instructions & normal text */
#welcome-text,
#welcome-instructions,
.registration-welcome .instructions {
  font-size: 1rem;
  color: #374151;
  margin-top: 10px;
  line-height: 1.5;
}

/* Important note */
#welcome-important,
.registration-welcome .important {
  margin-top: 15px;
  padding: 12px;
  border-left: 5px solid #ef4444;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: bold;
  border-radius: 6px;
}

/* ===================== PERSONAL FORM CARD ===================== */

/* Form container inside card */
.form-card .form-container {
  display: flex;
  flex-direction: column; /* stack rows vertically */
  gap: 15px; /* vertical spacing between rows */
  padding: 0; /* no extra padding */
}

/* Each row contains exactly two inputs */
.form-card .form-container .form-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px; /* space between two inputs */
  justify-content: space-between;
}

/* Each input container takes half width */
.form-card .form-container .form-row .form-group {
  flex: 0 0 48%;
  min-width: 200px; /* prevent shrinking too much */
}

/* Center the Next button */
.form-card .form-container .form-row:last-of-type {
  justify-content: center;
  margin-top: 20px;
}

.form-card .form-container .form-row:last-of-type {
  width: 100%;
  max-width: 300px;
}

/* ===================== FORM CONTAINER ===================== */
.form-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 30px; /* ✅ more padding left/right */
  box-sizing: border-box;
}

/* Responsive padding */
@media (max-width: 768px) {
  .form-container {
    padding: 10px 15px; /* smaller padding for mobile */
  }
}

/* ===================== INPUTS, SELECTS, TEXTAREAS ===================== */
.form-container input,
.form-container select,
.form-container textarea {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

/* Default neutral */
input,
select,
textarea,
.flatpickr-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  background-color: #fff;
  transition: all 0.2s ease;
  outline: none;
}

/* -----------------------------------
   Placeholders
   ----------------------------------- */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #6b7280; /* Neutral gray for good contrast */
  font-style: normal; /* Remove italics for readability */
  font-family: "Inter", sans-serif;
  font-weight: 400;
  opacity: 1; /* Ensure consistent visibility */
}

/* Placeholder remains italic + grey */
.flatpickr-input::placeholder,
.flatpickr-alt-input::placeholder {
  color: rgba(128, 128, 128, 0.7);
  font-style: normal;
}

.flatpickr-alt-input.filled::placeholder {
  color: transparent; /* hide placeholder when filled */
}

/* -----------------------------------
   Focus state (active field)
   ----------------------------------- */
/* Base focus for all inputs, selects, textareas, datepickers */
input:focus,
select:focus,
textarea:focus,
.flatpickr-input:focus {
  border-color: #0077b6; /* Brand blue */
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
  background-color: #f8f9fa; /* Light grey */
  outline: none;
  transform: scale(1.02);
}

/* -----------------------------------
   Accessibility (keyboard users)
   ----------------------------------- */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0077b6;
  outline-offset: 2px;
}

/* -----------------------------------
   Validation states
   ----------------------------------- */
.input-valid {
  border-color: #2d6a4f;
  background-color: rgba(234, 244, 234, 0.2);
}

.input-invalid {
  border-color: #d00000;
  background-color: rgba(253, 236, 234, 0.2);
}

select:valid,
textarea:valid,
input.filled,
select.filled,
textarea.filled,
input.flatpickr-alt-input.filled {
  border-color: #2d6a4f; /* green */
  background-color: rgba(234, 244, 234, 0.2);
}

.flatpickr-alt-input.filled,
.flatpickr-input.has-value {
  border-color: #2d6a4f; /* green */
  background-color: rgba(234, 244, 234, 0.2);
  font-style: normal; /* not italic, since it's a real value */
  color: #000; /* readable text */
}

/* Unified filled state for native inputs, selects and flatpickr visible input */
input.filled,
select.filled,
textarea.filled,
.flatpickr-alt-input.filled {
  border-color: #2d6a4f !important; /* green */
  background-color: rgba(234, 244, 234, 0.2) !important;
}

/* ------------------- INVALID STATE ------------------- */
/* Only highlight if user has focused + left input invalid */

/* Invalid only when JS adds class */
input.error-highlight,
select.error-highlight,
textarea.error-highlight,
.flatpickr-input.error-highlight {
  border-color: #d00000; /* red/orange */
  background-color: rgba(253, 236, 234, 0.2);
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.form-container input:invalid,
.form-container select:invalid,
.form-container textarea:invalid {
  border-color: #d00000;
  background-color: rgba(253, 236, 234, 0.2);
}

/* Labels */
label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #333;
}

/* =============== FORM GROUPS =============== */

.form-group {
  position: relative; /* anchor labels to their own input */
  margin-bottom: 20px; /* spacing between fields */
}

/* -----------------------------------
   Floating labels
   ----------------------------------- */
.form-group label {
  position: static;
  left: 12px;
  top: 12px;
  font-size: 14px;
  color: #6b7280;
  pointer-events: none;
  transition: all 0.2s ease;
  background: #fff; /* ensures readability */
  padding: 0 4px;
}

/* Optional: stronger red for invalid label */
.form-group input:invalid:focus + label,
.form-group select:invalid:focus + label,
.form-group textarea:invalid:focus + label {
  color: #ffaaaa;
}

/* ===================== FORM PAGES ===================== */
.form-page {
  display: none; /* hidden by default */
  width: 100%;
  min-height: auto; /* only as tall as content */
  padding: 20px;
  box-sizing: border-box;
}

/* keep welcome hidden by default */
.welcome-card {
  display: none;
}

/* show welcome only when the containing page has .active */
.form-page.active .welcome-card {
  display: block;
}

/* hide permanently after the user completed the personal form */
#personalPage.no-welcome .welcome-card {
  display: none !important;
}

/* ===================== VALID & INVALID STATES ===================== */
.form-group select:valid,
.form-group textarea:valid {
  border-color: #2d6a4f;
  background-color: rgba(234, 244, 234, 0.2);
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #d00000;
  background-color: rgba(253, 236, 234, 0.2);
}

/* Labels for invalid state */
.form-group input:invalid:focus + label,
.form-group select:invalid:focus + label,
.form-group textarea:invalid:focus + label {
  color: #ffaaaa;
}

/* Ensures the red asterisk stays visible */
.required {
  color: red;
  font-weight: bold;
  margin-left: 2px; /* Adds spacing from the label text */
}

/* Prevents overriding from input styles */
label span.required {
  display: inline;
}

/* ===================== FORM ROWS FOR DESKTOP ===================== */
/* Default: two columns side by side */

.form-row .form-group {
  flex: 1; /* each takes half */
}

/* Small screens: stack vertically */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/* Buttons inside full-width form-group */
.form-row .form-group.full-width button {
  display: block; /* block for margin auto */
  margin: 20px auto 0; /* top spacing + horizontal centering */
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%; /* match form-group width */
  max-width: 300px; /* optional: limit size on desktop */
}

/* ===================== BUTTONS ===================== */
.form-container button {
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.form-container button:hover {
  background-color: #0056b3;
}

.form-container button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ===================== BUTTONS ===================== */
button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#confirm-button {
  background-color: #007bff;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  border: 2px solid red !important;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

#confirm-button:hover {
  background-color: #0056b3;
}

#confirm-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ===================== GDPR MODAL ===================== */
#gdprModal {
  position: fixed; /* fixed to viewport */
  top: auto;
  left: 50%; /* center horizontally */
  transform: translate(-50%, -50%); /* true center */
  width: 90%;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 1500;
  margin-top: 40px; /* pushes it down a bit */
}

#gdprModal.show {
  display: block; /* JS adds 'show' class */
}

/* =============== GDPR MODAL STYLING =============== */

/* Title styling */
#gdprModal h3 {
  font-size: 26px; /* Title size */
  font-weight: bold; /* Make the title stand out */
  color: #2c3e50; /* Dark blue for the title */
  text-transform: uppercase; /* Optional: Uppercase for style */
  letter-spacing: 1px; /* Slight spacing for elegance */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
  margin-bottom: 20px; /* Space below the title */
  text-align: center; /* Horizontally centers the title */
}

#gdprModal p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

#gdprModal h3::after {
  content: "";
  display: block;
  width: 50%;
  height: 2px;
  background-color: #3498db;
  margin: 10px auto 0;
}

#gdprModal .buttons-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

#agreeButton,
#disagreeButton {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#agreeButton {
  background-color: #007bff;
  color: #fff;
}
#disagreeButton {
  background-color: #e74c3c;
  color: #fff;
}

#agreeButton:hover {
  background-color: #0056b3;
}
#disagreeButton:hover {
  background-color: #c0392b;
}

/* ===================== LANGUAGE DROPDOWN ===================== */
.custom-language-dropdown {
  position: relative;
  display: inline-block; /* dropdown positioned relative to button */
  z-index: 2000; /* keep on top */
}

#languageDropdownButton {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #007bff;
  color: white;
  justify-content: space-between;
  user-select: none; /* prevent text highlight */
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  max-height: 200px; /* 👈 fixed height */
  overflow-y: auto; /* 👈 adds internal scroll */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 2100; /* above everything */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 4px 0 0 0;
  list-style: none;
}

.language-dropdown.show {
  display: block;
}

.language-dropdown li {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

.language-dropdown li:hover {
  background-color: #e6f7ff;
}

.language-dropdown img {
  width: 24px;
  height: auto;
  margin-right: 8px;
}

/* ===================== CUSTOM ALERT MODAL ===================== */
#customAlert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  max-width: 400px;
  width: 80%;
  text-align: center;
}

#customAlert.show {
  display: block;
}

.custom-alert-content {
  background: #fff;
  padding: 20px;
  border: 2px solid red;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

@keyframes flashRed {
  0%,
  50%,
  100% {
    background-color: #ff0000;
    color: #fff;
  }
  25%,
  75% {
    background-color: #fff;
    color: #ff0000;
  }
}

#customAlert.flash-red {
  animation: flashRed 1s infinite;
  border: 3px solid red;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 480px) {
  .form-container {
    grid-template-columns: 1fr; /* single column on small screens */
  }

  .form-group {
    align-items: flex-start; /* labels stay left-aligned */
  }
}

/* Translated title pinned at top */
#mainTitle.translated #mainTitle.pin-top {
  display: inline-block;
  position: relative;
  margin: 5px auto;
  text-align: center;
  width: auto;
  max-width: 95%;
  font-size: 32px; /* slightly smaller than main */
  font-weight: 700; /* a bit lighter */
  line-height: 1.2;
  z-index: 1000;
  padding: 0;
  overflow: visible;
  white-space: normal;

  /* Preserve gradient text */
  background: linear-gradient(90deg, #2c97df, #26d07c, #f5b342);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 12s ease infinite;

  /* Optional subtle shadow for readability */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);

  /* Smooth hover/transition effects */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#mainTitle.translated:hover {
  transform: scale(1.05);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Red border highlight for invalid fields */
.error-highlight {
  border: 1.5px solid #b00020 !important;
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.06);
  background-color: #fff6f6;
}

/* Inline error text under inputs/selects */
.field-error {
  display: none;
  color: #e74c3c;
  font-size: 0.85em;
  margin-top: 4px;
}

#mainTitle.pin-top {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: transparent;
  padding: 0;
}

/* make placeholder text red for inputs that have error */
input.error-highlight::placeholder,
textarea.error-highlight::placeholder {
  color: #b00020;
  opacity: 1; /* ensures visibility in most browsers */
}

/* select text color when highlighting (note: browser differences) */
select.error-highlight {
  color: #b00020;
  background-color: #ffe6e6; /* light red/pink background for select */
}

/* =============== UTILITY CLASSES =============== */

.blur {
  filter: blur(4px);
  pointer-events: none; /* Prevent interaction */
}

.hidden {
  display: none;
}

/* =============== GENERAL TEXT STYLING =============== */

/* General Styling for Form Labels */
.form-label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* ====== FOCUS STATE (When Clicked) ====== */

/* Reset background for initial state (dropdowns with placeholders) */
select:not(:focus):not(:valid),
input:not(:focus):not(:valid) {
  background-color: #ffffff; /* Neutral white background */
  border-color: #ccc; /* Default border color */
}

/* Consistent header style for form pages */
.page-header {
  text-align: center;
  margin-bottom: 1rem;
}

.page-header h2 {
  font-size: 1.6rem; /* large but not overwhelming */
  font-weight: bold;
  color: #333; /* neutral, adjust if brand color */
  margin: 0;
}

@media (max-width: 600px) {
  .page-header h2 {
    font-size: 1.4rem;
  }
}

#personalFormHeading {
  text-align: center;
  margin: 20px 0;
  width: 100%;
}

/* Booking Info */

/* Mediterranean-inspired Gradient Divider */
.section-divider {
  border: none;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(210, 180, 140, 0.6),
    rgba(0, 119, 182, 0.6),
    rgba(255, 215, 0, 0.6)
  );
  margin: 20px auto; /* Centering */
  width: 100%;
  position: relative;
  max-width: 600px;
  display: block;
  border-radius: 2px;
}

.input-error {
  border: 2px solid red;
  animation: shake 0.3s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* 🎟️ Booking Info Wrapper - Elegant Styling */
.booking-info-wrapper {
  display: block;
  background: linear-gradient(to bottom, #f5f5f5, #e6e6e6);
  padding: 30px;
  border: 2px dashed rgba(0, 119, 182, 0.5); /* Dashed gray border to indicate confirmation */
  border-radius: 12px;
  width: 100%; /* Same width for consistency */
  max-width: 950px; /* Slightly narrower than the previous section */
  margin: 20px auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Softer shadow for a less prominent section */
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

#booking-info-section .booking-header {
  font-family: "Cormorant Garamond", serif; /* Elegant Mediterranean Font */
  font-size: 2rem;
  color: #0077b6; /* Deep Ocean Blue */
  background: linear-gradient(
    to right,
    #f28500,
    #d77a61
  ); /* Warm Sunset-Terracotta */
  text-align: center;
  font-weight: bold;
  margin: 0 auto 20px;
  line-height: 1.4;
  padding: 20px 40px;
  border-radius: 12px;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.2);
  width: fit-content;
  display: flex;
  align-items: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  gap: 15px; /* Space between text and lines */
  position: relative;
}

/* 🌿 Textured Accent for Depth */
#booking-info-section .booking-header::before {
  content: "";
  flex-grow: 1;
  position: absolute;
  height: 2px;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: rgba(255, 255, 255, 0.2); /* Soft highlight effect */
  border-radius: 12px;
  z-index: -1;
}

/* ✨ Handwritten Accent for Extra Elegance */
#booking-info-section .booking-header span {
  font-family: "Dancing Script", cursive; /* Elegant handwritten accent */
  font-size: 1.4rem;
  display: block;
  color: #7a6650; /* Warm taupe */
  margin-top: 5px;
  font-weight: 500;
}

/* 🎨 Hover Effects - Rich & Classy */
#booking-info-section .booking-header:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.15);
}

/* 🌟 Optional: Add an Understated Glow Effect */
#booking-info-section .booking-header:hover::before {
  background: rgba(255, 255, 255, 0.3);
}

/* 🌊 Wave-Like Step Indicator */
#booking-info-section .step-indicator {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #0077b6,
    #00a8e8
  ); /* Deep to Bright Blue */
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0px 4px 10px rgba(0, 119, 182, 0.3);
}

/* 🌊 Subtle Wave Hover Effect */
#booking-info-section .step-indicator:hover {
  background: linear-gradient(135deg, #005b8e, #0096c7);
  transform: scale(1.05);
  box-shadow: 0px 6px 15px rgba(0, 119, 182, 0.5);
}

/* 🎬 Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🏡 Confirmation Wrapper - Centered and Elegant */
.confirmation-info-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

/* 🏛️ Guest Registration Description - Mediterranean Aesthetic */
.section-description.step-description {
  font-family: "Cormorant Garamond", serif; /* Elegant, classic font */
  font-size: 1.2rem;
  color: #4a4a4a; /* Soft, warm charcoal */
  background: rgba(255, 255, 255, 0.6); /* Subtle translucent effect */
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 🎨 Light Hover Glow */
.section-description.step-description:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
}

/* 🎬 Fade-In Animation */
.section-description.step-description {
  animation: fadeIn 0.8s ease-in-out;
}

/* =========================

/* 🏡 Booking Source & Listing - Flexbox Layout */
.booking-source-row {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  margin-top: 20px;
}

/* 📱 Responsive Adjustment for Mobile */
@media (max-width: 768px) {
  .booking-source-row {
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Center content on smaller screens */
  }
}

/* =============== BOOKING INFO DATES =============== */

/* Keep spacing consistent between fields */
.booking-dropdown-field,
.booking-number-field,
.date-container {
  margin-bottom: 20px; /* Matches the spacing */
}

/* 📌 General Wrapper for Dropdowns */
.booking-dropdown-field {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 🏷️ Label Styling */
.booking-dropdown-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* 🔽 Dropdown Styling */
.booking-dropdown-input {
  width: 100%;
  padding: 12px 40px 12px 10px; /* Extra padding on the right for the arrow */
  border: 1px solid #ccc; /* Neutral default */
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  appearance: none; /* Removes default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  transition: border 0.3s, box-shadow 0.3s;
}

/* 🎯 Custom Dropdown Arrow */
.booking-dropdown-field::after {
  content: "▼"; /* Unicode for a down arrow */
  font-size: 12px;
  color: gray;
  position: absolute;
  right: 15px;
  top: 70%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 🎨 Hover & Focus Effect */
.booking-dropdown-input:hover,
.booking-dropdown-input:focus {
  border-color: #0077b6;
  outline: none;
  box-shadow: 0px 4px 10px rgba(0, 119, 182, 0.3);
}

/* 📅 Date Container */
.date-container {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  margin-top: 20px;
}

/* 📅 Date Field */
.date-field {
  flex: 1;
}

/* 📅 Label */
.date-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* 📅 Input Field */
.date-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc; /* Neutral default */
  border-radius: 5px;
  box-sizing: border-box;
  transition: border 0.3s, box-shadow 0.3s;
}

/* 🎯 Apply Red Border for Empty Fields */
.date-input:invalid,
.booking-dropdown-input:invalid {
  border-color: red;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* ✅ Green Border When a Value is Selected */
.date-input:valid,
.booking-dropdown-input:valid {
  border-color: green;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* ===== SHARED BUTTON STYLES ===== */
button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* ===== CONFIRMATION BUTTON ===== */
#confirm-button {
  border: 2px solid red !important;
  z-index: 1001;
  position: relative;
  background-color: #007bff;
  font-size: 16px;
}
#confirm-button:hover {
  background-color: #0056b3;
}
#confirm-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ===== GDPR BUTTONS ===== */
#gdprModal button {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#agreeButton {
  background-color: #007bff;
}
#agreeButton:hover {
  background-color: #0056b3;
}

#disagreeButton {
  background-color: #e74c3c;
}
#disagreeButton:hover {
  background-color: #c0392b;
}

#gdprModal .buttons-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* ===== ALERT BUTTONS ===== */
.custom-alert button,
.custom-alert-close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #0073e6;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.custom-alert-close-btn:hover {
  background-color: #0056b3;
}

/* ===== ALERT MODAL ===== */
.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  max-width: 400px;
  width: 80%;
  text-align: center;
}

.custom-alert.show {
  display: block;
}
.custom-alert.hidden {
  display: none;
}

#underagepopup button {
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  border: none;
}

button:not(:disabled) {
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

#edit-form-btn {
  background: #ffcc00;
  color: #000;
}

#confirm-form-btn {
  background: #28a745;
  color: white;
}

/* Page wrapper padding */
#pageWrapper {
  padding: 0 15px; /* small padding on mobile */
  box-sizing: border-box;
}

/* Larger padding on tablets/desktops */
@media (min-width: 768px) {
  #pageWrapper {
    padding: 0 40px; /* more space on larger screens */
  }
}

/* =============== MODALS =============== */

/* Policy Text Styling */
#policy-text,
#policy-text-details {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

#policy-text-details a {
  color: #007bff;
  text-decoration: none;
}

#policy-text-details a:hover {
  text-decoration: underline;
}

/* Group Modal */
.group-modal {
  border: 1px solid #007bff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  min-width: 300px;
  overflow: hidden;
}

.group-modal-content {
  border: 2px solid blue;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  position: relative;
}

.custom-alert-message {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

/* =============== ANIMATIONS =============== */

/* Title Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Pulsing Effects: Used for primary and secondary elements */
@keyframes pulsePrimary {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.7);
  }
  70% {
    box-shadow: 0 0 10px 10px rgba(26, 188, 156, 0);
  }
}
@keyframes pulseSecondary {
  0%,
  100% {
    box-shadow: 0 0 0px rgba(255, 223, 186, 0.6);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 223, 186, 0.8);
  }
}

/* Bounce Effect: Creates a bouncing animation for icons */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Flashing Border: Highlights elements like modals */
@keyframes flashBorder {
  0% {
    border-color: red;
  }
  50% {
    border-color: transparent;
  }
  100% {
    border-color: red;
  }
}

.flash {
  animation: flashBorder 1s infinite;
}

/* Flashing Text and Background: Attention-grabbing for alerts */
@keyframes flashText {
  0%,
  100% {
    color: #333;
  }
  50% {
    color: #ff0000;
  }
}
@keyframes flashBackground {
  0%,
  100% {
    background-color: #d9534f;
  }
  50% {
    background-color: #f0ad4e;
  }
}

/* =============== MODAL STYLING =============== */

/* General modal wrapper styling */
.group-modal {
  border: 1px solid #007bff; /* Blue border */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  max-width: 400px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hidden modal state */
.group-modal[aria-hidden="true"] {
  display: none;
  visibility: hidden;
  opacity: 0;
}

/* Modal content wrapper */
.group-modal-content {
  border: 2px solid blue; /* Debug border */
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 20px;
  max-width: none; /* Prevent overflow */
  width: 100%;
  box-sizing: border-box; /* Include padding in size */
  position: relative; /* Ensure proper alignment */
}

/* =============== GUEST INFORMATION STYLING =============== */

/* Wrapper for guest info */
.guest-info-wrapper {
  background: url("sand-texture.jpg"),
    linear-gradient(to bottom, #ffffff, #fffaf0);
  background-size: cover;
  padding: 30px;
  border: 2px solid #ff4500; /* ✅ stays orange only around the wrapper */
  border-radius: 15px;
  width: 92%;
  max-width: 800px;
  margin: 20px auto;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

/* Section Title (Guest Information) */
.guest-info-wrapper h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ff4500;
  border-bottom: 2px solid #ff4500;
  padding-bottom: 5px;
  display: inline-block;
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

/* =============== INPUTS AND PLACEHOLDERS =============== */

/* Style for required labels (adds red asterisk) */
.required-label::after {
  content: " *";
  color: red;
}

/* Remove the asterisk when the input has a valid value */
select:valid + .required-label::after {
  content: "";
}

/* -----------------------------------
   Inputs (default state)
   ----------------------------------- */

/* Placeholder Text Styling */
input::placeholder,
select option:first-child {
  font-style: normal; /* Elegant placeholder styling */
  color: #808000; /* Muted Olive placeholder text */
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
  input:placeholder-shown,
  select:placeholder-shown {
    font-size: 14px; /* Smaller font for compact view */
    border-width: 2px; /* Thicker borders for better visibility */
  }
}

/* Date Input Placeholder Styling */
input[type="date"]:placeholder-shown {
  color: #666; /* Cool Gray placeholder text */
  border: 1px solid #0077be; /* Azure Blue border */
}

/* ====== FILLED STATE (When Data Entered) ====== */
.guest-info input:not(:placeholder-shown):valid,
.guest-info select:not(:placeholder-shown):valid {
  border-color: #2d6a4f; /* Green border for valid entries */
  background-color: #eaf4ea; /* Light green background */
  color: #333; /* Darker text for contrast */
}

/* Reset background for initial dropdown state */
.guest-info select:not(:focus):not(:valid) {
  background-color: #ffffff; /* Neutral background before selection */
}

/* Specific Styling for Option Elements */
.guest-info-input option {
  background-color: #f5f5f5; /* Light grey background for options */
  color: #333; /* Neutral text */
}
.guest-info-input option:checked {
  background-color: #ffefd5; /* Pale golden background */
  color: #ff4500; /* Bright orange text */
}

/* Ensure form elements are styled consistently */
.guest-info-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Larger Tap Targets for Mobile */
.guest-info-input,
button {
  min-height: 44px; /* Ensures touch-friendly buttons & inputs */
}

/* =============== HOVER AND FOCUS EFFECTS =============== */

/* Hover Effect for all inputs */
.guest-info input:hover,
.guest-info select:hover {
  border-color: #ff4500;
  box-shadow: 0px 0px 6px rgba(255, 69, 0, 0.3);
}

/* =============== ROW LAYOUT AND TITLES =============== */

/* Styling for Rows with Two Fields per Row */
.guest-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 15px 0;
}

/* Flexbox Layout for Input Fields */
.guest-info {
  display: flex;
  justify-content: space-between; /* Distribute space evenly */
  gap: 20px; /* Space between fields */
  flex-wrap: nowrap; /* Prevent wrapping */
  margin-top: 20px; /* Space above group */
}

/* ===================== BUTTONS ===================== */
/* Button container for two buttons side by side */
.form-row.buttons {
  display: flex;
  justify-content: space-between; /* Spread buttons */
  gap: 15px; /* space between buttons */
  width: 100%;
  max-width: 400px; /* optional desktop limit */
  margin: 20px auto 0; /* vertical spacing and center */
}

/* Primary Next button */
.form-row.buttons button.full-width-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  background-color: #2563eb !important; /* force override */
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  text-align: center;
}

.form-row.buttons button.full-width-btn:hover {
  background-color: #0056b3 !important;
}

/* Secondary Back button */
.form-row.buttons button.secondary-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
}

.form-row.buttons button.secondary-btn:hover {
  background-color: #e5e5e5;
}

/* Mobile: stack buttons */
@media (max-width: 767px) {
  .form-row.buttons {
    flex-direction: column;
  }
  .form-row.buttons button {
    width: 100%;
  }
}

/* =============== MODAL STYLING =============== */

.highlight-dropdown {
  border: 2px solid red !important;
  box-shadow: 0 0 10px red;
  transition: box-shadow 0.5s ease-in-out;
}

/* Popup Modal Styling for Underage Notice */
#underagepopup {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed on screen */
  z-index: 1000; /* Above all other elements */
  left: 0;
  top: 0;
  width: 100%; /* Full screen width */
  height: 100%; /* Full screen height */
  background-color: rgba(0, 0, 0, 0.5); /* Transparent black overlay */
  justify-content: center;
  align-items: center; /* Centre content vertically/horizontally */
}

#underagepopup .underagepopup-content {
  background-color: #fff; /* White background */
  border-radius: 8px; /* Rounded corners */
  padding: 20px; /* Internal padding */
  max-width: 400px; /* Limit width */
  width: 90%; /* Responsive width */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: center; /* Centre-align text */
}

/* Alert Styling */
.underage-alert {
  visibility: hidden;
  position: fixed;
  min-width: 300px; /* Ensures the alert has a width */
  min-height: 100px; /* Ensures the alert has a height */
  padding: 20px; /* Makes content readable */
  background: red; /* Makes it stand out */
  border: 5px solid yellow;
  color: white;
  text-align: center;
  font-size: 16px;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  animation: fadeIn 0.4s ease-in-out forwards;
  opacity: 0; /* Starts invisible */
  transition: opacity 0.4s ease-in-out, visibility 0.4s;
}

/* When active, ensure it appears */
#underage-alert.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Show alert with animation */
.underage-alert.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hide alert smoothly */
.underage-alert.hide {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* OK Button Styling */
.underage-alert button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.underage-alert button:hover {
  background: #0056b3;
}

/* Close Button for Modal */
#underagepopup .close {
  position: absolute; /* Positioned at top-right */
  top: 10px;
  right: 20px;
  font-size: 24px; /* Larger size */
  font-weight: bold; /* Bold text */
  color: #333; /* Neutral colour */
  cursor: pointer; /* Clickable */
}

/* Modal Content Styling */
#underagepopup h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

#underagepopup select,
#underagepopup button {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#underagepopup button:hover {
  background-color: #0056b3;
}

/* =============== RESPONSIVE DESIGN =============== */

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
  input:placeholder-shown,
  select:placeholder-shown {
    font-size: 14px; /* Smaller font for compact view */
    border-width: 2px; /* Thicker borders for better visibility */
  }
}

/* =============== SCROLLABLE OPTIONS =============== */

/* Styling for Select Dropdown with Many Options */
.scrollable-options {
  max-height: 200px; /* Limit height */
  overflow-y: auto; /* Enable vertical scrolling */
  border: 1px solid #ccc; /* Neutral border */
  border-radius: 4px; /* Rounded corners */
  padding: 10px; /* Internal padding */
  display: flex;
  flex-wrap: wrap; /* Wrap long lists */
  gap: 10px; /* Spacing between options */
}

/* Default neutral borders for all guest info inputs & selects */
.guest-info-row .form-group input,
.guest-info-row .form-group select,
.guest-info-row .form-group textarea {
  border: 1px solid #ccc; /* neutral default */
  border-radius: 8px;
  background-color: #fff; /* clean background */
  color: #333;
  padding: 8px 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Placeholder style (subtle gray, italic) */
.guest-info-row .form-group select option:first-child {
  color: #999;
  font-style: normal;
}

.form-section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 2px solid #ff4500;
  padding-bottom: 5px;
}

.form-section {
  margin-bottom: 20px;
  padding: 10px 0;
}

.booking-container {
  justify-content: center;
  width: 100%;
}

.group-popup {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.group-popup[aria-hidden="false"],
.group-size-confirmation-popup[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* Wrapper for the Information Note */
.information-note-wrapper {
  text-align: center; /* Center-align the information note */
  margin-top: 20px; /* Add spacing above the note */
  width: 90%; /* Match the parent wrapper's width */
  max-width: 750px; /* Same maximum width as the wrapper */
  margin-left: auto; /* Centre within the parent */
  margin-right: auto;
}

/* Styling for the Information Note Text */
.information-note-text {
  color: #555; /* Subtle grey for the text */
  font-size: 14px; /* Small font for the note */
  font-style: italic; /* Italicised for emphasis */
  margin: 0; /* Remove default margins */
}

/* Input Fields in the Form */
.form-row input[type="text"],
.form-row select {
  width: 100%; /* Full width for input fields */
  padding: 10px;
  font-size: 16px; /* Slightly larger text for readability */
  color: #444444; /* Neutral text color */
  border: 1px solid #ccc; /* Subtle border */
  border-radius: 8px; /* Rounded corners for consistency */
  box-sizing: border-box;
  background-color: #ffffff; /* White background */
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder Styling */
.form-row input[type="text"]::placeholder {
  color: #666666; /* Neutral placeholder color */
  font-style: normal;
}

/* Hover Effect for Inputs */
.form-row input[type="text"]:hover {
  border-color: #ff4500; /* Highlight border on hover */
  box-shadow: 0 0 6px rgba(255, 69, 0, 0.2);
}

/* Focus Effect for Inputs */
.form-row input[type="text"]:focus {
  border-color: #005f99; /* Highlight border on focus */
  box-shadow: 0 0 4px rgba(0, 95, 153, 0.3);
  background-color: #f9f9f9;
}

/* =============== Government ID =============== */

/* Flexbox Layout for Confirmation Section */
.confirmation-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap; /* Wrap inputs for smaller screens */
  margin-top: 15px;
}

/* Specific Styling for Rows */
.confirmation-info-row {
  display: flex;
  flex-wrap: wrap; /* Ensure wrapping for child elements */
  gap: 15px;
  margin-bottom: 20px;
  width: 100%; /* Ensure row spans full width */
}

/* Override Flexbox for Full-Width Child Elements */
.confirmation-info-row > .form-group {
  flex: 1 1 100%; /* Ensure full-width for child elements */
}

/* Ensure full-width layout for Booking Number container */
.form-group.full-width {
  display: block; /* Ensure it starts on its own line */
  width: 100%; /* Occupy the full width of the parent */
  margin-bottom: 8px; /* Add space below */
  box-sizing: border-box;
}

/* Full-width styling for Booking Number input */
.booking-number-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #444444;
  border: 2px dotted #005f99; /* Dotted border */
  border-radius: 5px; /* Rounded corners */
  box-sizing: border-box;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Add hover and focus styles for better UX */
.booking-number-input:hover {
  border-color: #ff4500; /* Highlight border on hover */
  box-shadow: 0 0 6px rgba(255, 69, 0, 0.2);
}

/* Center and Style Section Title Wrapper */
/* Center and Style Section Title Wrapper */
.section-title-wrapper {
  display: flex;
  align-items: center; /* Align text and lines vertically */
  justify-content: center; /* Center the entire content */
  gap: 20px; /* Space between text and the lines */
  max-width: 800px; /* Set a max-width to restrict the wrapper size */
  margin: 0 auto; /* Center the wrapper horizontally */
  width: 100%; /* Allow the wrapper to expand to full width, but within max-width */
}

/* Center and Style Section Title */
.section-title {
  font-family: "Arial", sans-serif;
  font-size: 2rem; /* Larger font size */
  font-weight: bold;
  color: #005f99; /* Primary colour */
  text-transform: uppercase;
  text-align: center;
  margin: 0; /* Remove default margins */
  white-space: nowrap; /* Prevent wrapping */
}

/* Decorative Lines (before and after the title) */
.section-title-wrapper::before,
.section-title-wrapper::after {
  content: "";
  flex-grow: 1; /* Make the lines flexible to adjust width automatically */
  height: 4px; /* Line thickness */
  background: linear-gradient(90deg, #ff7e5f, #feb47b); /* Gradient colour */
  border-radius: 2px; /* Rounded edges for the lines */
  max-width: 150px; /* Limit the width of the lines */
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem; /* Smaller font size for mobile */
  }

  .section-title-wrapper::before,
  .section-title-wrapper::after {
    width: 30px; /* Shorter lines on smaller screens */
  }
}

/* Wrapper for the Registration Section */
.registration-info-wrapper {
  background: linear-gradient(
    to bottom,
    #ffffff,
    #f8f9fa
  ); /* Clean and professional gradient */
  padding: 30px;
  border: 2px solid #007bff; /* Solid blue border for trust and importance */
  border-radius: 15px;
  width: 88%; /* Slightly narrower for a focused section */
  max-width: 700px; /* Proportionate to previous sections */
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Balanced shadow for formality */
  text-align: left; /* Left-align for readability */
  box-sizing: border-box;
  font-family: "Arial", sans-serif; /* Professional font */
}

/* Title Styling for Registration Section */
.registration-info-wrapper h2 {
  display: none;
  font-size: 1.8rem;
  color: #333333; /* Neutral dark gray for readability */
  margin-bottom: 20px;
  text-align: center; /* Center-align the title */
  background: linear-gradient(
    to right,
    #ffedd5,
    #fff
  ); /* Soft peach-to-white gradient */
  padding: 10px 15px;
  border-radius: 8px;
}

/* Decorative Underline for the Title */
.registration-info-wrapper h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #007bff; /* Matches the border */
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.contact-info-row {
  display: flex;
  gap: 20px; /* Space between email and phone inputs */
  margin-bottom: 16px; /* Space below the row */
}

.contact-info-row .form-group {
  flex: 1; /* Each input takes up equal width */
}

.contact-info-row input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.habitual-address {
  background-color: #f9f9f9;
  padding: 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin: 20px 0;
}

.habitual-address .address-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.habitual-address .form-group {
  flex: 1;
}

.habitual-address input,
.habitual-address select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
/*  ==========*/

.group-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 90%; /* Adjust to your desired size */
  max-width: 500px;
  padding: 20px;
  overflow: hidden;
}

.group-popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.close:hover {
  color: red;
}

#group-popup-title {
  font-size: 28px; /* Larger font size for prominence */
  font-family: "Playfair Display", serif; /* Elegant serif font */
  font-weight: 700; /* Bold text */
  text-align: center; /* Center align the title */
  color: #2a3d45; /* Deep, calming Mediterranean blue */
  text-transform: capitalize; /* Classy capitalization */
  letter-spacing: 1px; /* Slight letter spacing for elegance */
  margin-bottom: 20px; /* Space below the title */
  position: relative;
  background: linear-gradient(
    to right,
    #f4c27a,
    #f49b42
  ); /* Subtle sun-kissed gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#group-popup-title::after {
  content: ""; /* Decorative wave-like underline */
  display: block;
  width: 60%; /* Adjust the underline width */
  height: 3px; /* Line thickness */
  background: linear-gradient(
    to right,
    #2a3d45,
    #f49b42
  ); /* Gradient matching the title */
  border-radius: 10px; /* Smooth, wave-like effect */
  margin: 10px auto 0; /* Center the underline */
}

/* Style for the radio button group */
.scrollable-options {
  margin-bottom: 15px; /* Add spacing between radio buttons and note */
}

.groupSizeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
  z-index: 999; /* Behind the popup but above everything else */
  display: none; /* Hidden by default */
}

/* Fade-out effect */
.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* Style for the note below the buttons */
.group-popup-content p#group-size-popup-note {
  font-size: 14px;
  font-weight: 400;
  margin-top: 10px; /* Ensure spacing from the buttons */
  color: #555; /* Subtle text color */
  text-align: left; /* Align text with the rest of the content */
}

/* Apply blur and fade effect */
.blur-effect {
  filter: blur(5px);
  transition: filter 0.4s ease-in-out, opacity 0.4s ease-in-out;
  opacity: 0.6;
}

/* Confirmation popup fade-in effect */
#group-size-confirmation-popup {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* Show confirmation popup */
#group-size-confirmation-popup.show {
  opacity: 1;
  visibility: visible;
}

/* Fade-out effect */
.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* Confirmation message */
#group-size-confirmation-message {
  font-size: 20px;
  color: #008080; /* Teal water tone */
  margin-bottom: 15px;
  display: block;
}

/* Buttons */
button {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

/* General Group Size Confirmation Popup */
.group-size-confirmation-popup {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  height: auto;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

/* Inner Content Styling */
.group-size-confirmation-popup-content {
  text-align: center;
  width: 100%;
  max-width: 380px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.4s ease-in-out;
}

/* Text Styles */
.group-size-confirmation-popup-content p {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Button Styles */
.group-size-confirmation-popup-content button {
  width: 100%;
  max-width: 180px;
  background: linear-gradient(135deg, #ff7eb3, #ff3d73);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  outline: none;
  box-shadow: 0 4px 10px rgba(255, 61, 115, 0.3);
}

.group-size-confirmation-popup-content button:hover {
  background: linear-gradient(135deg, #ff3d73, #ff1744);
  box-shadow: 0 6px 14px rgba(255, 61, 115, 0.4);
  transform: translateY(-2px);
}

/* Fade-in animation */
.confirmation-popup {
  animation: fadeIn 0.5s ease-in-out;
}

/* Buttons */
#group-size-confirm-ok {
  background: #00a9a5; /* Mediterranean turquoise */
  color: white;
}

#group-size-confirm-ok:hover {
  background: #008b8b;
}

#group-size-edit-button {
  background: #e76f51; /* Terracotta orange */
  color: white;
}

#group-size-edit-button:hover {
  background: #d35d42;
}

.important-info {
  display: inline-block; /* Ensures the span takes up the required space */
  position: relative;
  color: #333; /* Adjust to a neutral or fitting color for your design */
}

.important-info::after {
  content: ""; /* No text, just a visual effect */
  position: absolute;
  bottom: -2px; /* Adjusts the position of the line */
  left: 0;
  width: 100%; /* Takes up the full width of the span */
  border-bottom: 2px solid #ff5733; /* The thin decorative line */
}

/* General styling for input fields */
.input-field {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc; /* Default border */
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  background-color: #f0f8ff; /* Light blue background before being filled */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Apply red border to the select element if the placeholder is selected */
.input-field:required:invalid {
  border-color: red;
}

/* Full-width styling for Street Address */
.full-width {
  width: 100%; /* Take up the full width of the container */
  margin-bottom: 1rem; /* Add spacing between rows */
}

/* Address Row styling */
.address-row {
  display: flex;
  gap: 1rem; /* Space between City and State/Province */
  justify-content: space-between;
  width: 100%; /* Ensure it aligns with the Street Address */
}

/* Half-width inputs for City and State/Province */
.half-width {
  flex: 1; /* Each takes up half the row */
}

/* Styling for input focus */
.input-field:focus {
  outline: none;
  border-color: #007bff; /* Blue border on focus */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Subtle blue glow */
}

/* Placeholder text styling */
.input-field::placeholder {
  color: #6c757d; /* Subtle grey */
  font-style: normal;
}

/* Centering the button and helper text */
#review-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Styling the helper text */
.helper-text {
  font-style: italic;
  font-size: 14px;
  color: #ff4500; /* Orange-red text colour */
  margin-top: 10px;
}

.review-scroll-wrapper {
  flex: 1; /* Take up available space */
  padding: 20px;
  overflow-y: auto; /* Enable vertical scrolling */
}

/* Prevent Modal Printing */
.review .specific-element {
  display: block !important;
}

/* Review Notice Styling */
.review-notice {
  font-size: 1rem;
  font-style: italic;
  color: #ff0000; /* Red for emphasis */
  margin-bottom: 15px;
  text-align: centre;
}

/* Scrollable Content Wrapper */
.review-scroll-wrapper {
  max-height: 300px; /* Limit height for scrolling */
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.review-actions {
  display: flex; /* Use flexbox for alignment */
  justify-content: space-between;
  gap: 10px; /* Add spacing between the buttons */
  margin-top: 20px; /* Optional: Space above the button row */
  padding: 10px 20px;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
}

/* Force the validation message onto a new row */
.validation-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 8px; /* Slightly reduced spacing */
}

/* Validation message styling */
#personal-validation-message {
  display: inline-flex; /* More compact while maintaining readability */
  align-items: center;
  justify-content: center;
  width: auto; /* Adjust width dynamically based on content */
  max-width: 90%; /* Prevents overly wide messages */
  margin: 12px auto; /* Centers and prevents excessive spacing */
  font-size: 0.9rem; /* Slightly smaller but still readable */
  text-align: center;
  color: #d8000c; /* Red text for error */
  background: #ffd2d2; /* Light red background */
  border: 1px solid #d8000c; /* Red border */
  padding: 8px 12px; /* More compact padding */
  border-radius: 4px; /* Slightly rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for contrast */
  transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out; /* Smooth animations */
}

/* Hide the message when there are no validation errors */
#personal-validation-message.hidden {
  opacity: 0;
  transform: translateY(-5px); /* Small lift effect when disappearing */
  pointer-events: none;
}

.btn-centered {
  background-color: #007bff; /* Blue button */
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-centered:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.btn-large {
  padding: 15px 25px;
  font-size: 18px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ========================= */
/* MODAL STYLES */
/* ========================= */

.review {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-width: 600px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
}

.review-overlay {
  max-width: none;
  max-height: none;
  overflow: visible !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease-in-out;
  z-index: 900;
  display: none;
  pointer-events: none;
}

/* ========================= */
/* FORM & FIELDSET STYLES */
/* ========================= */

#form-review {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  background: white;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Fieldset Styling */
.review-container fieldset {
  border: none !important; /* ✅ Removes unwanted border */
  padding: 0 !important;
  margin: 0 !important;
}

/* ========================= */
/* TEXT & LEGEND STYLES */
/* ========================= */

.review-title,
.review-content h2 {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 20px 0;
  color: #005f99;
}

.review-content {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  text-align: left;
  position: relative;
}

/* LEGEND (FIELDSET TITLE) */
.review-container fieldset legend {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e6091;
  background: white; /* ✅ Ensures no overlap with other elements */
  padding: 8px 16px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  display: inline-block;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid #1e6091;
  width: max-content;
  position: relative;
  left: 0;
  margin-top: 40px !important; /* ✅ Increases spacing before a new fieldset starts */
  margin-bottom: 12px; /* ✅ Ensures clear separation */
}

/* ========================= */
/* REVIEW FIELD SPACING */
/* ========================= */

.review-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  margin-bottom: 2px !important; /* ✅ Reduces spacing between fields */
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

/* Ensures last field in fieldset has more space before the next fieldset */
.review-field:last-of-type {
  margin-bottom: 24px !important; /* ✅ Increases space before next fieldset */
}

/* LABEL & VALUE STYLES */
.review-label {
  font-weight: bold;
  color: #333;
  flex: 1;
  text-align: left;
}

.review-value {
  display: flex;
  align-items: center;
  gap: 8px; /* ✅ Spaces value and edit icon */
}

/* ========================= */
/* REVIEW SECTION TITLES */
/* ========================= */

.review-section-title {
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #ddd;
  color: #333;
}

/* ========================= */
/* BUTTON STYLES */
/* ========================= */

.review-actions button {
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

.review-actions button:hover {
  background-color: #f0f0f0;
}

.edit-icon {
  flex-shrink: 0; /* ✅ Keeps the edit icon fixed on the right */
  cursor: pointer;
  color: blue;
}

/* Wrapper Styling */
#signature-section-wrapper {
  margin-top: 15px; /* Reduce space above the section */
  padding-top: 10px; /* Reduce padding at the top */
  border-top: 2px solid #ccc;
}

#signature-section {
  display: none;
  margin-top: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed; /* or fixed, depending on your needs */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* Adjust width as needed */
  max-width: 600px; /* Optional: limit the width */
  background: linear-gradient(to bottom, #fef7e0, #f5e3c3);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#privacy-notice {
  margin-bottom: 8px; /* Reduce space after privacy notice */
}

/* Privacy Notice Title */
#privacy-notice strong {
  font-size: 1.2rem;
  color: #2a9df4; /* Professional blue */
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* Privacy Notice Content */
#privacy-notice-content {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* Ensure request-copy-section does not break layout */
#request-copy-section {
  width: 100%; /* Prevents overflow */
  margin-top: 10px;
}

/* Proper alignment of checkbox and text */
#request-copy-section label {
  display: flex;
  align-items: flex-start; /* Aligns checkbox to the top row */
  gap: 8px; /* Keeps space between checkbox and text */
  flex-wrap: wrap; /* Allows text to wrap if necessary */
  max-width: 100%;
  white-space: normal; /* Ensures text wraps properly */
}

/* Ensures the checkbox stays at the top row */
#request-copy-checkbox {
  flex-shrink: 0; /* Prevents checkbox from resizing */
  width: 18px;
  height: 18px;
  accent-color: #2a9df4; /* Custom checkbox color */
  margin: 2px 0 0 0; /* Small top margin for fine-tuning alignment */
}

/* Ensures text wraps properly */
#request-copy-section span {
  display: inline-block;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: calc(100% - 26px); /* Prevents overlap */
}

/* Signature Instruction */
[data-translate="signature.signatureInstruction"] {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2a9df4;
  margin-top: 20px;
}

/* ✅ Ensure the signature section is properly displayed */
#signature-section.visible {
  display: flex !important; /* Use flex to keep alignment */
  visibility: visible;
  opacity: 1;
  position: fixed; /* Prevents scrolling */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#signature-section p {
  margin: 4px 0; /* Reduce space between paragraphs */
}

#signature-canvas {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  background-color: white !important;
  display: block !important;
  width: 100% !important;
  max-width: 500px !important;
  height: 200px !important;
  border: 2px solid black !important;
  background-color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1000 !important;
}

#signature-buttons {
  margin-top: 15px; /* Add space between canvas and buttons */
  display: flex;
  gap: 10px; /* Adjust spacing between buttons */
}

/* Submit and Clear Buttons */
#clear-signature-btn,
#submit-form-btn {
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

#clear-signature-btn {
  background-color: #ff4d4d;
  color: white;
}

#clear-signature-btn:hover {
  background-color: #cc0000;
}

#submit-form-btn {
  background-color: #2a9df4;
  color: white;
  cursor: not-allowed;
}

#submit-form-btn:hover {
  background-color: #217ab7;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  #signature-section {
    width: 90%;
  }
  #signature-canvas {
    width: 100%;
  }
}

.blurred-background {
  filter: blur(5px);
  pointer-events: none; /* Prevent interaction with blurred elements */
}

/* Fullscreen overlay (background dimmed) */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent */
  backdrop-filter: blur(8px); /* Modern browsers */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  z-index: 998;
  display: none; /* Initially hidden */
  pointer-events: none; /* Allow clicks to pass through */
}

/* Blur content when popup opens (fallback for older browsers) */
.content-blur {
  filter: blur(8px);
  transition: filter 0.3s ease-in-out;
}

/* Group Size Popup */
.group-popup,
.confirmation-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center it */
  background: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 10001; /* Above the overlay */
  display: none; /* Initially hidden */
}

#group-size-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  opacity: 0; /* Start as invisible */
  visibility: hidden; /* Not interactable */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Title Styling */
#group-size-popup-title {
  font-size: 20px;
  color: gold;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid gold;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Group Size Popup Description */
.group-popup-content p#group-size-popup-description {
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 400;
  line-height: 1.6; /* Improved spacing */
  text-align: center;
  color: #b37400;
  background: #fff3cd; /* Light gold background */
  padding: 15px;
  border-radius: 8px;
  border: 2px solid gold;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  margin-bottom: 12px;
}

/* Improve visibility of Listing Name & Occupancy */
.group-popup-content p#group-size-popup-description strong {
  color: #d48806; /* Deep gold for better contrast */
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Slight shadow for readability */
  background: rgba(255, 215, 0, 0.2); /* Subtle highlight */
  padding: 2px 6px;
  border-radius: 4px;
}

/* Options Container */
#group-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Centers the buttons horizontally */
  align-items: center; /* Aligns items vertically */
  width: 100%; /* Ensures full width */
  text-align: center;
  margin: 0 auto; /* Centers the container itself */
  padding: 10px;
}

/* Button-style radio options */
.group-size-option {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  margin: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #444;
  background-color: #f8f9fa;
  border: 2px solid #ddd; /* Ensures all borders are present */
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  min-width: 50px;
  text-align: center;
  box-sizing: border-box; /* Prevents border issues */
}

/* Ensures container isn't restricted by parent elements */
.group-popup-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Hover & Selected Effects */
.group-size-option:hover {
  background-color: #ffc107; /* Gold hover effect */
  border-color: #ff9800; /* Orange border */
  color: #fff;
}
.group-size-option.selected {
  background-color: #ff9800; /* Orange when selected */
  border-color: #e65100; /* Darker orange */
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

/* Group Size Note Styling */
#group-size-popup-note {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: #856404; /* Darker gold/brown for readability */
  background: #fff3cd; /* Light gold background */
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #d48806; /* Deep gold border */
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2); /* Subtle glow effect */
  margin-top: 15px; /* Spacing from buttons */
  max-width: 600px; /* Keeps it readable */
  margin-left: auto;
  margin-right: auto; /* Centers it */
}

#group-size-confirm-button {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 15px auto; /* Centers the button */
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #ff9800; /* Bright orange */
  border: 2px solid #e65100; /* Darker orange border */
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#group-size-confirm-button:hover {
  background-color: #e65100; /* Darker orange */
  border-color: #d84315;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
}

#group-size-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
  color: #333;
}

#group-size-error-message {
  color: red;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  background: #ffe5e5; /* Light red background */
  padding: 10px;
  border-radius: 5px;
  border: 2px solid red;
  display: block; /* Initially visible by default */
}

.hidden {
  display: none; /* Hides the error message when the "hidden" class is added */
}

/* Background blur effect */
.bookingInfo-blurred {
  filter: blur(5px); /* Adjust blur intensity */
  pointer-events: none; /* Prevent interactions with background */
}

/* ✅ Unique Final Step Wrapper */
.final-step-wrapper {
  background: rgba(255, 255, 255, 0.85); /* Light transparency */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 🌊 Decorative Wave Effect */
.final-step-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px; /* Increased height for better visibility */
  background: #ffffff; /* Solid white wave */
  clip-path: ellipse(100% 50% at center bottom); /* Creates a wave shape */
  opacity: 0.8; /* Adjust transparency if needed */
}

/* 🌅 Title Styling */
.final-step-main-title {
  font-size: 24px;
  font-weight: bold;
  color: #003366; /* Deep ocean blue */
  text-transform: uppercase;
  text-align: center;
  border-bottom: 3px solid #ff7f50; /* Fun coral underline */
  padding-bottom: 5px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.final-step-sub-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  font-style: italic;
  margin-top: 25px;
  position: relative;
}

.final-step-sub-title::before {
  content: "🏡"; /* Cozy home feel */
  font-size: 22px;
  color: #ff5733; /* Orange-red */
  margin-right: 5px;
}

/* 🏝️ Description Styling */
.final-step-description {
  font-size: 16px;
  color: #34495e;
  margin-bottom: 25px;
}

/* 📑 Form Inputs */
.final-step-form label {
  display: block;
  text-align: left;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #2c3e50;
}

.final-step-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-sub-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  font-style: italic;
  margin-top: 25px;
  position: relative;
}

.contact-sub-title::before {
  content: "☎️"; /* Phone icon for contact */
  font-size: 22px;
  color: #ff5733; /* Orange-red */
  margin-right: 5px;
}

/* 🌊 Review Button */
.review-button {
  background: linear-gradient(90deg, #ff7f50, #ff5733);
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.5s ease-in-out;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}

/* 🏄‍♂️ Button Hover Effect */
.review-button:hover {
  background: linear-gradient(90deg, #ff5733, #ff7f50);
}

@media print {
  .review {
    display: none !important; /* Hide modal during printing */
  }
}

@media print {
  body {
    display: none !important;
  }
}

#print-warning {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffcc00;
  color: #000;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  z-index: 9999;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none;
}

/* Modal Overlay */
.missing-fields-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 85, 164, 0.4); /* Soft Mediterranean blue overlay */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px); /* Adds a subtle blur for elegance */
}

/* Modal Content */
.missing-fields-modal {
  background: #fefae0; /* Warm sandy background */
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 420px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
  border: 1px solid #b08968; /* Subtle brown border */
}

/* Title Styling */
.missing-fields-title {
  font-size: 24px;
  font-weight: bold;
  color: #0055a4; /* Deep Mediterranean blue */
  margin-bottom: 18px;
  text-transform: uppercase;
  text-align: center;
}

/* Description Text */
.missing-fields-description {
  font-size: 16px;
  color: #5a5a5a;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Open State */
.missing-fields-overlay.show {
  display: flex; /* Modal becomes visible */
}

.missing-fields-overlay.show .missing-fields-modal {
  transform: translateY(0);
}

/* List Styling */
.missing-fields-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.missing-fields-list li {
  background: #e3d5ca; /* Warm sand-like tone */
  padding: 10px;
  border-radius: 6px;
  margin: 6px 0;
  font-size: 16px;
  color: #6d4c41; /* Earthy brown */
  line-height: 1.5;
  font-weight: bold;
}

.missing-fields-list li::before {
  content: "•"; /* Simple bullet instead of ⚠️ */
  margin-right: 10px;
  font-size: 20px;
  color: #0055a4; /* Match deep blue from title */
}

/* OK Button */
#close-missing-fields-modal {
  background: #0055a4; /* Ocean blue */
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease-in-out;
}

#close-missing-fields-modal:hover {
  background: #003f7f; /* Darker blue on hover */
}

#edit-popup {
  position: fixed; /* Keeps it centered even when scrolling */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none; /* Initially hidden */
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  width: 320px; /* Increase width slightly */
  max-width: 300px;
  border-radius: 8px;
}

#edit-popup-container {
  margin-bottom: 15px; /* Add space between input and buttons */
}

.edit-popup label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.edit-popup input {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
}

#edit-popup button {
  display: inline-block;
  width: 48%; /* Ensure both buttons fit in one row */
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#house-rules {
  display: none !important;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 0;
}

#house-rules.visible {
  display: block !important;
  opacity: 1;
}

.house-rules-content {
  max-width: 700px;
  padding: 2rem;
  background-color: #fffaf4;
  border-radius: 18px;
  border: 1px solid #e8dcc7;
  max-height: 400px;
  overflow-y: auto;
  font-family: "Georgia", serif;
  color: #3b3a30;
  scroll-behavior: smooth;
  padding-bottom: 100px; /* space for buttons */
}

#processing-message {
  position: fixed;
  inset: 0; /* shorthand for top: 0; left: 0; right: 0; bottom: 0; */
  background-color: #1a1a1a;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.processing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-in-out;
}

.spinner {
  border: 6px solid #444;
  border-top: 6px solid #00ff99;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.message-text {
  font-size: 1.8em;
  font-weight: bold;
  color: #00ff99;
  text-shadow: 0 0 8px #00ff99;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#success-message {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease, border 0.3s ease;
  background-color: #d4edda;
  color: #155724;
  padding: 12px 24px;
  border: 2px solid #28a745;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#success-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: pulse-border 0.8s ease-in-out 2;
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: #28a745;
  }
  50% {
    border-color: #45d86b;
  }
}

#house-rules {
  max-width: 700px;
  margin: 40px auto;
  background-color: #fffaf4;
  border-radius: 18px;
  border: 1px solid #e8dcc7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-family: "Georgia", serif;
  color: #3b3a30;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Scrollable content */
.house-rules-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

/* Scrollbar */
.house-rules-content::-webkit-scrollbar {
  width: 8px;
}

.house-rules-content::-webkit-scrollbar-thumb {
  background-color: #c2b79b;
  border-radius: 10px;
}

.house-rules-content::-webkit-scrollbar-track {
  background: #f5f0e6;
}

/* Title */
/* Headings and list styling */
/* Title centered properly */
.house-rules-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2e5e4e;
  text-align: center;
  border-bottom: 2px solid #e2c385;
  display: block;
  padding-bottom: 0.3rem;
  width: 100%;
}

.house-rules-content h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #6b5f4c;
}

/* Rule list */
.house-rules-content ul {
  padding-left: 1.5rem;
}
.house-rules-content li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Intro paragraph */
.house-rules p.intro {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #6b5f4c;
}

/* Rule list */
.house-rules ol {
  padding-left: 1.2rem;
  list-style-type: decimal;
}

/* Optional thank-you note */
.house-rules .thank-you {
  margin-top: 2rem;
  font-style: italic;
  text-align: center;
  color: #7e715e;
}

/* Buttons at the bottom, shown after delay */
.house-rules-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #eaeaea;
  opacity: 0;
  transition: opacity 0.5s ease-in;
  pointer-events: none;
}

.house-rules-buttons.hidden {
  opacity: 0;
  pointer-events: none;
}

.house-rules-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Action buttons */
.action-button {
  padding: 10px 20px;
  font-size: 1.1em;
  font-weight: 500;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.action-button:hover {
  background-color: #005fa3;
}

input:focus:invalid,
select:focus:invalid,
textarea:focus:invalid {
  border-color: #0077b6 !important;
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2) !important;
}

/* =========================
   Review Page Formatting
   ========================= */

.review-section {
  margin-bottom: 32px;
}

.review-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.review-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 6px 0;
}

.review-label {
  font-weight: 600;
  color: #555;
}

.review-value {
  color: #222;
  word-break: break-word;
}

.signature-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signature-instructions {
  font-size: 1rem;
  color: #333;
}

.signature-pad-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  margin: 20px 0;
  overflow: hidden;
}

.signature-pad-placeholder {
  color: #777;
  font-size: 0.95rem;
}

.signature-privacy {
  font-size: 0.9rem;
  color: #444;
  background: #f5f7fa;
  padding: 12px 16px;
  border-radius: 6px;
}

.signature-copy label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  cursor: pointer;
}

.signature-submitting {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

/* Canvas fills the box minus button space */
#signatureCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  touch-action: none;
}

.signature-instructions {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #333;
}

/* Button anchored bottom-right INSIDE box */
.signature-actions {
  position: absolute;
  bottom: 10px;
  right: 12px;
}

/* Clear button INSIDE the box */
.clear-signature-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;

  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;

  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;

  cursor: pointer;
  z-index: 5;
}

#submitSignatureBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signature-placeholder {
  position: absolute;
  top: 16px;
  left: 16px;

  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
}
