/* CityWide brand styles for the campaign pages.
   Change the colours here and both pages update. */
:root {
  --red: #C63D37;          /* main brand red, taken from the website hero */
  --red-deep: #8F2824;
  --red-bright: #FD4D50;   /* the red inside the logo icon */
  --black: #0B0B0B;
  --ink: #1B1B1B;
  --muted: #5A5A5A;
  --page: #F2F2F2;
  --card: #FFFFFF;
  --line: #D4D4D4;
  --field: #8A8A8A;
  --warn-bg: #FFF4D6;
  --warn-line: #B26A00;
  --warn-ink: #5C3B00;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
[hidden] { display: none !important; }

/* ---------- Page shell ---------- */
.shell { min-height: 100vh; display: block; }

/* ---------- Brand panel ---------- */
.panel {
  color: #fff;
  padding: 18px 16px 20px;
  background:
    url("routes.svg") center / cover no-repeat,
    linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.26) 100%),
    linear-gradient(160deg, var(--red) 0%, #A92F2A 62%, var(--red-deep) 100%);
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: 46px; display: block; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 29px; letter-spacing: .005em; }
.wordmark span { font-weight: 500; font-size: 15px; margin-top: 3px; opacity: .92; }
.brand:focus-visible, .panel a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.panel-body { display: none; }
.tagline-mobile { margin: 14px 0 0; font-size: 16px; opacity: .95; }

/* ---------- Form side ---------- */
.main { padding: 22px 14px 56px; }
.card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700; font-size: 40px; line-height: 1.05; margin: 0 0 8px;
}
.lede { margin: 0 0 26px; color: var(--muted); }
p { margin: 0 0 14px; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 10px; }

/* Delivery-type chooser */
.types { display: grid; gap: 12px; grid-template-columns: 1fr; }
.type { position: relative; display: block; }
.type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type-body {
  display: flex; gap: 14px; align-items: center;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; background: #fff;
  transition: border-color .15s, background-color .15s;
}
.type-body svg { flex: none; width: 40px; height: 40px; color: var(--muted); }
.type-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; display: block; }
.type-sub { color: var(--muted); font-size: 15px; display: block; }
.type input:checked + .type-body { border-color: var(--red); background: #FCF0EF; }
.type input:checked + .type-body svg { color: var(--red); }
.type input:focus-visible + .type-body { outline: 3px solid var(--black); outline-offset: 2px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 500; font-size: 16px; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--field); border-radius: 6px; padding: 12px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--black); outline-offset: 1px; border-color: var(--black);
}
.hint { color: var(--muted); font-size: 15px; margin: 0; }

.file-box { border: 2px dashed var(--red); border-radius: var(--radius); padding: 18px; background: #FDF6F5; }
.file-box input[type=file] { width: 100%; font: inherit; }
.file-name { margin: 8px 0 0; font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Optional marketing opt-in */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.check input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* Errors use amber so they are not confused with the brand red */
.error {
  background: var(--warn-bg); color: var(--warn-ink);
  border: 1.5px solid var(--warn-line); border-radius: 6px;
  padding: 12px 14px; margin: 0 0 16px; font-weight: 500;
}
button.send {
  width: 100%; min-height: 54px; font: inherit; font-weight: 600; font-size: 18px;
  background: var(--red); color: #fff; border: 0; border-radius: 6px;
  cursor: pointer; padding: 14px 20px;
}
button.send:hover { background: var(--red-deep); }
button.send:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
button.send[disabled] { opacity: .7; cursor: progress; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.call-line { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.call-line a, a.link { color: var(--red-deep); font-weight: 600; }

/* Thank-you page */
.ref { display: inline-block; font-weight: 600; font-size: 20px; border: 2px solid var(--black); color: var(--black); border-radius: 6px; padding: 6px 14px; margin: 4px 0 18px; }
.muted { color: var(--muted); }

/* ---------- Desktop: brand panel on the left, form on the right ---------- */
@media (min-width: 620px) {
  .card { padding: 36px 36px 38px; }
  h1 { font-size: 48px; }
  .types { grid-template-columns: 1fr 1fr; }
  .type-body { height: 100%; }
  .grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: minmax(380px, 40%) 1fr; }
  .panel {
    position: sticky; top: 0; height: 100vh;
    padding: 44px 48px 40px;
    display: flex; flex-direction: column; justify-content: flex-start;
  }
  .brand img { width: 56px; height: 56px; }
  .wordmark b { font-size: 34px; }
  .wordmark span { font-size: 17px; }
  .tagline-mobile { display: none; }
  .panel-body { display: block; margin-top: auto; }
  .panel h2 {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700; font-size: 56px; line-height: 1; margin: 0 0 14px; max-width: 11ch;
  }
  .panel-body > p { font-size: 18px; max-width: 30ch; opacity: .95; margin: 0 0 28px; }
  .points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .points li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 500; }
  .points svg { flex: none; width: 26px; height: 26px; }
  .panel-foot { font-size: 16px; margin: 32px 0 0; }
  .panel-foot a { color: #fff; font-weight: 600; }
  .main { padding: 56px 48px 72px; display: flex; align-items: flex-start; }
  .card { width: 100%; }
  .call-line { display: none; }
}
@media (min-width: 960px) and (max-height: 760px) {
  .panel h2 { font-size: 44px; }
  .points { gap: 10px; }
}
@media (max-width: 959px) { .panel-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Contact chooser: tapping the phone number offers Call or WhatsApp */
.cw-contact-back {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11, 11, 11, .6);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
.cw-contact-box {
  background: var(--card); color: var(--ink);
  width: 100%; max-width: 380px;
  border-radius: 14px; padding: 22px 20px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  text-align: center;
}
.cw-contact-box h2 { margin: 0 0 4px; font-size: 20px; }
.cw-contact-box p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.cw-contact-btn {
  display: block; width: 100%; margin: 0 0 10px; padding: 14px 16px;
  border-radius: var(--radius); font: inherit; font-weight: 700;
  text-decoration: none; text-align: center; border: 2px solid var(--black);
  background: var(--black); color: #fff; cursor: pointer;
}
.cw-contact-btn.wa { background: #1FA855; border-color: #1FA855; }
.cw-contact-btn.cancel { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; margin-bottom: 0; }
.cw-contact-btn:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; }
@media (min-width: 600px) { .cw-contact-back { align-items: center; } }
