/* ==========================================================================
   NORTHWOOD — SHARED STYLES FOR INNER PAGES
   Loaded after styles.css on events.html, team-bookings.html and
   conditions-of-hire.html. Covers: Call Now button + popup, the page
   hero band, info panels, price cards and the booking-form components.
   ========================================================================== */

/* ---------- Call Now button + popup (same as index.html) ---------- */
.header-actions { display: flex; align-items: center; gap: 14px; }
.call-now-btn {
  position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-red); color: #fff; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.call-now-btn svg { width: 20px; height: 20px; position: relative; z-index: 1; animation: callWiggle 3s ease-in-out infinite; }
.call-now-btn::before, .call-now-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--c-red); opacity: 0.55; animation: callPulse 2s ease-out infinite;
}
.call-now-btn::after { animation-delay: 1s; }
.call-now-btn:hover { filter: brightness(1.1); }
.call-now-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes callPulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes callWiggle {
  0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); }
  88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .call-now-btn::before, .call-now-btn::after, .call-now-btn svg { animation: none; }
  .call-now-btn::before, .call-now-btn::after { opacity: 0; }
}
.call-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(11,11,12,0.65); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.call-modal-overlay[hidden] { display: none; }
.call-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 360px; padding: 2rem 1.75rem 1.5rem; text-align: center; border-top: 4px solid var(--c-red); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.call-modal-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem; background: rgba(215,20,26,0.1); color: var(--c-red); display: flex; align-items: center; justify-content: center; }
.call-modal-icon svg { width: 26px; height: 26px; }
.call-modal h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--c-black); margin: 0 0 0.35rem; }
.call-modal-number { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.5px; color: var(--c-black); margin: 0.25rem 0 0.5rem; }
.call-modal-hours { font-size: 0.85rem; color: var(--c-grey-mid); line-height: 1.5; margin: 0 0 1.4rem; }
.call-modal-go { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.95rem; border-radius: 10px; background: var(--c-red); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.call-modal-go svg { width: 18px; height: 18px; }
.call-modal-cancel { margin-top: 0.6rem; width: 100%; padding: 0.8rem; border-radius: 10px; background: none; border: 1.5px solid rgba(0,0,0,0.15); cursor: pointer; font-family: var(--f-body); font-weight: 600; font-size: 0.9rem; color: var(--c-black); }

.footer-credit img { border-radius: 22%; }

/* ---------- Page hero band ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--c-black);
  padding: calc(var(--header-h) + 72px) var(--pad) 72px;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.88) 100%);
}
.page-hero::before { /* track-lane motif, as on the homepage hero */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 120px);
}
.page-hero-inner { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; }
.page-hero-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-white);
  font-size: clamp(36px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -0.5px; max-width: 900px; margin-bottom: 20px;
}
.page-hero-sub { color: rgba(255,255,255,0.8); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; line-height: 1.6; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--c-red); color: var(--c-white); border: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 15px 30px; border-radius: 6px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-red:hover { background: var(--c-red-dark); transform: translateY(-2px); }
.btn-red:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.4); color: var(--c-white); border-radius: 6px;
  font-family: var(--f-display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 14px 28px; transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-outline-light:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }

/* ---------- Generic content helpers ---------- */
.lede { color: var(--c-grey-mid); font-size: 17px; line-height: 1.7; max-width: 720px; }
.info-panel {
  background: var(--c-grey-light); border-left: 4px solid var(--c-red); border-radius: 10px;
  padding: 20px 24px; font-size: 15px; line-height: 1.7; color: var(--c-black);
}
.info-panel strong { font-weight: 700; }
.info-panel a { color: var(--c-red); font-weight: 700; text-decoration: underline; }
.info-panel.warn { background: #FFF6E5; border-left-color: #D98A00; }
.info-list { list-style: none; display: grid; gap: 10px; }
.info-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; }
.info-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--c-red); }

/* ---------- Price cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.price-card {
  position: relative; background: var(--c-white); border: 1px solid rgba(11,11,12,0.08); border-radius: 14px;
  padding: 28px 24px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(11,11,12,0.06);
}
.price-card.featured { border: 2px solid var(--c-red); }
.price-card .badge {
  position: absolute; top: -12px; left: 24px; background: var(--c-red); color: var(--c-white);
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.price-card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.1; margin-bottom: 6px; }
.price-card .who { color: var(--c-grey-mid); font-size: 14px; margin-bottom: 20px; }
.price-card .price { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--c-black); }
.price-card .per { color: var(--c-grey-mid); font-size: 14px; margin-top: 6px; }

/* ---------- Steps ("what happens next") ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-top: 32px; }
.steps li {
  counter-increment: step; background: var(--c-white); border-radius: 12px; padding: 24px;
  box-shadow: 0 8px 24px rgba(11,11,12,0.06); font-size: 15px; line-height: 1.6; color: var(--c-grey-mid);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-red); color: var(--c-white); font-family: var(--f-display); font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.steps li strong { display: block; color: var(--c-black); font-size: 16px; margin-bottom: 4px; }

/* ==========================================================================
   BOOKING FORMS
   ========================================================================== */
.booking-form { max-width: 900px; }
.form-section {
  background: var(--c-white); border: 1px solid rgba(11,11,12,0.08); border-radius: 14px;
  padding: 32px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(11,11,12,0.04);
}
.form-section > legend, .form-section-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: 0.4px;
  margin-bottom: 20px; padding: 0; display: flex; align-items: center; gap: 12px;
}
.form-section > legend { float: left; width: 100%; } /* lets legend sit inside the padded box */
.form-section > legend + * { clear: both; }
.form-section-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-red); color: var(--c-white); font-size: 16px; flex-shrink: 0;
}
fieldset.form-section { min-width: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label, .group-label {
  font-size: 13px; font-weight: 700; color: var(--c-black); margin-bottom: 6px; letter-spacing: 0.2px;
}
.req { color: var(--c-red); }
.field .hint { font-size: 12px; color: var(--c-grey-mid); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 12px 14px; font-family: var(--f-body); font-size: 15px; color: var(--c-black);
  background: var(--c-grey-light); border: 1.5px solid rgba(11,11,12,0.1); border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-red); background: var(--c-white); }
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; min-height: 47px; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--c-red); background: #FBEAEA; }

/* Tick boxes and radio buttons as tappable chips */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 16px; border-radius: 8px; background: var(--c-grey-light); border: 1.5px solid rgba(11,11,12,0.1);
  font-size: 14px; font-weight: 600; transition: border-color 0.15s ease, background 0.15s ease; user-select: none;
}
.choice input { accent-color: var(--c-red); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--c-red); background: #FDF0F2; }
.choice:has(input:focus-visible) { outline: 2px solid var(--c-red); outline-offset: 2px; }
.choice-group.invalid .choice { border-color: var(--c-red); }
.group-error { display: none; color: var(--c-red); font-size: 13px; font-weight: 600; margin-top: 8px; }
.choice-group.invalid + .group-error, .option-cards.invalid + .group-error, .field.invalid .group-error { display: block; }

/* Big radio cards (booking type) */
.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.option-card {
  position: relative; display: block; cursor: pointer; padding: 18px 18px 18px 50px; border-radius: 12px;
  background: var(--c-grey-light); border: 2px solid transparent; transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card input { position: absolute; left: 18px; top: 21px; accent-color: var(--c-red); width: 18px; height: 18px; margin: 0; }
.option-card:has(input:checked) { border-color: var(--c-red); background: #FDF0F2; }
.option-card:has(input:focus-visible) { outline: 2px solid var(--c-red); outline-offset: 2px; }
.option-card .oc-title { display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 19px; }
.option-card .oc-sub { display: block; font-size: 13px; color: var(--c-grey-mid); margin: 2px 0 8px; }
.option-card .oc-price { display: block; font-weight: 700; font-size: 15px; }
.option-card .oc-tag {
  position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--c-red); color: var(--c-white); padding: 3px 8px; border-radius: 999px;
}
.option-cards.invalid .option-card { border-color: var(--c-red); }

/* Shown/hidden by a choice elsewhere in the form */
.conditional[hidden] { display: none !important; }
.conditional { margin-top: 18px; }

/* Declaration */
.declaration-text { font-size: 14px; line-height: 1.7; color: var(--c-grey-mid); margin-bottom: 20px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; cursor: pointer; margin-bottom: 14px; }
.agree input { accent-color: var(--c-red); width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.agree a { color: var(--c-red); font-weight: 700; text-decoration: underline; }
.agree.invalid { color: var(--c-red); }

.rules { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.rules li { background: #FFF6E5; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.rules li strong { display: block; margin-bottom: 2px; }

.form-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-error-summary { display: none; color: var(--c-red); font-weight: 600; font-size: 14px; }
.form-error-summary.show { display: block; }
.form-fallback { font-size: 13px; color: var(--c-grey-mid); }
.form-fallback a { color: var(--c-red); font-weight: 600; text-decoration: underline; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Success panel that replaces a form once sent */
.form-success {
  background: var(--c-white); border-radius: 14px; padding: 48px 32px; text-align: center;
  border-top: 4px solid var(--c-red); box-shadow: 0 12px 32px rgba(11,11,12,0.08); max-width: 900px;
}
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: #E8F5E9; color: #1B5E20;
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; margin-bottom: 10px; }
.form-success p { color: var(--c-grey-mid); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid, .option-cards { grid-template-columns: 1fr; }
  .form-section { padding: 24px 18px; }
  .price-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
  .btn-red, .btn-outline-light { width: 100%; }
}