/* Contact: page-specific styles (loaded after styles.css) */
:root {
  --field-bg: #FFFCFA;
  --field-border: #E0C9C1;
}

/* ---------- Layout ---------- */
.contact-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 40px 112px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 88px;
  align-items: start;
}

/* ---------- Left column ---------- */
.contact-intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 120px;
}

.contact-intro h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.12;
  text-wrap: pretty;
}

.contact-intro > p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15.5px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}
a.contact-detail:hover { color: var(--maroon); }

.contact-detail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  width: 72px;
  flex-shrink: 0;
}

.contact-figure {
  margin: 8px 0 0;
  height: 300px;
  min-width: 0;
  overflow: hidden;
  background: var(--blush);
}
.contact-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the fire-lit brand lettering on the barrel fully in frame */
  object-position: center 82%;
}

/* ---------- Right column ---------- */
.contact-form-wrap { min-width: 0; }

.contact-form-panel {
  position: relative;
  background: var(--field-bg);
  border: 1px solid var(--border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* `display: flex` would otherwise beat the hidden attribute. */
.contact-form-panel[hidden] { display: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  box-sizing: border-box;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--maroon);
  outline-offset: -1px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--rose-muted); }

.field input:invalid:not(:placeholder-shown) { border-color: var(--maroon); }

/* Honeypot: present for bots, gone for everyone else. */
.field-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-submit {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--maroon);
  padding: 17px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.25s ease, opacity 0.25s ease;
}
.contact-submit:hover { background: var(--maroon-dark); }
.contact-submit[disabled] { opacity: 0.6; cursor: default; }

/* The honest degrade: if the API is down, the venue email is right there. */
.contact-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--blush);
  border: 1px solid var(--border);
  padding: 14px 16px;
}
.contact-note a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Sent state ---------- */
.contact-success {
  background: var(--blush);
  border: 1px solid var(--border);
  padding: 72px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.contact-success[hidden] { display: none; }

.contact-success-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
}

.contact-success p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.contact-reset {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-reset:hover { color: var(--maroon); border-color: var(--maroon); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .contact-page {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 40px 88px;
  }
  .contact-intro { position: static; }
  .contact-form-panel { padding: 36px 32px; }
  .contact-success { padding: 56px 32px; }
}

@media (max-width: 640px) {
  .contact-page { padding: 48px 24px 72px; }
  .contact-form-panel { padding: 26px 20px; gap: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-success { padding: 44px 22px; }
  .contact-success-title { font-size: 29px; }
  .contact-figure { height: 240px; }
  .contact-detail { flex-direction: column; gap: 4px; }
  .contact-detail-label { width: auto; }
  .contact-submit { align-self: stretch; text-align: center; }
}
