/* DJ-Wy booking. The first part is taken from the dj-wy.com stylesheet
   (/var/www/dj-wy/public/index.css): palette, type, buttons, header, the
   content-page hero and footer. The beams are a static version of the site's
   primary-colour light show. The second part styles the calendar and forms. */

:root {
  --vista-blue: #9F9FE1;
  --tiffany: #84DCC6;
  --warm-spill: #F1A65A;
  --almond: #F1DAC4;
  --ultra-violet: #4B4E6D;
  --eerie-black: #222222;
  --stage-black: #050505;
  --ink: #0A0A0F;

  --text: #F3EFEA;
  --text-dim: rgba(243, 239, 234, 0.62);

  --font-display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1rem, 5vw, 4rem);
  --radius: 14px;

  /* width of the label column in forms and booking details */
  --label-w: 15rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stage-black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }

::selection { background: var(--tiffany); color: var(--stage-black); }

:focus-visible {
  outline: 2px solid var(--tiffany);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--tiffany), var(--vista-blue));
  color: #08110D;
  box-shadow: 0 10px 30px -10px rgba(132, 220, 198, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px -4px rgba(132, 220, 198, 0.7), 0 0 60px -10px rgba(159, 159, 225, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(159, 159, 225, 0.4);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--vista-blue);
  background: rgba(159, 159, 225, 0.12);
}
.btn-sm { font-size: 0.88rem; padding: 0.55em 1.1em; }

/* copy button, as on the press page: Vista, hover Almond, pushed Ultra Violet, done Tiffany */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.8em;
  font: 600 0.85rem/1 var(--font-body);
  letter-spacing: 0.03em;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  border: 1px solid rgba(159, 159, 225, 0.45);
  background: rgba(159, 159, 225, 0.10);
  color: var(--vista-blue);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.copy-btn:hover { color: var(--almond); border-color: rgba(241, 218, 196, 0.6); background: rgba(241, 218, 196, 0.08); }
.copy-btn:active { background: var(--ultra-violet); }
.copy-btn.is-copied { color: var(--stage-black); background: var(--tiffany); border-color: var(--tiffany); }

/* ---------- Header ---------- */
.dev-banner {
  background: var(--warm-spill);
  color: var(--stage-black);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.25rem;
}
header { position: relative; z-index: 30; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
}
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.wordmark-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--tiffany) 0%, var(--vista-blue) 70%, var(--warm-spill) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  font: 600 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.05em;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  border: 1px solid rgba(132, 220, 198, 0.45);
  background: rgba(132, 220, 198, 0.08);
  color: var(--tiffany);
  white-space: nowrap;
  cursor: pointer;
}
.pill:hover { background: rgba(132, 220, 198, 0.16); }
/* language switch, as on dj-wy.com */
.topbar-end { display: flex; align-items: center; gap: 1rem; }
.topbar-end form { margin: 0; }
.lang-switch {
  display: flex;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch .current { color: var(--tiffany); }

/* ---------- Page hero with a static light show ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2.2rem, 6vw, 4rem) clamp(1.8rem, 4vw, 2.6rem);
  border-bottom: 1px solid rgba(159, 159, 225, 0.12);
}
.page-hero::after {
  /* haze veil, fading into the page */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(132, 220, 198, 0.10), transparent 55%),
    linear-gradient(transparent 45%, rgba(5, 5, 5, 0.75));
}
.rig {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.rig .haze {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 55% at 30% 0%, rgba(159, 159, 225, 0.18), transparent 70%),
    radial-gradient(45% 60% at 70% 0%, rgba(132, 220, 198, 0.16), transparent 70%),
    radial-gradient(50% 50% at 50% 10%, rgba(241, 166, 90, 0.10), transparent 70%);
  filter: blur(40px);
}
/* a beam = a cone with a soft gradient and a brighter core. The site clips its
   (moving) beams with clip-path; static beams get soft edges from a conic mask. */
.beam {
  position: absolute;
  top: -14%;
  width: var(--w, 40vw);
  margin-left: calc(var(--w, 40vw) / -2);
  height: 190%;
  transform-origin: 50% 0%;
  -webkit-mask-image: conic-gradient(from 146deg at 50% 0%, transparent 0deg, #000 16deg, #000 52deg, transparent 68deg);
  mask-image: conic-gradient(from 146deg at 50% 0%, transparent 0deg, #000 16deg, #000 52deg, transparent 68deg);
  filter: blur(6px);
  opacity: var(--f, 0.7);
}
.beam i {
  position: absolute;
  inset: 0;
  -webkit-mask-image: conic-gradient(from 170deg at 50% 0%, transparent 0deg, #000 6deg, #000 14deg, transparent 20deg);
  mask-image: conic-gradient(from 170deg at 50% 0%, transparent 0deg, #000 6deg, #000 14deg, transparent 20deg);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent 70%);
}
/* dj-wy primary colours: three beams per side from the content edges, fanned towards the middle */
.page-hero {
  --cl: max(0px, calc(50% - var(--maxw) / 2));
  --cr: min(100%, calc(50% + var(--maxw) / 2));
}
.beam-1 { left: calc(var(--cl) + 6%);  transform: rotate(-58deg); background: linear-gradient(to bottom, rgba(255, 70, 70, 0.95), rgba(255, 70, 70, 0.12) 55%, transparent 85%); }
.beam-2 { left: calc(var(--cl) + 9%);  transform: rotate(-40deg); background: linear-gradient(to bottom, rgba(255, 210, 60, 0.95), rgba(255, 210, 60, 0.12) 55%, transparent 85%); }
.beam-3 { left: calc(var(--cl) + 12%); transform: rotate(-22deg); background: linear-gradient(to bottom, rgba(70, 230, 110, 0.95), rgba(70, 230, 110, 0.12) 55%, transparent 85%); }
.beam-4 { left: calc(var(--cr) - 12%); transform: rotate(22deg);  background: linear-gradient(to bottom, rgba(70, 220, 235, 0.95), rgba(70, 220, 235, 0.12) 55%, transparent 85%); }
.beam-5 { left: calc(var(--cr) - 9%);  transform: rotate(40deg);  background: linear-gradient(to bottom, rgba(80, 130, 255, 0.95), rgba(80, 130, 255, 0.12) 55%, transparent 85%); }
.beam-6 { left: calc(var(--cr) - 6%);  transform: rotate(58deg);  background: linear-gradient(to bottom, rgba(225, 80, 210, 0.95), rgba(225, 80, 210, 0.12) 55%, transparent 85%); }
@media (min-width: 1080px) {
  .beam { --w: 24vw; }
}

.page-hero-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vista-blue);
  font-weight: 600;
}
.page-title {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.7);
}
.glow {
  background: linear-gradient(120deg, var(--tiffany) 0%, var(--vista-blue) 70%, var(--warm-spill) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(132, 220, 198, 0.35));
}
.page-sub { color: var(--text-dim); max-width: 54ch; font-size: clamp(1rem, 2vw, 1.15rem); }

/* ---------- Main + cards ---------- */
main { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.narrow { max-width: 920px; margin-inline: auto; }

.card {
  position: relative;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  margin: 0 0 clamp(1rem, 2.5vw, 1.4rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(159, 159, 225, 0.06), rgba(10, 10, 18, 0.4));
  border: 1px solid rgba(159, 159, 225, 0.14);
  min-width: 0;
}
.card-title {
  /* also used on <legend>: float makes it a normal block inside the fieldset */
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1;
  color: var(--text);
}
.card-title + * { clear: both; }
.card p + p { margin-top: 0.8rem; }
.card a:not(.btn) { color: var(--vista-blue); text-decoration: underline; text-underline-offset: 2px; }
.card a:not(.btn):hover { color: var(--tiffany); }
fieldset.card { min-inline-size: 0; }

.back-link { display: inline-block; margin-bottom: 1rem; color: var(--vista-blue); }
.back-link:hover { color: var(--tiffany); }

.alert {
  border: 1px solid rgba(241, 166, 90, 0.55);
  background: rgba(241, 166, 90, 0.08);
  color: var(--almond);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.4rem;
}
.alert ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Calendar ---------- */
.cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.cal-jump { display: flex; gap: 0.5rem; align-items: center; }
.cal-nav--bottom { margin: 1rem 0 0; }
.cal-legend { display: none; }

table.calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: clamp(3px, 0.8vw, 8px);
  margin-inline: calc(-1 * clamp(3px, 0.8vw, 8px));
  width: calc(100% + 2 * clamp(3px, 0.8vw, 8px));
}
table.calendar th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vista-blue);
  padding-bottom: 0.2rem;
}
table.calendar td { padding: 0; vertical-align: top; height: 1px; /* lets .day fill the cell */ }
table.calendar form { height: 100%; margin: 0; }

.day {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  min-height: 4.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font: inherit;
  text-align: left;
  overflow: hidden;
}
button.day { cursor: pointer; }
.day-date { font-size: 0.8rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.day-status { font-size: 0.78rem; line-height: 1.25; }
.day-info { font-size: 0.75rem; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }

.day.is-available {
  border-color: rgba(132, 220, 198, 0.45);
  background: rgba(132, 220, 198, 0.08);
  color: var(--tiffany);
  transition: background .2s ease, box-shadow .2s ease, transform .18s ease;
}
a.day.is-available:hover, button.day.is-available:hover {
  background: rgba(132, 220, 198, 0.18);
  box-shadow: 0 0 24px -6px rgba(132, 220, 198, 0.6);
  transform: translateY(-1px);
}
.day.is-unavailable .day-date, .day.is-far .day-date, .day.is-past .day-date { color: var(--text-dim); }
.day.is-past { opacity: 0.55; }
.day.is-far .day-status { font-style: italic; }
.day.is-blocked {
  border-color: rgba(241, 166, 90, 0.4);
  background: rgba(241, 166, 90, 0.07);
  color: var(--warm-spill);
}
button.day.is-blocked:hover { background: rgba(241, 166, 90, 0.15); }
.day.is-booked {
  border-color: rgba(159, 159, 225, 0.55);
  background: rgba(159, 159, 225, 0.14);
  color: var(--vista-blue);
}
a.day.is-booked:hover { background: rgba(159, 159, 225, 0.24); }

@media (max-width: 640px) {
  /* earlier / later on one row, the date field below */
  .cal-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .cal-nav > a:first-child { justify-self: start; }
  .cal-nav > a:last-child { justify-self: end; grid-row: 1; grid-column: 2; }
  .cal-jump { grid-column: 1 / -1; }
  .cal-jump input { flex: 1; }
  /* narrow screens: colours instead of words, explained by the legend */
  .cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0 0 0.8rem;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-dim);
  }
  .cal-legend li { display: flex; align-items: center; gap: 0.4rem; }
  .cal-legend .day { display: inline-block; width: 0.9rem; height: 0.9rem; min-height: 0; padding: 0; border-radius: 4px; }
  .day { min-height: 3rem; padding: 0.35rem; align-items: center; }
  .day-status, .day-info { display: none; }
  .day-month { display: none; }
  .day-date.show-month .day-month { display: inline; }
  .day-date { font-size: 0.78rem; text-align: center; white-space: normal; line-height: 1.15; }
  table.calendar th { letter-spacing: 0.04em; }
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
  gap: 0.35rem 1.4rem;
  align-items: center;
  padding-block: 0.45rem;
}
.field-label { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.field--top { align-items: start; }
.field--top > .field-label { padding-top: 0.55rem; }
.field--wide { grid-template-columns: minmax(0, 1fr); }
.field--wide > .field-label { padding-top: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"],
select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(5, 5, 5, 0.55);
  border: 1px solid rgba(159, 159, 225, 0.28);
  border-radius: 10px;
  padding: 0.6em 0.85em;
  transition: border-color .2s ease, box-shadow .2s ease;
  color-scheme: dark;
}
textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
select { cursor: pointer; }
select.select-time { width: auto; min-width: 7.5rem; }
input[type="date"] { width: auto; }
option { background: var(--ink); color: var(--text); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--tiffany);
  box-shadow: 0 0 0 3px rgba(132, 220, 198, 0.18);
}
::placeholder { color: rgba(243, 239, 234, 0.35); }

.check { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.95rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--tiffany); margin: 0; }

.hint { font-size: 0.82rem; color: var(--text-dim); }

/* hour picker */
.hours {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}
.hours button {
  font: 600 0.85rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  padding: 0.6em 0;
  border-radius: 8px;
  border: 1px solid rgba(159, 159, 225, 0.28);
  background: rgba(5, 5, 5, 0.55);
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hours button:hover { border-color: var(--tiffany); }
.hours button.in-range { background: rgba(132, 220, 198, 0.16); border-color: rgba(132, 220, 198, 0.45); color: var(--tiffany); }
.hours button.is-edge { background: var(--tiffany); border-color: var(--tiffany); color: var(--stage-black); }
.hours-selected { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-dim); }
.hours-selected span { color: var(--tiffany); font-weight: 600; font-variant-numeric: tabular-nums; }

/* cost calculation */
.cost-block {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(159, 159, 225, 0.16);
}
.cost-block h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.cost-description { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.9rem; max-width: 70ch; }
table.cost {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.cost td, table.cost th { padding: 0.45rem 0; text-align: left; font-weight: 400; vertical-align: baseline; }
table.cost tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.05); }
table.cost .amount {
  width: 7rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 1rem;
}
table.cost tr.total th {
  border-top: 1px solid rgba(132, 220, 198, 0.5);
  padding-top: 0.6rem;
  font-weight: 700;
  color: var(--tiffany);
  font-size: 1.05rem;
}
table.cost tr.note td { font-size: 0.82rem; color: var(--text-dim); border-top: none; padding-top: 0.2rem; }
table.cost tr.sound-note td { color: var(--almond); }
/* the "*" of the total and its notice, raised without making the line taller */
sup.star { line-height: 0; }

/* payment */
.payment-text {
  /* one instruction per line; the line breaks are in the text, so copying keeps them */
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.7;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(159, 159, 225, 0.16);
  background: rgba(5, 5, 5, 0.45);
}
.payment-note { margin-top: 0.9rem; }
.payment-actions { margin-top: 0.6rem; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 0.4rem; }

/* booking details (DJ) */
table.details { width: 100%; border-collapse: collapse; }
table.details th, table.details td { text-align: left; vertical-align: baseline; padding: 0.45rem 0; }
table.details td.empty { color: var(--text-dim); }
table.details th { width: var(--label-w); padding-right: 1.4rem; font-size: 0.92rem; font-weight: 600; }
table.details td { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
table.details tr + tr > * { border-top: 1px solid rgba(255, 255, 255, 0.05); }

@media (max-width: 640px) {
  .field { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .field--top > .field-label { padding-top: 0; }
  .field > .field-label:empty { display: none; }
  table.details th, table.details td { display: block; width: auto; padding: 0; }
  table.details th { padding-top: 0.6rem; }
  table.details td { padding-bottom: 0.4rem; }
  table.details tr + tr > td { border-top: none; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
footer {
  background: #040406;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}
.foot-sites { display: flex; flex-wrap: wrap; align-items: baseline; font-size: clamp(1rem, 2.5vw, 1.25rem); letter-spacing: 0.02em; color: var(--text-dim); }
.foot-sites a { transition: color .2s ease; white-space: nowrap; }
.foot-sites a:hover { color: var(--tiffany); }
.foot-sites .current { color: var(--tiffany); font-weight: 600; }
.foot-sites .sep { margin-inline: 0.55em; opacity: 0.4; }
.foot-legal { margin-top: 1rem; font-size: 0.75rem; color: var(--text-dim); opacity: 0.8; }
.foot-legal a { color: var(--vista-blue); text-decoration: underline; text-underline-offset: 2px; }

/* e.g. "the included sound setup is not suitable for more than 250 people" */
.notice {
  margin: 0.5rem 0 0;
  border: 1px solid rgba(241, 166, 90, 0.55);
  background: rgba(241, 166, 90, 0.08);
  color: var(--almond);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
}
.notice[hidden] { display: none; }
