/* =========================================================
   === PAGE 4: Guestbook Styling (page4.css)
   === Grouped + Cleaned for Easy Editing
   ========================================================= */

/* Grid container */
.guestbook-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
}

.guestbook-card {
  background: rgba(20, 0, 40, 0.85);
  border: 1px solid #7526df;
  border-radius: 10px;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
#page4 .guestbook-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(186, 85, 255, 0.9),
              0 0 40px rgba(186, 85, 255, 0.7);
}


/* ===========================
   2. CARD STYLING
   =========================== */
/* Guestbook Card */
#page4 .guestbook-card {
  width: 300px;              /* fixed card width */
  height: 420px;             /* lock card height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Photo area */
#page4 .guestbook-photo {
  width: 100%;
  height: 200px;             /* fixed thumbnail height */
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;          /* fallback background */
}

/* Image inside card */
#page4 .guestbook-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* crop to fill box */
  object-position: center;   /* center the crop */
  display: block;
}

/* Info section stays consistent */
#page4 .guestbook-info {
  flex: 1;
  overflow: hidden;
  font-size: 0.9rem;
}

#page4 .guestbook-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(186, 85, 255, 0.9),
              0 0 40px rgba(186, 85, 255, 0.7);
}

/* Card container should be relative so engine strip stays inside */
#page4 .guestbook-card {
  width: 300px;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;   /* <-- add this */
}

/* Photo area */
#page4 .guestbook-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

/* Image inside card (only one rule set) */
#page4 .guestbook-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#page4 .guestbook-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(186, 85, 255, 0.7);
}

/* Engine strip always visible, pinned to bottom of card */
#page4 .engine-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}
#page4 .engine-strip.air {
  background-image: url("../images/air.png");
}
#page4 .engine-strip.water {
  background-image: url("../images/water.png");
}

/* Hide engine text if still present */
#page4 .engine-strip .engine-text {
  font-size: 0;
  color: transparent;
}

#page4 .engine-logo-lg {
  display: block;
  margin: 16px auto 0;
  width: 180px;
  height: auto;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1);   opacity: 1; }
}


/* ===========================
   6. FILTER BUTTONS
   =========================== */
#page4 .guestbook-filters {
  text-align: center;
  margin: 1rem auto 2rem;
}
#page4 .filter-btn {
  background: #0a0a0a;
  border: 1px solid #7526df;
  color: #fff;
  padding: 8px 16px;
  margin: 0 6px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, box-shadow 0.2s;
}
#page4 .filter-btn.active,
.filter-btn:hover {
  background: #ba55ff;
  box-shadow: 0 0 10px rgba(186,85,255,0.7);
}

/* ===========================
   7. LIGHTBOX
   =========================== */
#page4 .guestbook-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
#page4 .guestbook-lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#page4 .guestbook-lightbox-img {
  max-width: 700px;
  max-height: 70vh;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(117, 38, 223, 0.8);
  background: #000;
  object-fit: contain;
}
#page4 .lightbox-info {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  background: rgba(0,0,0,0.5);
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(117, 38, 223, 0.6);
}
#page4 .lightbox-info h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #fff;
}
#page4 .lightbox-info p,
#page4 .lightbox-info small {
  margin: 6px 0;
  line-height: 1.5;
}
#page4 .lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(186, 85, 255, 0.9);
  transition: transform 0.2s ease;
}
#page4 .lightbox-close:hover {
  transform: scale(1.2);
  color: #ba55ff;
}
/* Desktop layout for lightbox */
@media (min-width: 900px) {
  #page4 .guestbook-lightbox.active {
    flex-direction: row;
    gap: 30px;
  }
  #page4 .guestbook-lightbox-img {
    max-width: 55%;
    max-height: 80vh;
  }
  #page4 .lightbox-info {
    max-width: 40%;
  }
}


/* ===========================
   8. FORM
   =========================== */
#page4 .guest-form {
  background-color: rgba(60, 0, 90, 0.7);
  padding: 1.2rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  position: relative;
  box-shadow: 0 0 12px rgba(117, 38, 223, 0.6);
  border: 1px solid #7526df;
}
#page4 .guest-form .form-input {
  margin-bottom: 10px;
}
#page4 .guest-form .form-input label {
  display: block;
  margin: 0 0 4px 0;
  color: #fff;
}
#page4 .guest-form input[type="file"] {
  max-width: 250px;
}
#page4 .guest-form input[type="text"],
#page4 .guest-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  background: #0a0a0a;
  color: #a5a5a5;
  font-size: 1em;
  border: 1px solid #7526df;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(117, 38, 223, 0.8);
  outline: none;
}

/* Highlight for Name label */
#page4 .guest-form .form-input:first-of-type > label {
  background: rgba(117, 38, 223, 0.85);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(117, 38, 223, 0.8),
              0 0 12px rgba(117, 38, 223, 0.6);
  display: inline-block;
  color: #fff;
}

/* Submit button */
#page4 .guest-form .btn button {
  cursor: pointer;
  background-color: #ba55ff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(186, 85, 255, 0.6),
              0 0 20px rgba(186, 85, 255, 0.5),
              0 0 30px rgba(186, 85, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page4 .guest-form .btn button:hover {
  animation: neonPulse 1.5s infinite;
  transform: translateY(-2px);
}

/* Stamp inside the form */
#page4 .form-stamp {
  background-image: url("../images/dubbchatt.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 70px;
  height: 70px;
  position: absolute;
  bottom: 1em;
  right: 1em;
  z-index: 5;
  filter: drop-shadow(0 0 6px #7526df);
  transition: transform 0.3s ease, filter 0.3s ease;
}
#page4 .form-stamp:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px #ff00cc);
}

/* Engine radio row */
#page4 .engine-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
#page4 .engine-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #fff;
}
#page4 .engine-row .file-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
#page4 .engine-row input[type="file"] {
  max-width: 220px;
}


/* ===========================
   9. THANK YOU BOX
   =========================== */
#page4 .thankyou-box {
  background: rgba(26, 9, 48, 0.9);
  border: 2px solid #ff00cc;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 0 15px rgba(255, 0, 204, 0.6);
}
#page4 .thankyou-title {
  color: #ff66ff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 102, 255, 0.8);
}
#page4 .thankyou-message {
  color: #ddd;
  margin-bottom: 1.5rem;
}

#page4 .thankyou-actions .btn {
  display: inline-block;
  margin-top: 1rem;
  background: #ba55ff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(186, 85, 255, 0.6),
              0 0 20px rgba(186, 85, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page4 .thankyou-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 0, 204, 0.8),
              0 0 30px rgba(255, 0, 204, 0.6);
]