/* Component styles load after Bootstrap and TLC's main stylesheet. */
#tlcq-modal {
  --quote-red: var(--tlc-red, #da3935);
  --quote-deep-red: var(--tlc-red-dark, #b42f2c);
  --quote-ink: var(--tlc-black, #161b14);
  --quote-grey: #595750;
  --quote-line: #d4d0c9;
  color: var(--quote-ink);
  font-family: "PT Sans", Arial, sans-serif;
  line-height: 1.4;
}
#tlcq-modal .tlcq-tab {
  background: var(--quote-red);
  color: white;
  border-radius: 0 1.25rem 0 0;
  font: 700 1.04rem/1.2 "PT Sans", Arial, sans-serif;
  margin: 0; padding: .44rem 1.1rem .44rem .8rem;
}
.tlcq-step-count { color: var(--quote-grey); font-size: .875rem; }
#tlcq-modal .tlcq-title {
  color: var(--quote-ink); font-family: inherit; font-weight: 700;
  letter-spacing: -.035em; line-height: 1.06; padding: 0; margin: 0 0 .65rem;
}

#tlcq-modal .tlcq-hint { color: var(--quote-grey); font-family: inherit; }

#tlcq-modal .tlcq-option {
  --bs-btn-bg: #fff; --bs-btn-color: var(--quote-ink); --bs-btn-border-color: var(--quote-line);
  --bs-btn-hover-bg: #fff7f4; --bs-btn-hover-color: var(--quote-ink); --bs-btn-hover-border-color: var(--quote-deep-red);
  --bs-btn-active-bg: #fff4ef; --bs-btn-active-color: var(--quote-ink); --bs-btn-active-border-color: var(--quote-deep-red);
  --bs-btn-focus-shadow-rgb: 180,47,44; --bs-btn-border-radius: .4rem;
  font-family: inherit; font-weight: 700; white-space: normal;
}
#tlcq-modal .tlcq-home {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: .4rem; min-height: 5.35rem; padding: .65rem .15rem;
  font-size: .91rem; line-height: 1.15;
}

.tlcq-house { width: 3.75rem; height: 2.35rem; overflow: visible; stroke-linejoin: round; }
.tlcq-house .rl, .tlcq-house .l { fill: none; stroke: #49453d; stroke-width: 2; }
.tlcq-house .rl { stroke: #b42f2c; stroke-width: 3; }
.tlcq-house .w { fill: #eee6d8; stroke: #565248; stroke-width: 1.5; }
.tlcq-house .r { fill: #db6c5a; stroke: #954137; stroke-width: 1.5; }
.tlcq-house .d { fill: #fffdfa; stroke: #565248; stroke-width: 1.5; }
.tlcq-house .q { fill: #514e45; font: 700 18px Arial, sans-serif; }

#tlcq-modal { --bs-modal-width: 39rem; --bs-modal-padding: 1.5rem; }
#tlcq-modal [hidden] { display: none !important; }
#tlcq-modal .modal-header { padding: 1.15rem 1.5rem 0; }
#tlcq-modal .modal-header .btn-close { margin-bottom: .25rem; }
#tlcq-modal .modal-body { margin: 0 1.5rem; padding: 1.15rem 1.2rem 1.25rem; background: #f0eeeb; }
#tlcq-modal .modal-footer { border: 0; padding: .65rem 1.25rem; }
#tlcq-modal .progress { --bs-progress-height: .25rem; --bs-progress-bg: #d7d2ca; --bs-progress-bar-bg: var(--quote-red); }
#tlcq-modal .tlcq-title { font-size: clamp(1.65rem, 4vw, 2.05rem); float: none; }
#tlcq-modal fieldset { min-width: 0; }
#tlcq-modal .tlcq-photo { overflow: hidden; display: flex; flex-direction: column; padding: 0; margin: 0; text-align: left; }
#tlcq-modal .tlcq-photo img, #tlcq-modal .tlcq-advice { display: block; width: 100%; height: 5.2rem; object-fit: cover; }
#tlcq-modal .tlcq-advice { display: grid; place-items: center; background: #e3ded5; font-size: 2.4rem; color: #665f54; }
#tlcq-modal .tlcq-option-text { padding: .55rem .65rem .65rem; line-height: 1.2; }
#tlcq-modal .tlcq-option small { display: block; font-weight: 400; font-size: .82rem; margin-top: .2rem; color: var(--quote-grey); }
#tlcq-modal .btn-check:checked + .tlcq-option { box-shadow: inset 0 0 0 1px var(--quote-deep-red); }
#tlcq-modal .tlcq-row { position: relative; padding: .78rem 2.7rem .78rem .95rem; margin: 0; }
#tlcq-modal .tlcq-row::after { content: ""; position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid #817e76; background: white; }
#tlcq-modal .btn-check:checked + .tlcq-row::after { border: 5px solid var(--quote-deep-red); }
#tlcq-modal .tlcq-postcode { max-width: 15rem; text-transform: uppercase; }
#tlcq-modal .form-label { font-weight: 700; padding: 0; margin-bottom: .35rem; }
#tlcq-modal .form-control { min-height: 2.75rem; border-color: #a19e96; }
#tlcq-modal .form-check-label { font-weight: 400; padding: 0; margin: 0; }
#tlcq-modal .form-check-input:checked { background-color: var(--quote-deep-red); border-color: var(--quote-deep-red); }
#tlcq-modal .tlcq-review summary { width: fit-content; text-decoration: underline; text-underline-offset: .18rem; }
#tlcq-modal .tlcq-review dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .85rem; font-size: .92rem; }
#tlcq-modal .tlcq-review dd { margin: 0; }
#tlcq-modal .tlcq-primary {
  --bs-btn-bg: var(--quote-deep-red); --bs-btn-border-color: var(--quote-deep-red); --bs-btn-color: white;
  --bs-btn-hover-bg: #982722; --bs-btn-hover-border-color: #982722; --bs-btn-hover-color: white;
  --bs-btn-active-bg: #87231e; --bs-btn-active-color: white;
  --bs-btn-disabled-bg: #78615f; --bs-btn-disabled-color: white;
  font-weight: 700; min-height: 2.75rem; padding-inline: 1.5rem;
}
#tlcq-modal .tlcq-back { min-height: 2.75rem; font-weight: 700; }
#tlcq-modal :is(button,input,summary):focus-visible,
#tlcq-modal .btn-check:focus-visible + .tlcq-option { outline: 3px solid #235c83; outline-offset: 2px; }
#tlcq-modal legend:focus, #tlcq-modal h3:focus { outline: 0; }
@media (max-width: 575.98px) {

  #tlcq-modal .modal-header { padding: 1rem 1rem 0; }
  #tlcq-modal .modal-body { margin: 0 1rem; padding: 1rem; }
  #tlcq-modal .modal-footer { padding: .55rem .75rem max(.55rem, env(safe-area-inset-bottom)); }
}

/* The same colour variables work with the TLC site and a plain Bootstrap page. */
.btn.tlcq-launch {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--tlc-red-dark, #b42f2c);
  --bs-btn-border-color: var(--tlc-red-dark, #b42f2c);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #982722;
  --bs-btn-hover-border-color: #982722;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #87231e;
  --bs-btn-active-border-color: #87231e;
  min-height: 2.75rem;
  font-weight: 700;
}
