/* WNP — the venue hire request form.
   File location in the WNP Site repo: /wnp-hire-request-form.css

   Public page styles. Kept out of wnp-hire-enquiries.css, which is the
   organiser side and is only loaded on the account page -- the form
   would have rendered unstyled, which is how it was first shipped.
*/
/* ---- The request form ----
   Lives on the public hire page. An enquiry is a question; this is
   somebody committing to dates. */

.hrf { display: flex; flex-direction: column; }

.hrf-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink, #232620); }
.hrf-hint { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted, #5B6259); }

.hrf-fs { margin: 0 0 18px; padding: 0; border: 0; }

.hrf-legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #5B6259);
}

/* What the club already knows, shown rather than asked again. */
.hrf-known {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sand, #FBF8F3);
  font-size: 14.5px;
  color: var(--ink, #232620);
}

.hrf-field { display: block; margin-bottom: 12px; }
.hrf-field span { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink, #232620); }

/* Its own box-sizing rather than relying on the page's reset: this
   stylesheet is loaded by a page it does not control, and a full-width
   input with padding overflows its container without it. */
.hrf-field input,
.hrf-field textarea,
.hrf-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--acct-line-strong, #D2D5CE);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink, #232620);
}

.hrf-row { display: flex; gap: 12px; }
.hrf-row .hrf-field { flex: 1 1 0; min-width: 0; }

/* ---- The review ----
   A sentence and a count. Twenty-seven rows is how three conflicts get
   lost, so the list is behind a control. */

.hrf-review {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--green, #0F6939);
  border-radius: 12px;
  background: var(--sage, #EFF3EE);
}

.hrf-review-head { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink, #232620); }
.hrf-sentence { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink, #232620); }
.hrf-span { margin: 3px 0 0; font-size: 14.5px; color: var(--ink, #232620); }
.hrf-count { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--green-dark, #0A4A28); }

.hrf-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-dark, #0A4A28);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.hrf-dates {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.hrf-dates li {
  padding: 7px 0;
  border-top: 1px solid rgba(35, 38, 32, .08);
  font-size: 14px;
  color: var(--ink, #232620);
}

.hrf-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted, #5B6259); }

.hrf-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink, #232620);
  cursor: pointer;
}

.hrf-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--green, #0F6939); }

.hrf-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--bad-bg, #FDECEA);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bad-fg, #931B24);
}

.hrf-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hrf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--acct-line-strong, #D2D5CE);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #232620);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.hrf-btn-main { border: 0; background: var(--brick, #931B24); color: #fff; }
.hrf-btn-main:hover { background: var(--brick-bright, #B32530); }

.hire-form-done h4 { margin: 0 0 8px; font-size: 18px; color: var(--ink, #232620); }
.hire-form-done p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--muted, #5B6259); }

/* Shown when an earlier enquiry filled some of this in, so nobody
   wonders why the form already knows things. */
.hrf-carried {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--sage, #EFF3EE);
  font-size: 14px;
  line-height: 1.5;
  color: var(--green-dark, #0A4A28);
}

/* ── Several specific dates ───────────────────────────────────────── */
.hrf-field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }

.hrf-dates-pick { margin-top: 4px; }
.hrf-dates-label {
  display: block; margin-bottom: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink, #232620);
}
/* The Add button sits beside a date input, so it matches its height
   rather than the full-width buttons lower down the form. */
.hrf-add { flex: 0 0 auto; align-self: flex-end; min-height: 48px; white-space: nowrap; }
.hrf-btn-quiet {
  border: 1px solid var(--green, #0F6939);
  background: #fff;
  color: var(--green, #0F6939);
}
.hrf-chosen { list-style: none; margin: 10px 0 0; padding: 0; }
.hrf-chosen li {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; margin-bottom: 6px;
  border-radius: 9px;
  background: var(--acct-tint, #F4F6F2);
  font-size: 14px; color: var(--ink, #232620);
}
.hrf-chosen li span { flex: 1 1 auto; min-width: 0; }
/* A proper 44px target. Removing a date you added by mistake should not
   need a careful tap. */
.hrf-chip-x {
  flex: 0 0 auto;
  width: 44px; height: 44px; margin: -9px -10px -9px 0;
  border: 0; background: none;
  color: var(--brick, #931B24);
  font-size: 20px; line-height: 1; cursor: pointer;
}
/* Visible to a screen reader, not on screen — the date input beside
   "Add date" still needs a name. */
.hrf-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
