/* ========== 📦 Reusable Layout Rules ========== */

.bookings {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media (max-width: 768px) {
  .bookings {
    display: block;       /* ✅ allow normal flow */
    height: auto;         /* ✅ let it grow */
  }
}

/* Outer transparent box (desktop only) */
.content-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
}

/* Inner scrollable and padded content */
.content-inner {
  height: 90%;
  width: 90%;
  margin: auto;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.content-inner::-webkit-scrollbar {
  display: none;
}

/* Typography */
.content-inner h2 {
  font-size: 30px;
  letter-spacing: .3px;
  text-align: center;
  color: white;
}

/* 🔽 MOBILE LAYOUT ADJUSTMENTS */
@media (max-width: 768px) {
  .bg-overlay {
    display: block;
  }

  .content-wrapper {
    height: auto !important;  /* ✅ allow content height */
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .content-inner {
    width: 100% !important;
    height: auto !important;
    /* padding: 25px !important; */
    overflow-y: visible !important;
  }
}

@media (max-width: 480px) {
  .content-inner {
    /* padding: 15px !important; */
  }
}

/* ========== 🎟️ Page-Specific: Booking Form ========== */

#booking-form h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #fff;
  opacity: .95;
}

/* Grid utility */
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Vertical spacing */
#booking-form > *:not(h3) {
  margin-bottom: 15px;
}

/* Inputs/selects — consistent style */
#booking-form input,
#booking-form textarea,
#booking-form select {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

#booking-form select {
  background-image: linear-gradient(45deg, transparent 50%, #9e42f5 50%), 
                    linear-gradient(135deg, #9e42f5 50%, transparent 50%),
                    linear-gradient(to right, rgba(255,255,255,.1), rgba(255,255,255,.1));
  background-position: calc(100% - 18px) calc(1em + 2px), 
                       calc(100% - 13px) calc(1em + 2px), 
                       0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 36px;
}

#booking-form input:focus,
#booking-form textarea:focus,
#booking-form select:focus {
  outline: none;
  border-color: #9e42f5;
  box-shadow: 0 0 0 3px rgba(158,66,245,.25);
  background: rgba(255,255,255,.12);
}

/* Messages */
.success-msg { 
  color: #4caf50; 
  text-align:center; 
}
.error-msg { 
  color: #ff5252; 
  text-align:center; 
}

/* Tall textarea */
#booking-form textarea[name="music_brief"] { 
  min-height: 160px; 
  grid-column: 1 / -1;
  width: 100%;
}

/* Submit button */
#booking-form button {
  padding: 12px;
  font-size: 1rem;
  background-color: #9e42f5;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

#booking-form button:hover {
  background-color: #7d2fd1;
}

/* Dropdown (opened) */
#booking-form select {
  color: #fff;
  background-color: rgba(0,0,0,0.85);
}

#booking-form select option {
  color: #fff;
  background-color: #111;
  padding: 8px;
}

#booking-form select option:hover,
#booking-form select option:focus {
  background-color: #9e42f5;
  color: #fff;
}

#booking-form select option[disabled][hidden] {
  display: none;
}

/* Anti-spam + submit row */
.antispam h3 {
  font-size: 16px;
  margin: 0 0 6px 0;
  color: #ddd;
}

.form-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.form-action .antispam input {
  text-align: center;
  max-width: 160px;
}

@media (max-width: 520px) {
  .form-action {
    grid-template-columns: 1fr;
  }
  .form-action .antispam input {
    max-width: 100%;
  }
}

/* Visually hidden label */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Contact note */
.contact-note {
  text-align: center;
  font-size: 0.9rem;
  color: #eaeaea;
}

.contact-note a {
  color: #9e42f5;
  text-decoration: none;
}

.contact-note p {
	font-weight: 600;
}