/* John Allcock – boiler quote request tool */
.jaq-lock, .jaq-lock body { overflow: hidden; }

/* Start panel (on the page) */
.jaq-start { background: var(--navy, #1B2336); color: #C9CED8; padding: clamp(36px, 6vw, 64px); text-align: center; }
.jaq-start__title { color: #fff; margin: 0 0 .4em; }
.jaq-start__text { max-width: 600px; margin: 0 auto 28px; font-size: 1.05rem; }
.jaq-start__btn { display: inline-flex; align-items: center; gap: 14px; padding: 20px 44px; border: 0; background: var(--orange, #FF5316); color: #fff; font: 700 1.2rem var(--head, sans-serif); cursor: pointer; transition: background .2s, color .2s; }
.jaq-start__btn span { font-size: 1.6rem; line-height: 1; }
.jaq-start__btn:hover { background: #fff; color: var(--orange, #FF5316); }
.jaq-start__note { margin: 18px 0 0; font-size: .9rem; }
.jaq-start__note a { color: #fff; }

/* Overlay */
.jaq { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: #F5F6F8; font-family: var(--body, Arial, sans-serif); color: #4A5160; }
.jaq[hidden] { display: none; }
.jaq__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px clamp(14px, 4vw, 40px); background: #fff; }
.jaq__close { justify-self: start; border: 1px solid #E6E8EC; background: #fff; padding: 9px 18px; font: 500 .9rem var(--head, sans-serif); color: #1B2336; cursor: pointer; }
.jaq__close:hover { border-color: #FF5316; color: #FF5316; }
.jaq__logo { height: 42px; width: auto; }
.jaq__call { justify-self: end; display: flex; flex-direction: column; text-align: right; line-height: 1.2; color: #1B2336; text-decoration: none; }
.jaq__call span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #7A8191; }
.jaq__call strong { font: 700 1.15rem var(--head, sans-serif); color: #1B2336; }
.jaq__call:hover strong { color: #FF5316; }
@media (max-width: 600px) { .jaq__logo { height: 30px; } .jaq__call span { display: none; } .jaq__call strong { font-size: .95rem; } }

.jaq__progress { height: 4px; background: #E6E8EC; }
.jaq__progress span { display: block; height: 100%; width: 0; background: #FF5316; transition: width .35s ease; }

.jaq__body { flex: 1; overflow-y: auto; outline: none; padding: clamp(28px, 6vh, 64px) 16px 120px; }
.jaq__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.jaq__inner--form { max-width: 720px; text-align: left; }
.jaq__step { margin: 0 0 8px; font: 700 .78rem var(--head, sans-serif); text-transform: uppercase; letter-spacing: .12em; color: #1FAEEA; }
.jaq__inner--form .jaq__step, .jaq__inner--form .jaq__title, .jaq__inner--form .jaq__intro { text-align: center; }
.jaq__title { margin: 0 0 10px; font: 700 clamp(1.5rem, 3.2vw, 2.2rem)/1.2 var(--head, sans-serif); color: #1B2336; outline: none; }
.jaq__intro { max-width: 560px; margin: 0 auto 8px; color: #7A8191; }

/* Answer tiles */
.jaq__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 34px auto 0; max-width: 900px; }
@media (min-width: 700px) {
	.jaq__tiles--2 { grid-template-columns: repeat(2, 200px); justify-content: center; }
	.jaq__tiles--3 { grid-template-columns: repeat(3, 190px); justify-content: center; }
	.jaq__tiles--4 { grid-template-columns: repeat(4, 180px); justify-content: center; }
	.jaq__tiles--5 { grid-template-columns: repeat(5, 1fr); }
}
.jaq-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 150px; padding: 22px 12px 18px; background: #fff; border: 2px solid #fff; border-bottom: 3px solid #E6E8EC; color: #FF5316; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.jaq-tile:hover { border-color: #FFD3C2; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(27,35,54,.08); }
.jaq-tile:focus-visible { outline: 3px solid #1FAEEA; outline-offset: 2px; }
.jaq-tile.is-selected { border-color: #FF5316; background: #FFF5F1; }
.jaq-tile.is-selected::after { content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: #FF5316 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/14px no-repeat; }
.jaq-tile__icon { width: 64px; height: 64px; }
.jaq-tile__label { font: 700 1.02rem var(--head, sans-serif); color: #1B2336; }

/* Contact form */
.jaq-form { margin-top: 30px; background: #fff; padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.jaq-form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .jaq-form__row { grid-template-columns: 1fr 1fr; } .jaq-form__row--pc { grid-template-columns: 180px 1fr; } }
.jaq-field { display: block; }
.jaq-field span { display: block; margin-bottom: 6px; font: 700 .88rem var(--head, sans-serif); color: #1B2336; }
.jaq-field input, .jaq-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #E6E8EC; background: #F5F6F8; font: 400 1rem var(--body, Arial, sans-serif); color: #1B2336; border-radius: 0; }
.jaq-field textarea { min-height: 90px; resize: vertical; }
.jaq-field input:focus, .jaq-field textarea:focus { outline: none; border-color: #FF5316; background: #fff; }
.jaq-field.is-invalid input { border-color: #d32f2f; background: #fff6f6; }
.jaq-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.jaq-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: #FF5316; flex: none; }
.jaq-consent.is-invalid span { color: #d32f2f; }
.jaq-consent a { color: #FF5316; }
.jaq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jaq-form__error { margin: 0; padding: 12px 14px; background: #fff6f6; border-left: 3px solid #d32f2f; color: #b71c1c; font-size: .92rem; }
.jaq-form__submit { justify-self: start; padding: 17px 40px; border: 0; background: #FF5316; color: #fff; font: 700 1.05rem var(--head, sans-serif); cursor: pointer; transition: background .2s; }
.jaq-form__submit:hover { background: #1B2336; }
.jaq-form__submit:disabled { opacity: .6; cursor: wait; }

/* Thank you */
.jaq__inner--done { max-width: 560px; }
.jaq__tick { width: 80px; height: 80px; margin: 10px auto 18px; display: block; }
.jaq__inner--done .jaq-form__submit { margin-top: 18px; }

/* Answers bar */
.jaq__answers { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; background: #1B2336; color: #fff; box-shadow: 0 14px 30px rgba(27,35,54,.25); transition: opacity .2s, transform .2s; }
.jaq__answers.is-empty { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.jaq__back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.jaq__back:hover:not(:disabled) { background: #FF5316; }
.jaq__back:disabled { opacity: .35; cursor: default; }
.jaq__chips { flex: 1; min-width: 0; line-height: 1.3; }
.jaq__chips-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #8F9AB0; }
.jaq__chips-list { display: block; font: 500 .92rem var(--head, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jaq__restart { flex: none; border: 0; background: none; color: #fff; font: 500 .85rem var(--head, sans-serif); padding: 10px 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.jaq__restart:hover { color: #FF5316; }
/* On the details step the answers bar sits below the form instead of over it */
.jaq.is-form .jaq__answers { position: static; transform: none; margin: 0 auto 14px; flex: none; }
.jaq.is-form .jaq__body { padding-bottom: 40px; }
.jaq__call strong { white-space: nowrap; }
@media (max-width: 600px) { .jaq__head { grid-template-columns: auto 1fr auto; } .jaq__logo { justify-self: center; } }

/* "How can we help?" type tiles */
.jaq__tiles--types { max-width: 900px; }
@media (min-width: 700px) { .jaq__tiles--types.jaq__tiles--4 { grid-template-columns: repeat(4, 1fr); } }
.jaq-tile__sub { font-size: .82rem; color: #7A8191; margin-top: -6px; }
.jaq__tiles--types .jaq-tile { min-height: 180px; }

/* Contact page: quick-start buttons */
.jaq-quick { display: grid; gap: 12px; }
@media (min-width: 600px) { .jaq-quick { grid-template-columns: 1fr 1fr; } }
.jaq-quick button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; background: #fff; border: 1px solid #E6E8EC; border-left: 4px solid #FF5316; text-align: left; cursor: pointer; color: #FF5316; transition: box-shadow .2s, transform .2s; }
.jaq-quick button:hover { box-shadow: 0 12px 24px rgba(27,35,54,.1); transform: translateY(-2px); }
.jaq-quick svg { width: 40px; height: 40px; flex: none; }
.jaq-quick strong { display: block; font: 700 1.02rem var(--head, sans-serif); color: #1B2336; }
.jaq-quick small { display: block; font-size: .85rem; color: #7A8191; }
/* 5 options on the first screen; 8 tiles for "which service" */
@media (min-width: 700px) {
	.jaq__tiles--types.jaq__tiles--5 { grid-template-columns: repeat(5, 1fr); max-width: 1000px; }
	.jaq__tiles--8 { grid-template-columns: repeat(4, 1fr); max-width: 860px; }
}
@media (min-width: 600px) { .jaq-quick button:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Cloudflare Turnstile */
.jaq-turnstile { min-height: 65px; }
.jaq-turnstile iframe { max-width: 100%; }
