.office-locations { padding: 24px 0 70px; }
.contact-office-details .contact-card-item { margin-bottom: 0; }
.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.office-card { min-width: 0; padding: 28px; border: 1px solid var(--secondaryBlue); border-top: 3px solid var(--logoBlue); background: var(--whiteColor); display: flex; flex-direction: column; align-items: flex-start; }
.office-card h3 { font-size: 22px; margin-bottom: 12px; }
.office-card address, .footer-office address { font-style: normal; line-height: 1.7; overflow-wrap: anywhere; color: var(--paragraphColor); margin-bottom: 16px; }
.office-postal-code { white-space: nowrap; }
.office-map-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: auto; color: color-mix(in srgb, var(--logoBlue) 70%, var(--headingColor)); font-weight: 600; text-decoration: none; transition: color .2s ease; }
.office-link-arrow { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 17px; line-height: 1; }
.office-map-link:hover { color: var(--logoRed); }
.office-map-link:focus-visible, .footer-links-grid a:focus-visible, .quote-dialog-close:focus-visible { outline: 3px solid var(--logoBlue); outline-offset: 4px; }

/* Keep the office directory separate from the footer navigation and contact details. */
#background-map::before { opacity: .065; }
.footer-container.footer-links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-links-grid .footer-column { min-width: 0; }
.footer-links-grid .footer-widget { margin: 0; padding: 0; }
.footer-links-grid .footer-widget h2 { margin-bottom: 16px; padding: 0; font-size: 22px; line-height: 1.3; }
.footer-links-grid .footer-widget-list li { margin: 0; }
.footer-links-grid .footer-widget-list a { display: flex; align-items: center; min-height: 44px; line-height: 1.5; padding: 8px 0 8px 20px; font-size: 15px; }
.footer-links-grid .touch-content-responsive { display: grid; gap: 12px; }
.footer-links-grid .touch-content { display: flex; gap: 12px; min-width: 0; margin: 0; padding: 0; }
.footer-links-grid .touch-content .contact-icon { position: static; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; }
.footer-links-grid .touch-content a { display: flex; align-items: center; min-height: 44px; min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.footer-container.footer-links-grid--broker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-offices { padding: 0 0 48px; }
.footer-office-directory { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 48px; padding: 40px 0; border-top: 1px solid #248ccc38; border-bottom: 1px solid #248ccc38; }
.footer-offices-heading .top-title { display: block; color: var(--logoRed); font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.footer-offices-heading h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.6px; margin: 0 0 18px; }
.office-title-dot { color: var(--logoRed); }
.office-title-line { display: block; }
.footer-offices-heading p { max-width: 220px; font-size: 16px; line-height: 1.7; margin: 0; color: var(--paragraphColor); }
.office-province { min-width: 0; border-left: 1px solid #248ccc38; padding-left: 32px; }
.office-province > h3 { display: flex; align-items: center; gap: 10px; color: var(--logoBlue); font-size: 18px; font-weight: 600; margin: 0 0 24px; }
.office-pin { width: 22px; height: 26px; flex: 0 0 22px; }
.office-province-list { display: grid; gap: 24px; }
.footer-office { min-width: 0; }
.footer-office + .footer-office { padding-top: 24px; border-top: 1px solid #248ccc26; }
.footer-office h4 { font-size: 19px; line-height: 1.4; margin: 0 0 8px; }
.footer-office address { font-size: 15px; margin-bottom: 4px; }
.footer-offices .office-map-link { font-size: 15px; }

@media (max-width: 1199px) {
  .footer-container.footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-office-directory { gap: 28px; }
  .office-province { padding-left: 24px; }
}

@media (max-width: 991px) {
  .footer-office-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-offices-heading { grid-column: 1 / -1; }
  .footer-offices-heading h2 { font-size: 30px; }
  .footer-offices-heading .office-title-line { display: inline; }
  .footer-offices-heading p { max-width: none; }
  .office-province { padding-left: 0; border-left: 0; }
  .office-province + .office-province { padding-left: 28px; border-left: 1px solid #248ccc38; }
}

@media (max-width: 575px) {
  .footer-container.footer-links-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 32px; }
  .footer-links-grid .footer-widget h2 { font-size: 20px; margin-bottom: 10px; }
  .footer-offices { padding-bottom: 32px; }
  .footer-office-directory { grid-template-columns: minmax(0, 1fr); padding: 28px 0; gap: 28px; }
  .footer-offices-heading h2 { font-size: 28px; margin-bottom: 12px; }
  .office-province + .office-province { border-left: 0; padding: 28px 0 0; border-top: 1px solid #248ccc38; }
  .office-province > h3 { margin-bottom: 20px; }
}

.zoho-form-embed { width: 100%; min-width: 0; }
.zoho-form-frame { display: block; width: 100%; max-width: 100%; height: 750px; border: 0; }
.zoho-form-fallback { font-size: 14px; line-height: 1.6; margin: 8px 0 0; overflow-wrap: anywhere; }
.zoho-form-fallback a { display: inline-block; padding: 8px 0; text-decoration: underline; }
.insurance-quote-selector { min-width: 0; }
.insurance-quote-selector label { display: block; margin-bottom: 8px; }
.insurance-quote-selector select { width: 100%; max-width: 100%; min-height: 48px; font-size: 16px; padding-right: 32px; margin-bottom: 16px; text-overflow: ellipsis; }

/* Compact homepage quote, matching the original illustration and underlined fields. */
.free-quote-reference .single-free-quote-form { padding-right: 26px; }
.free-quote-reference .section-title { max-width: none; margin-bottom: 54px; }
.free-quote-reference .section-title h2 { line-height: 1.2; }
.free-quote-request { max-width: 100%; padding: 0 18px; }
.free-quote-fields { display: flex; flex-direction: column; gap: 16px; }
.free-quote-field { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0; border-bottom: 2px solid #fff; color: #828282; }
.free-quote-field--half { width: 50%; }
.free-quote-field > svg { width: 19px; height: 19px; flex: 0 0 19px; margin-left: 8px; }
.free-quote-field input, .free-quote-field select { width: 100%; min-width: 0; height: 46px; padding: 8px 3px; border: 0; border-radius: 0; background: transparent; color: #303030; font: inherit; font-size: 16px; letter-spacing: .3px; }
.free-quote-field input::placeholder { color: #777; opacity: 1; }
.free-quote-field:focus-within { border-color: var(--logoBlue); }
.free-quote-field input:focus, .free-quote-field select:focus { outline: none; }
.free-quote-field--select { position: relative; }
.free-quote-field--select select { appearance: none; padding: 8px 28px 8px 8px; text-overflow: ellipsis; }
.free-quote-field--select select:invalid { color: #777; }
.free-quote-field--select > svg { position: absolute; right: 8px; margin: 0; pointer-events: none; color: #111; }
.free-quote-budget { margin-top: 20px; padding: 0 12px; }
.free-quote-budget > label { display: block; margin: 0 0 38px -12px; color: #111; font-size: 17px; }
.free-quote-range { position: relative; height: 28px; }
.free-quote-range input { appearance: none; -webkit-appearance: none; position: absolute; top: -17px; display: block; width: 100%; height: 44px; margin: 0; border: 0; border-radius: 10px; background: linear-gradient(to right, #087fc1 0 var(--budget-position), #fff var(--budget-position) 100%) center / 100% 10px no-repeat; cursor: pointer; }
.free-quote-range input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border: 3px solid #087fc1; border-radius: 50%; background: #fff; }
.free-quote-range input::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #087fc1; border-radius: 50%; background: #fff; }
.free-quote-range input:focus-visible { outline: 3px solid #087fc1; outline-offset: 8px; }
.free-quote-budget-value { position: absolute; bottom: 46px; left: clamp(22px, var(--budget-position), calc(100% - 22px)); transform: translateX(-50%); min-width: 42px; padding: 1px 6px; border: 1px solid #111; border-radius: 3px; background: #fff; color: #111; text-align: center; font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.free-quote-budget-value::after { position: absolute; content: ''; top: 100%; left: calc(50% - 4px); border: 4px solid transparent; border-top-color: #111; }
.free-quote-budget-limits { display: flex; justify-content: space-between; gap: 12px; color: #111; font-size: 13px; line-height: 1.5; letter-spacing: 1px; }
.free-quote-budget-limits span::before { content: ''; display: block; height: 10px; border-left: 1px solid #111; margin-bottom: 3px; }
.free-quote-budget-limits span:last-child { text-align: right; }
.free-quote-budget-limits span:last-child::before { border-left: 0; border-right: 1px solid #111; }
.free-quote-submit { margin-top: 32px; text-align: center; }
.free-quote-submit button { min-height: 48px; padding: 11px 36px; border: 1px solid #087fc1; border-radius: 40px; background: var(--logoBlue, #248ccc); color: #fff; font-size: 16px; font-weight: 500; letter-spacing: .3px; cursor: pointer; }
.free-quote-submit button:hover { background: #0875b2; }
.free-quote-submit button:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
.free-quote-error { margin-top: 16px; color: #b51620; }
.website-contact-form { width: 100%; min-width: 0; }
.website-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.website-contact-field { min-width: 0; margin-bottom: 20px; }
.website-contact-field label { display: block; margin-bottom: 8px; color: var(--headingColor); font-weight: 500; }
.website-contact-field label span { color: var(--logoRed); }
.website-contact-field input, .website-contact-field textarea, .website-contact-field select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #c8d5df; border-radius: 4px; background: #fff; color: #222; font: inherit; font-size: 16px; }
.website-contact-field textarea { resize: vertical; }
.website-contact-field input:focus-visible, .website-contact-field textarea:focus-visible, .website-contact-field select:focus-visible { outline: 2px solid var(--logoBlue); outline-offset: 2px; }
.website-contact-field small { display: block; margin-top: 6px; color: #595959; }
.website-contact-submit { min-height: 48px; padding: 12px 28px; border: 1px solid var(--logoBlue); border-radius: 30px; background: var(--logoBlue); color: #fff; font-weight: 500; }
.website-contact-submit:hover { background: #0875b2; }
.website-contact-submit:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
.free-quote-reference .free-quote-three-shape-2 { right: 0; }
.quote-guide-trigger { position: relative; display: inline-block; width: 85px; height: 85px; padding: 0; border: 0; border-radius: 50%; background: var(--mainColor); color: #fff; font-size: 45px; line-height: 97px; cursor: pointer; }
.quote-guide-trigger::before, .quote-guide-trigger::after { content: ''; position: absolute; border: 1px solid var(--mainColor); border-radius: 50%; pointer-events: none; }
.quote-guide-trigger::before { inset: -13.5px; }
.quote-guide-trigger::after { inset: -5.5px; }
.quote-guide-trigger:hover { background: var(--logoRed); }
.quote-guide-trigger:focus-visible { outline: 3px solid var(--logoBlue); outline-offset: 16px; }
.quote-guide-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 38px; border: 0; border-radius: 18px; color: var(--headingColor); background: #fff; box-shadow: 0 24px 80px #0004; overflow-y: auto; }
.quote-guide-dialog::backdrop { background: #132f49b3; }
.quote-guide-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #333; font-size: 30px; line-height: 1; }
.quote-guide-close:focus-visible { outline: 2px solid var(--logoBlue); outline-offset: -5px; }
.quote-guide-eyebrow { margin: 0 36px 10px 0; color: var(--logoRed); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; }
.quote-guide-dialog h2 { margin: 0 0 26px; font-size: 30px; line-height: 1.2; }
.quote-guide-steps { display: grid; gap: 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.quote-guide-steps li { display: flex; align-items: flex-start; gap: 16px; }
.quote-guide-steps li > span { flex: 0 0 40px; padding: 8px 0; border-radius: 10px; background: #edf6fc; color: var(--logoBlue); text-align: center; font-weight: 600; }
.quote-guide-steps h3 { margin: 0 0 6px; font-size: 18px; }
.quote-guide-steps p { margin: 0; color: #595959; font-size: 15px; line-height: 1.6; }

@media (max-width: 1199px) {
  .free-quote-field--half { width: 70%; }
}
@media (max-width: 991px) {
  .free-quote-reference .single-free-quote-form { padding-right: 0; }
  .free-quote-reference .section-title { margin-bottom: 34px; }
  .free-quote-request { padding: 0; }
  .free-quote-reference .free-quote-image-three { max-width: 560px; margin: 48px auto 0; }
}
@media (max-width: 575px) {
  .quote-guide-dialog { padding: 32px 22px 24px; }
  .website-contact-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .free-quote-field--half { width: 100%; }
  .free-quote-fields { gap: 12px; }
  .free-quote-reference .single-free-quote-form { padding-left: 0; }
  .free-quote-reference .section-title h2 { font-size: 32px; }
  .free-quote-budget { padding: 0 10px; }
  .free-quote-budget > label { margin-left: -10px; }
  .free-quote-submit { margin-top: 28px; }
  .free-quote-submit button { width: min(100%, 260px); }
}

.quote-dialog { width: min(750px, calc(100% - 32px)); height: min(900px, calc(100vh - 32px)); height: min(900px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 20px 50px #0005; overflow: hidden; }
.quote-dialog::backdrop { background: #000b; }
.quote-dialog-layout { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.quote-dialog-header { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eee; background: #f8f9fa; }
.quote-dialog-header h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; color: #097bc7; }
.quote-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font-size: 30px; line-height: 1; background: #eaf0f5; color: #243746; border: 0; border-radius: 8px; cursor: pointer; }
.quote-dialog-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 12px; }
.quote-dialog-body .zoho-form-embed { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.quote-dialog-body .zoho-form-frame { flex: 1; height: 100%; min-height: 0; }
.quote-dialog-body .zoho-form-fallback { flex: 0 0 auto; }

@media (max-width: 991px) {
  .mean-container a.meanmenu-reveal { min-width: 44px; min-height: 44px; box-sizing: border-box; }
}

@media (max-width: 767px) {
  .office-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .office-card { padding: 22px; }
  .office-locations { padding-bottom: 40px; }
  .single-free-quote-form.quote-form-three, .contact-form { padding-left: 10px; padding-right: 10px; }
  .zoho-form-frame { height: 80svh; min-height: 600px; }
  .quote-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 8px; }
  .quote-dialog-header { padding: 8px 10px; }
  .quote-dialog-header h2 { font-size: 17px; }
  .quote-dialog-body { padding: 0 4px 4px; }
  .quote-dialog-body .zoho-form-fallback { padding: 0 8px; }
  .contact-card a { overflow-wrap: anywhere; }
}
