/* Festive Manchester · contact-us.css · Contact Us
   The stage, breadcrumb, eyebrow, title and garland are What's on's
   (content.css, loaded first by the ctrl). This sheet adds the two panels:
   the telephone number in a gold-edged panel on the dark stage, and the
   message form on the events' paper card, side by side on desktop and one
   above the other on tablets and phones. Nothing moves. Desktop first in
   rem; tablet and phone at the end, at the site's breakpoints. */

.contact a:focus-visible,
.contact__done:focus-visible,
.contact__note:focus-visible,
.contact__summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 44rem);
  gap: 3rem;
  align-items: start;
}

/* ---------- Call us ---------- */

.contact__call {
  padding: 2rem 1.75rem 2.25rem;
  border: 1px solid rgba(217, 178, 106, .3);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(226, 180, 96, .12), rgba(226, 180, 96, 0) 70%),
    rgba(247, 240, 228, .03);
}

.contact__call h2,
.contact__write h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 450;
  line-height: 1.3;
}

.contact__call h2 { color: var(--cream-text); }

.contact__phone {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.contact__phone a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
}

.contact__phone a:hover { color: var(--cream-text); }

/* ---------- Send us a message, on paper ---------- */

.contact__write {
  padding: 2.75rem 3rem 3rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(90deg, var(--gold-deep), var(--gold) 50%, var(--gold-deep)) top / 100% .25rem no-repeat,
    var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1.75rem rgba(0, 0, 0, .7);
}

.contact__write h2 { color: var(--evergreen); }

.contact__write a { color: var(--berry); }

.contact__write a:focus-visible { outline-color: var(--berry); }

.contact__lead,
.contact__privacy {
  color: var(--ink-muted);
  font-size: .9375rem;
  line-height: 1.6;
}

.contact__lead { margin: .75rem 0 1.75rem; }

.contact__privacy { margin-top: 1.5rem; }

.contact__form {
  display: grid;
  gap: 1.25rem;
}

.contact__form > .contact__lead,
.contact__form > .contact__privacy { margin-bottom: 0; }

.contact__form > .contact__privacy { margin-top: .25rem; }

.contact__field {
  display: grid;
  gap: .4rem;
}

.contact__field label {
  font-size: .875rem;
  font-weight: 600;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(169, 128, 63, .5);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.contact__field textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.contact__field--wrong input,
.contact__field--wrong textarea {
  border-color: var(--berry);
  box-shadow: inset 0 0 0 1px var(--berry);
}

.contact__error {
  color: var(--berry);
  font-size: .875rem;
  line-height: 1.5;
}

.contact__send { margin-top: .25rem; }

/* What happened: saved, a problem with the whole form, or the fields to fix. */
.contact__done,
.contact__note,
.contact__summary {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: .25rem solid var(--gold-deep);
  border-radius: var(--radius);
  background: rgba(217, 178, 106, .14);
  line-height: 1.6;
}

.contact__note--bad,
.contact__summary {
  border-left-color: var(--berry);
  background: rgba(107, 26, 42, .06);
}

.contact__note + .contact__form,
.contact__summary + .contact__form { margin-top: 0; }

.contact__summary p { font-weight: 600; }

.contact__summary ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

/* A field no visitor sees or reaches. A visitor's browser leaves it empty;
   a bot fills it in, and contact-us.ctrl.php quietly ignores what it sent. */
.contact__trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Tablet and phone: one above the other ---------- */

@media (max-width: 1023.98px) {
  .contact__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 44rem;
  }

  .contact__call { padding: 24px 24px 26px; }
}

@media (max-width: 599.98px) {
  .contact__write { padding: 28px 20px 30px; }

  .contact__call { padding: 20px 20px 22px; }

  .contact__call h2,
  .contact__write h2 { font-size: 1.5rem; }

  .contact__phone { font-size: 1.625rem; }
}

@media print {
  .contact__form,
  .contact__trap { display: none; }
}
