/* Get a quote: header button, floating button, quote form extras, Contact page note. Added by tools/quote_ui.py. */

/* Header: Get a quote next to Contact us. The column was sized for one button, so let it fit both. */
.elementor-163 .elementor-element.elementor-element-5ed77fa { width: auto !important; flex: 0 0 auto; }
.elementor-163 .elementor-element.elementor-element-5ed77fa > .elementor-element-populated { padding: 0 12px !important; }
.elementor-163 .elementor-element.elementor-element-91ef4bc { width: auto; }
.ebp-quote-headbox { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; }
.ebp-quote-headbox .pt-plus-button-wrapper { flex: 0 0 auto; }
a.ebp-quote-head {
  display: inline-block; white-space: nowrap; background: #fff; color: #2B3DAD !important;
  font-family: Roboto, Arial, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2;
  padding: 10px 18px; border-radius: 3px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: background .2s, box-shadow .2s;
}
a.ebp-quote-head:hover, a.ebp-quote-head:focus-visible { background: #EAF1FF; box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* Floating button, bottom left (Mattbot sits bottom right): brand green, larger, pulses twice when the page loads.
   Green is a shade darker than the Contact us button so white text meets accessibility contrast (4.5:1+). */
a.ebp-quote-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 99990;
  background: linear-gradient(70deg, #12780B 0%, #15801E 100%); color: #fff !important;
  font-family: Roboto, Arial, sans-serif; font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: .2px;
  padding: 17px 30px; border-radius: 34px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.30);
  transition: transform .2s, box-shadow .2s, background .2s;
  animation: ebp-quote-pulse 1.6s ease-out 1s 2;
}
a.ebp-quote-float:hover, a.ebp-quote-float:focus-visible {
  background: linear-gradient(180deg, #064A07 0%, #136F1A 100%); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
@keyframes ebp-quote-pulse {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,.30), 0 0 0 0 rgba(21,128,30,.55); transform: scale(1); }
  40%  { box-shadow: 0 6px 18px rgba(0,0,0,.30), 0 0 0 14px rgba(21,128,30,0); transform: scale(1.06); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,.30), 0 0 0 0 rgba(21,128,30,0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { a.ebp-quote-float { animation: none; transition: none; } }
a.ebp-quote-head:focus-visible, a.ebp-quote-float:focus-visible { outline: 3px solid #FFB400; outline-offset: 2px; }

@media (max-width: 767px) {
  a.ebp-quote-float { left: 12px; bottom: 12px; font-size: 17px; padding: 14px 22px; }
  a.ebp-quote-head { font-size: 13px; padding: 8px 10px; }
  .ebp-quote-headbox { gap: 6px; }
  .ebp-quote-headbox .button-link-wrap { padding: 8px 10px !important; font-size: 13px !important; }
  .elementor-163 .elementor-element.elementor-element-5ed77fa > .elementor-element-populated { padding: 0 6px !important; }
}
@media print { a.ebp-quote-float { display: none; } }

/* Contact page: pointer to the quote form */
.ebp-quote-note p {
  background: #EAF2FA; border-left: 4px solid #2B3DAD; padding: 12px 16px; margin: 0 0 20px;
  font-size: 17px;
}
.ebp-quote-note a { text-decoration: underline; }

/* Quote form */
#gform_wrapper_4 { max-width: 760px; }
#gform_wrapper_4 .gfield { margin-bottom: 18px; }
#gform_wrapper_4 fieldset.gfield { border: 0; padding: 0; min-width: 0; }
#gform_wrapper_4 .ebp-quote-services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
#gform_wrapper_4 .ebp-quote-titles { display: flex; flex-wrap: wrap; gap: 8px 24px; }
/* tick boxes are drawn by the Plus Addons form CSS (span.gravity_checkbox_label / gravity_radio_label inside each label) */
#gform_wrapper_4 .gchoice { position: relative; min-height: 24px; }
#gform_wrapper_4 .gchoice label { cursor: pointer; display: block; line-height: 24px; color: inherit; }
#gform_wrapper_4 .gchoice label span { top: 0; }
#gform_wrapper_4 .gfield_error .gchoice label { color: inherit; }
#gform_wrapper_4 select, #gform_wrapper_4 input[type=text], #gform_wrapper_4 input[type=email], #gform_wrapper_4 textarea { width: 100%; }
@media (max-width: 640px) { #gform_wrapper_4 .ebp-quote-services { grid-template-columns: 1fr; } }
.ebp-quote-thanks {   /* centred and body-size, like the intro text above the form (Matt, 22 Nov 2026) */
  background: #EAF7EC; border-left: 4px solid #1DBA11; padding: 18px 20px; font-size: 16px; line-height: 1.5; max-width: 760px;
  margin: 0 auto; text-align: center;
}
#gform_wrapper_4 .ebp-quote-titles .gchoice label { white-space: nowrap; }

/* Contact page: three routes */
.ebp-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 30px; text-align: left; }
.ebp-route { background: #F5F8FC; border-radius: 6px; padding: 20px 22px; border-top: 4px solid #3C8FD8; }
.ebp-route--quote { border-top-color: #2B3DAD; background: #EAF1FF; }
.ebp-route p { margin: 0 0 10px; }
.ebp-route-title { font-size: 18px; }
a.ebp-route-btn {
  display: inline-block; background: linear-gradient(130deg, #2B3DAD 0%, #3C8FD8 100%); color: #fff !important;
  font-weight: 700; padding: 11px 22px; border-radius: 3px; text-decoration: none;
}
a.ebp-route-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,.25); }
@media (max-width: 900px) { .ebp-routes { grid-template-columns: 1fr; } }
.ebp-contact-form { max-width: 760px; margin: 0 auto; }
.ebp-nudge { margin-top: 8px; font-weight: 600; }

/* Line under the quote form on content pages */
.ebp-quote-alt { margin: 14px 0 0; font-size: 16px; text-align: center; }
.ebp-quote-alt a { text-decoration: underline; }

/* Quote form follow-up questions (shown only for the services they matter to) */
#gform_wrapper_4 .ebp-followup[hidden] { display: none !important; }
#gform_wrapper_4 .ebp-quote-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 640px) { #gform_wrapper_4 .ebp-quote-list { grid-template-columns: 1fr; } }

/* Tick boxes: the plugin shows a dark tick on UNticked boxes and a faint one on ticked boxes - make it unambiguous */
#gform_wrapper_4 .gchoice input + label span.gravity_checkbox_label,
#gform_wrapper_4 .gchoice input + label span.gravity_radio_label { background: #fff !important; border: 2px solid #8A94A6; box-sizing: border-box; line-height: 20px !important; }
#gform_wrapper_4 .gchoice input + label span.gravity_checkbox_label:before,
#gform_wrapper_4 .gchoice input + label span.gravity_radio_label:before { color: transparent !important; }
#gform_wrapper_4 .gchoice input:checked + label span.gravity_checkbox_label,
#gform_wrapper_4 .gchoice input:checked + label span.gravity_radio_label { background: #2B3DAD !important; border-color: #2B3DAD; }
#gform_wrapper_4 .gchoice input:checked + label span.gravity_checkbox_label:before,
#gform_wrapper_4 .gchoice input:checked + label span.gravity_radio_label:before { color: #fff !important; }
#gform_wrapper_4 .gchoice input:focus-visible + label span { outline: 3px solid #FFB400; outline-offset: 2px; }

/* All-inclusive package option: first, spans both columns, gently highlighted */
#gform_wrapper_4 .ebp-choice-package { grid-column: 1 / -1; background: #EAF1FF; border-left: 4px solid #2B3DAD; border-radius: 4px; padding: 10px 12px; }
#gform_wrapper_4 .ebp-choice-package input + label span.gravity_checkbox_label { top: 10px; left: 12px; }
#gform_wrapper_4 .ebp-choice-package label strong { display: block; }
#gform_wrapper_4 .ebp-choice-hint { display: block; font-size: 14px; line-height: 1.4; color: #444; margin-top: 2px; }

/* Accessibility enquiry form (form 5) */
#gform_wrapper_5 { max-width: 760px; margin: 0 auto; }
#gform_wrapper_5 .gfield { margin-bottom: 18px; }
#gform_wrapper_5 select, #gform_wrapper_5 input[type=text], #gform_wrapper_5 input[type=email], #gform_wrapper_5 textarea { width: 100%; }
