/* THE QUOTE PAGE THAT JUST BOOKS AN EICR (Pete 2026-11-07 15:33).
 *
 * Two doors in the brand navy with amber headings, side by side on a wide
 * screen and stacked on a phone. Colours come from the tokens in styles.css
 * (navy #123A5E, deep navy #0B2740, amber #F4A300, white text on navy), so the
 * page never carries a colour of its own.
 */

.book-eicr { padding: 28px 0 36px; }

.book-eicr-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 860px) {
  .book-eicr-doors { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.book-eicr-door {
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px 18px 18px;
  box-shadow: 0 8px 24px rgba(11, 39, 64, 0.18);
}
@media (min-width: 860px) { .book-eicr-door { padding: 28px 26px 22px; } }

.book-eicr-door-title {
  color: var(--c-amber);
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 800;
}
.book-eicr-door-who {
  color: #D7DEE9;
  font-size: 15.5px;
  line-height: 1.45;
  margin: 0 0 16px;
}

/* The four price tiles: one tap picks one. */
.book-eicr-bands {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.book-eicr-band {
  position: relative;
  width: 100%;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
  padding: 12px 12px;
  background: var(--c-navy-deep);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-md);
  font: inherit;
  cursor: pointer;
}
.book-eicr-band:hover { border-color: var(--c-amber); }
.book-eicr-band:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; }
/* The chosen tile: a white outline and a white tick, never the button amber,
   so a chosen tile and the Book button can never look like the same thing
   (director 2026-11-07 16:11, cold review point 7). */
.book-eicr-band[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}
.book-eicr-band[aria-pressed="true"]::after {
  content: "\2713";
  position: absolute;
  bottom: 8px;
  right: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-navy-deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.book-eicr-band-circuits { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.book-eicr-band-price { font-size: 24px; font-weight: 800; line-height: 1.1; }
.book-eicr-band-extra { font-size: 12.5px; line-height: 1.3; opacity: 0.9; }

.book-eicr-not-sure { color: #D7DEE9; font-size: 14.5px; margin: 0 0 4px; line-height: 1.45; }
/* The upload is one plain button: no dashed frame around it, one line. */
.book-eicr-door .board-photo-block { margin: 6px 0 14px; padding: 0; border: 0; background: transparent; }
.book-eicr-door .board-photo-choose {
  background: var(--c-navy-deep);
  border: 2px solid rgba(255, 255, 255, 0.35);
  /* The words wrap on a narrow phone rather than run off the edge: "Send a
     photo of the fuse board, or several" is longer than one 390 wide line. */
  white-space: normal;
  text-align: center;
}
.book-eicr-door .board-photo-choose:hover { border-color: #fff; }
.book-eicr-door .board-photo-status { color: var(--c-text); }
/* How many photos are held for this door, and Clear (2026-11-07, brief AT). */
.book-eicr-door .quote-photos-chosen { margin: 8px 0 0; font-size: 14.5px; color: #D7DEE9; }
.book-eicr-door .quote-photos-chosen[hidden] { display: none; }
.quote-photos-clear {
  margin-left: 6px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-sm); background: transparent; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}

.book-eicr-fields { display: grid; gap: 10px; margin: 0 0 14px; }
.book-eicr-fields label {
  display: grid;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.book-eicr-optional { font-weight: 400; color: #B9C4D6; }
.book-eicr-fields input,
.book-eicr-fields select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-sm);
}
.book-eicr-fields input:focus,
.book-eicr-fields select:focus { outline: 3px solid var(--c-amber); outline-offset: 1px; }

.book-eicr-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.book-eicr-send { width: 100%; border: 0; cursor: pointer; font-family: inherit; font-size: 17px; min-height: 50px; }
.book-eicr-send[disabled] { opacity: 0.6; cursor: wait; }

.book-eicr-after { color: #D7DEE9; font-size: 13.5px; line-height: 1.45; margin: 10px 0 0; }

/* THE SITE CARD SAYS EACH THING ONCE (Pete 2026-11-12 09:12): the plain rule
   opens the card in white, the free site visit is the quiet second action (a
   solid deep navy box with white text, brand rule of 2026-11-08), and the
   extra-circuit term is one small line under the buttons. */
.book-eicr-site-rule { color: #fff; font-size: 16px; line-height: 1.45; margin: 0 0 14px; }
.book-eicr-visit { display: block; margin-top: 10px; background: var(--c-navy-deep); color: #fff; border: 2px solid #fff; border-radius: var(--r-sm); font-weight: 700; }
.book-eicr-visit:hover { background: var(--c-navy-2); }
.book-eicr-visit:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; }
.book-eicr-per-circuit.book-eicr-site-term { margin: 14px 0 0; font-size: 13.5px; }

.book-eicr-status { margin: 10px 0 0; font-size: 15px; font-weight: 700; min-height: 0; }
.book-eicr-status:empty { display: none; }
.book-eicr-status.is-error { color: #FFD08A; }
.book-eicr-status.is-sent {
  background: var(--c-amber-soft);
  color: var(--c-navy-deep);
  border-radius: var(--r-md);
  padding: 14px 14px;
  font-size: 17px;
}

/* The three trust lines sit in the navy opening, under the one line and above
   the industrial door: one row on a wide screen, one short column on a phone
   (director 2026-11-07 16:11, cold review point 9). */
.page-head .book-eicr-opening { margin-bottom: 14px; }
.page-head .book-eicr-opening strong { color: #fff; }
/* Pete's promise, in his words, on its own line (2026-11-07 21:25). */
.book-eicr-reassure-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 720px) { .book-eicr-reassure-row { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.book-eicr-reassure-row li {
  font-size: 14px;
  line-height: 1.35;
  color: #D7DEE9;
  padding-left: 10px;
  border-left: 3px solid var(--c-amber);
}
.book-eicr-reassure-row strong { color: #fff; }

/* One line for everything else, after both doors. */
.book-eicr-reassure { padding: 22px 0 30px; background: #fff; }
.book-eicr-everything-else { margin: 0; font-size: 15.5px; color: var(--c-text); }
.book-eicr-everything-else a { color: var(--c-navy); font-weight: 700; }

/* Once a door is sent, the card shows only its heading and the thank-you, so
   nobody sends the same request twice (cold review 2026-11-07, point 5). */
.book-eicr-door.is-sent > :not(.book-eicr-door-title):not(.book-eicr-status) { display: none !important; }
.book-eicr-door.is-sent .book-eicr-status { margin-top: 14px; }

/* THE TWO WAYS TO A PRICE and THE PER-CIRCUIT LINE (Pete 2026-11-08 08:04,
   brief BA). The two ways sit in the opening, white on the navy head; the
   per-circuit line sits in each door, its terms link white and underlined so
   it reads as a link on navy. */
.page-head .book-eicr-two-ways { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.page-head .book-eicr-two-ways li { font-size: 16px; line-height: 1.4; color: #fff; padding-left: 10px; border-left: 3px solid var(--c-amber); }
.page-head .book-eicr-two-ways strong { color: var(--c-amber); }
.book-eicr-per-circuit { color: #D7DEE9; font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.book-eicr-per-circuit a { color: #fff; font-weight: 700; text-decoration: underline; }

/* THE HOW TO COUNT YOUR TRIP SWITCHES HELPER (Pete 2026-11-12): a small outlined
   button under the not-sure line that opens the two drawings on white cards. */
.book-eicr-how-to-count { margin: 4px 0 12px; }
.book-eicr-how-to-count > summary { display: inline-block; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700; color: #fff; border: 2px solid var(--c-amber); border-radius: 999px; padding: 6px 14px; }
.book-eicr-how-to-count > summary::-webkit-details-marker { display: none; }
.book-eicr-how-to-count > summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.book-eicr-how-to-count[open] > summary { background: var(--c-amber); color: var(--c-navy-deep); }
.book-eicr-how-to-count-body { margin-top: 10px; }
.book-eicr-how-to-count-body p { color: #D7DEE9; font-size: 14.5px; line-height: 1.45; margin: 0 0 10px; }
.book-eicr-how-to-count-body img { display: block; width: 100%; height: auto; background: #fff; border-radius: 10px; margin: 0 0 12px; }
.book-eicr-how-to-count > summary::after { content: ""; display: inline-block; margin-left: 8px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; vertical-align: middle; }
.book-eicr-how-to-count[open] > summary::after { border-top: 0; border-bottom: 6px solid currentColor; }
.book-eicr-how-to-count-body p.book-eicr-how-to-count-three-phase { font-weight: 700; color: #fff; margin-top: 4px; }
.book-eicr-how-to-count-next a { color: var(--c-amber); font-weight: 700; }

/* THE DAY PICKER (Pete 2026-11-15 point 12): the free days, then the free
   times on the chosen day, as thumb-sized chips in the door's own deep navy.
   A chosen chip is amber with navy text, the amber button's own pair. */
.book-eicr-day-picker { margin: 4px 0 14px; }
.book-eicr-day-picker[hidden] { display: none; }
.book-eicr-day-heading { color: #fff; font-size: 14.5px; font-weight: 700; margin: 0 0 8px; }
.book-eicr-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.book-eicr-day-chips[hidden] { display: none; }
.book-eicr-day-chip {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  background: var(--c-navy-deep);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.book-eicr-day-chip:hover { border-color: rgba(255, 255, 255, 0.6); }
.book-eicr-day-chip:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; }
.book-eicr-day-chip[aria-pressed="true"] {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-navy);
}
/* A WEEKEND DAY BY REQUEST (Pete 2026-11-15 10:54 point 31): the day, and
   "By request" under it in amber, dashed so it never reads as a free slot. */
.book-eicr-day-chip.is-by-request { border-style: dashed; text-align: left; line-height: 1.2; }
.book-eicr-day-chip-by-request { display: block; color: var(--c-amber); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.book-eicr-day-chip[aria-pressed="true"] .book-eicr-day-chip-by-request { color: var(--c-navy); }
.book-eicr-time-chips { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.book-eicr-day-chosen { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.45; margin: 0 0 8px; }
.book-eicr-day-chosen[hidden], .book-eicr-day-clear[hidden], .book-eicr-day-hint[hidden] { display: none; }
.book-eicr-day-clear {
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  color: #D7DEE9;
  font: inherit;
  font-size: 14.5px;
  text-decoration: underline;
  cursor: pointer;
}
.book-eicr-day-hint { color: #D7DEE9; font-size: 13.5px; line-height: 1.45; margin: 0; }
.book-eicr-fields label[hidden] { display: none; }
