/* ===== Global scrollbar fix for layout alignment ===== */
html {
  height: 100%;
  overflow-y: scroll;                /* Always reserve vertical scrollbar space */
  scrollbar-gutter: stable;          /* ✅ Modern browsers (Chrome, Edge, Firefox) */
}

/* fallback for older Safari/Chrome versions */
html::-webkit-scrollbar {
  width: 10px;
}
html::-webkit-scrollbar-track {
  background: #f1f1f1;
}
html::-webkit-scrollbar-thumb {
  background: #D62828;
  border-radius: 5px;
}
html::-webkit-scrollbar-thumb:hover {
  background: #b11e1e;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ===============================
   Reset + Base Styles
   =============================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #BDC3C7; /* light grey */
  color: #fff; /* default text color */
}

/* Side panels for background images */
.side {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: -1; /* behind main content */
  background:
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url("../images/food1.jpg") center center/cover no-repeat;
  opacity: 1;
}
.side.left { left: 0; }
.side.right { right: 0; }

/* Main content area */
.container {
  margin: 0 auto;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: visible;
  -webkit-transform: translateZ(0);
}

/* Slide-in logo animation */
@keyframes slideIn {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===== Dine Out Logo visual refinement ===== */
img.logo {
  display: block;
  margin: 0 auto 20px;
  width: 120px;
  height: auto;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  padding: 0px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  animation: slideIn 1s ease-out forwards, logoPulseIntro 1.4s ease-out 1.2s;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover & tap-glow effects */
img.logo:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* 🔹 Tap pulse when clicked/tapped */
@keyframes logoPulse {
  0% { box-shadow: 0 0 0 0 rgba(214,40,40,0.25); }
  70% { box-shadow: 0 0 0 14px rgba(214,40,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); }
}
img.logo:active {
  animation: logoPulse 0.6s ease-out;
}

/* 🔹 Automatic intro pulse (plays once after slide-in) */
@keyframes logoPulseIntro {
  0% { box-shadow: 0 0 0 0 rgba(214,40,40,0.25); }
  60% { box-shadow: 0 0 0 14px rgba(214,40,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); }
}

/* Buttons */
button {
  background: #e74c3c;
  border: none;
  padding: 12px 20px;
  margin: 10px 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}
button:hover {
  background: #c0392b;
}

/* Form fields */
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
}

/* Page wrapper */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Footer */
footer {
  background-color: rgba(0,0,0,0.8);
  text-align: center;
  padding: 15px;
  color: #fff;
}

/* ===============================
   Registration Form + Side Images
   =============================== */
.form-wrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 20px;
}

/* Form styling */
form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  color: #000;
}
form label {
  font-weight: bold;
}
form input, form button {
  font-size: 16px;
}
form button {
  margin-top: 10px;
}

/* Side images */
.side-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sticky + floating effect */
@media (min-width: 769px) {
  .side-images {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .side-images:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
  }
}

.side-images img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* ===============================
   Responsive Layout
   =============================== */
@media (max-width: 768px) {
  .form-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .side-images {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .side-images img {
    max-width: 45%;
  }
}

@media (max-width: 480px) {
  .side-images {
    flex-direction: column;
    gap: 15px;
  }

  .side-images img {
    max-width: 100%;
  }
}

/* Success / error messages */
.message {
  font-size: 16px;
  margin: 10px 0;
}
.success {
  color: #2ecc71;
}
.error {
  color: #e74c3c;
}
