/* =====================================================================
   All Star Entertainment — wedding-form.css
   Page-specific styles for wedding-form.html only.
   All tokens, reset, typography, buttons, nav, and footer
   come from main.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   PAGE HEADER — same treatment as events / gallery / pricing
   --------------------------------------------------------------------- */
.wed-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(252,204,71,.09) 0%, transparent 58%),
    var(--bg);
  padding-block: clamp(48px, 8vw, 96px);
  text-align: center;
}

/* Decorative background layer — crossing spotlight beams + bokeh + floor grid */
.wed-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, transparent 35%, rgba(34,36,42,.5) 100%);
}

.wed-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 140px at 14% 26%, rgba(252,204,71,.10), transparent 70%),
    radial-gradient(180px 180px at 84% 16%, rgba(218,68,68,.09), transparent 72%),
    radial-gradient(150px 150px at 70% 74%, rgba(252,204,71,.08), transparent 70%),
    radial-gradient(110px 110px at 30% 84%, rgba(246,243,233,.05), transparent 70%),
    radial-gradient(100px 100px at 94% 60%, rgba(252,204,71,.07), transparent 70%);
  animation: wedBokeh 10s ease-in-out infinite;
}

.wed-hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background-image: repeating-linear-gradient(
    to top,
    rgba(246,243,233,.05) 0px,
    rgba(246,243,233,.05) 1px,
    transparent 1px,
    transparent 34px
  );
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.85), transparent);
          mask-image: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}

.wed-hero__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.wed-hero__beams .beam--a { animation: wedBeamGlow 7s ease-in-out infinite; }
.wed-hero__beams .beam--b { animation: wedBeamGlow 8.5s ease-in-out infinite 1.2s; }
.wed-hero__beams .beam--c { animation: wedBeamGlow 6.8s ease-in-out infinite .6s; }

@keyframes wedBokeh {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}
@keyframes wedBeamGlow {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}

/* Text sits above every layer of .wed-hero__bg */
.wed-hero__content {
  position: relative;
  z-index: 1;
}

.wed-hero .eyebrow {
  justify-content: center;
  margin-bottom: .9rem;
}
.wed-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--paper);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.05;
}
.wed-hero__sub {
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 56ch;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* Gold rule below header */
.wed-rule {
  height: 4px;
  background: var(--gold);
  border: none;
  margin: 0;
}

/* ---------------------------------------------------------------------
   FORM WRAPPER
   --------------------------------------------------------------------- */
.wed-section-wrap { padding-block: var(--section-y); }

.wed-container {
  max-width: 880px;
}

.wed-required-note {
  color: var(--paper-dim);
  font-size: .9rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.wed-required {
  color: var(--red);
  font-weight: 700;
}

.wed-field-error {
  color: var(--red);
  font-size: .85rem;
  margin-top: .5rem;
}

.wed-form {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 5vw, 3.4rem);
}

/* ---------------------------------------------------------------------
   SECTION HEADERS — numbered eyebrow + title, same pattern as
   services.html's chapter__head
   --------------------------------------------------------------------- */
.wed-section__head {
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.4rem);
  border-bottom: 1px solid var(--line);
}
.wed-section__head .eyebrow { margin-bottom: .6rem; font-size: .8rem; }
.wed-section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--paper);
  line-height: 1.1;
}

.wed-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* ---------------------------------------------------------------------
   NOTE CALLOUT — used above Song Choices for the most-requested-songs link
   --------------------------------------------------------------------- */
.wed-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  color: var(--paper-dim);
  font-size: .93rem;
  line-height: 1.5;
  margin-bottom: clamp(1.4rem, 3vw, 1.8rem);
}
.wed-note a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wed-note a:hover { color: var(--gold-deep); }

/* Show "Tap here" on touch devices, "Click here" on mouse/trackpad devices */
.wed-tap-text { display: none; }
@media (hover: none), (pointer: coarse) {
  .wed-click-text { display: none; }
  .wed-tap-text { display: inline; }
}

/* ---------------------------------------------------------------------
   FIELD GRID
   --------------------------------------------------------------------- */
.wed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.4rem;
}

.wed-field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.wed-field--full { grid-column: 1 / -1; }

/* Highlight for required fields left empty on submit */
.wed-field--invalid .wed-input,
.wed-field--invalid .wed-textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(218,68,68,.15);
}
.wed-field--invalid .wed-yesno {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(218,68,68,.15);
}
.wed-field--invalid .wed-chip-group {
  outline: 1px solid var(--red);
  outline-offset: 6px;
  border-radius: var(--radius);
}
.wed-field--invalid > .wed-label {
  color: var(--red);
}

@media (max-width: 640px) {
  .wed-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   LABELS + INPUTS
   --------------------------------------------------------------------- */
.wed-label {
  font-family: var(--font-label);
  font-size: .85rem;
  font-weight: 600;
  color: var(--paper);
}

.wed-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .97rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wed-input::placeholder { color: var(--paper-dim); }
.wed-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,204,71,.15);
}

.wed-textarea {
  resize: vertical;
  min-height: 4.2rem;
  line-height: 1.5;
}
.wed-textarea--lg { min-height: 9rem; }

/* Date/time inputs: force the native icon to match the dark theme */
input[type="date"].wed-input,
input[type="time"].wed-input {
  color-scheme: dark;
}

/* ---------------------------------------------------------------------
   YES / NO SEGMENTED TOGGLE
   --------------------------------------------------------------------- */
.wed-yesno {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  overflow: hidden;
  width: max-content;
}
.wed-yesno input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.wed-yesno label {
  padding: .6em 1.5em;
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  color: var(--paper-dim);
  background: var(--surface);
  transition: background .2s ease, color .2s ease;
}
.wed-yesno label:first-of-type { border-right: 1px solid var(--line); }
.wed-yesno input[type="radio"]:checked + label {
  background: var(--gold);
  color: var(--black);
}
.wed-yesno input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   GENRE CHIPS — multi-select checkbox pills
   --------------------------------------------------------------------- */
.wed-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.wed-chip {
  position: relative;
  display: inline-flex;
}
.wed-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.wed-chip label {
  display: inline-flex;
  align-items: center;
  padding: .55em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wed-chip input[type="checkbox"]:checked + label {
  background: rgba(252,204,71,.15);
  border-color: var(--gold);
  color: var(--gold);
}
.wed-chip input[type="checkbox"]:focus-visible + label {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   SUBMIT AREA
   --------------------------------------------------------------------- */
.wed-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding-top: clamp(1rem, 2vw, 1.4rem);
  border-top: 1px solid var(--line);
}

.wed-submit .btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.wed-error {
  color: var(--red);
  background: rgba(218,68,68,.1);
  border: 1px solid rgba(218,68,68,.35);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  font-size: .93rem;
  max-width: 480px;
}
