/* Autokey Care Quotes – front end (form + chat widget). Brand: Poppins / Roboto, #D0121B, #0A0A0A, #3A3A3A. */

.akc-qf-wrap,
.akc-chat {
	--akc-primary: #D0121B;
	--akc-dark: #0A0A0A;
	--akc-grey: #3A3A3A;
	--akc-line: #d6d6d6;
	--akc-soft: #f4f4f4;
	--akc-radius: 8px;
	--akc-heading: Poppins, "Helvetica Neue", Arial, sans-serif;
	--akc-body: Roboto, "Helvetica Neue", Arial, sans-serif;
}

.akc-sr,
.akc-hp {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.akc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--akc-radius);
	font: 600 17px/1.2 var(--akc-heading); text-decoration: none !important; cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.akc-btn:hover { filter: brightness(1.08); }
.akc-btn:active { transform: translateY(1px); }
.akc-btn:focus-visible,
.akc-reply:focus-visible,
.akc-chat button:focus-visible,
.akc-chat a:focus-visible,
.akc-qf :focus-visible {
	outline: 3px solid var(--akc-dark); outline-offset: 2px;
}
.akc-btn--primary,
.akc-btn--call { background: var(--akc-primary); color: #fff !important; }
.akc-btn--call { width: 100%; min-height: 60px; font-size: 20px; }
.akc-btn[disabled] { opacity: .6; cursor: wait; }
.akc-link {
	background: none; border: 0; padding: 4px 0; color: var(--akc-grey);
	font: inherit; text-decoration: underline; cursor: pointer;
}
.akc-link:hover { color: var(--akc-dark); }

/* ---------- Form ---------- */

.akc-qf-wrap { font-family: var(--akc-body); color: var(--akc-dark); }
.akc-qf__reqnote { font-size: 14px; color: var(--akc-grey); margin: 0 0 12px; padding: 0; }
.akc-qf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.akc-qf__grid > * { grid-column: 1 / -1; min-width: 0; }
.akc-qf__grid > .akc-qf__field--half { grid-column: auto; }
@media (max-width: 640px) { .akc-qf__grid > .akc-qf__field--half { grid-column: 1 / -1; } }
.akc-qf__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.akc-qf__label { display: block; margin: 0 0 6px; padding: 0; font: 600 15px/1.3 var(--akc-heading); color: var(--akc-dark); }
.akc-req { color: var(--akc-primary); }
.akc-qf input[type=text],
.akc-qf input[type=email],
.akc-qf input[type=tel],
.akc-qf select,
.akc-qf textarea {
	display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin: 0;
	padding: 11px 14px; border: 1px solid #a9a9a9; border-radius: var(--akc-radius);
	background: #fff; color: var(--akc-dark); font: 16px/1.4 var(--akc-body);
	-webkit-appearance: none; appearance: none;
}
.akc-qf select {
	background-image: linear-gradient(45deg, transparent 50%, var(--akc-grey) 50%), linear-gradient(135deg, var(--akc-grey) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px;
}
.akc-qf input:focus, .akc-qf select:focus, .akc-qf textarea:focus { border-color: var(--akc-dark); box-shadow: 0 0 0 1px var(--akc-dark); outline: none; }
.akc-qf input[data-transform=reg] { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; background: #ffd500; border-color: #c9a800; max-width: 260px; }
.akc-qf input[data-transform=reg]::placeholder { color: #6b5a00; font-weight: 400; letter-spacing: 0; }
.akc-qf__help { margin: 6px 0 0; padding: 0; font-size: 14px; color: var(--akc-grey); }
.akc-qf__error { margin: 6px 0 0; padding: 0; color: #b0000a; font-size: 14px; font-weight: 600; }
.akc-qf__field.has-error input,
.akc-qf__field.has-error select,
.akc-qf__field.has-error textarea { border-color: #b0000a; }

/* Tap-button choices */
.akc-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.akc-choice__opt { position: relative; margin: 0; }
.akc-choice__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.akc-choice__opt span {
	display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px;
	border: 2px solid var(--akc-line); border-radius: 999px; background: #fff;
	font: 500 15px/1.2 var(--akc-heading); color: var(--akc-dark); transition: border-color .15s, background .15s;
}
.akc-choice__opt input:hover + span { border-color: var(--akc-grey); }
.akc-choice__opt input:checked + span { background: var(--akc-dark); border-color: var(--akc-dark); color: #fff; }
.akc-choice__opt input:focus-visible + span { outline: 3px solid var(--akc-primary); outline-offset: 2px; }

.akc-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.akc-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--akc-primary); }
.akc-check a { color: var(--akc-primary); }

.akc-qf input[type=file] { display: block; width: 100%; padding: 14px; border: 2px dashed #a9a9a9; border-radius: var(--akc-radius); background: var(--akc-soft); font-size: 15px; box-sizing: border-box; }
/* Vehicle location field */
.akc-qf__field--address > .akc-qf__help { margin: 0 0 12px; }
.akc-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.akc-addr > * { grid-column: 1 / -1; margin: 0; }
.akc-addr__row--town, .akc-addr__row--postcode { grid-column: auto; }
@media (max-width: 640px) { .akc-addr__row--town, .akc-addr__row--postcode { grid-column: 1 / -1; } }
.akc-addr__label, .akc-lookup__label { display: block; margin: 0 0 4px; font: 500 14px/1.3 var(--akc-heading); color: var(--akc-grey); }
.akc-lookup { position: relative; }
.akc-qf .akc-lookup__input { border: 2px solid var(--akc-dark); }
.akc-lookup__list { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #a9a9a9; border-radius: var(--akc-radius); box-shadow: 0 6px 18px rgba(0,0,0,.15); max-height: 280px; overflow: auto; }
.akc-lookup__list li { margin: 0; padding: 10px 12px; cursor: pointer; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
.akc-lookup__list li[aria-selected=true], .akc-lookup__list li:hover { background: var(--akc-soft); }
.akc-lookup__list li.attr { cursor: default; font-size: 12px; color: #6b6b6b; background: #fff; }
.akc-lookup__status, .akc-locate__status { margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--akc-grey); }
.akc-lookup__status:empty, .akc-locate__status:empty { display: none; }
.akc-btn--outline { background: #fff; color: var(--akc-dark) !important; border: 2px solid var(--akc-dark); font-size: 16px; min-height: 46px; padding: 8px 18px; }
.akc-pinned { margin: 0; padding: 8px 12px; background: #eef8ef; border-left: 4px solid #1f8a3b; border-radius: 4px; font-size: 15px; }
.akc-pinned a { color: var(--akc-dark); }
.akc-chat__attr { flex-basis: 100%; text-align: right; font-size: 11px; color: #6b6b6b; }

.akc-qf__previews { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; }
.akc-qf__previews:empty { display: none; }
.akc-qf__previews li { position: relative; width: 96px; margin: 0; padding: 0; font-size: 12px; }
.akc-qf__previews img, .akc-qf__file-icon { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--akc-soft); font-weight: 700; color: var(--akc-grey); }
.akc-qf__file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.akc-qf__file-remove { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--akc-dark); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* Stop (ASAP) panel */
.akc-stop { padding: 20px; border-radius: var(--akc-radius); background: var(--akc-dark); color: #fff; border-left: 6px solid var(--akc-primary); }
.akc-stop:focus { outline: none; }
.akc-stop__msg { margin: 0 0 16px; padding: 0; font: 600 18px/1.45 var(--akc-heading); color: #fff; }
.akc-stop__alt { margin: 14px 0 0; padding: 0; text-align: center; }
.akc-stop .akc-link { color: #fff; }
.akc-is-stopped,
.akc-is-hidden { display: none !important; }

.akc-qf__actions { margin-top: 20px; }
.akc-qf__actions[hidden] { display: none; }
.akc-qf__submit { width: 100%; max-width: 360px; }
.akc-captcha-note { margin: 14px 0 0; padding: 0; font-size: 12px; line-height: 1.45; color: var(--akc-grey); }
.akc-captcha-note[hidden] { display: none; }
.akc-captcha-note a { color: inherit; text-decoration: underline; }
/* The badge is hidden (allowed by Google when the notice above is shown) so it can't cover the chat button or the mobile bar. */
.grecaptcha-badge { visibility: hidden !important; }
.akc-qf__status { margin-top: 10px; font-size: 15px; color: var(--akc-grey); }
.akc-qf__status:empty { display: none; }
.akc-qf__success { padding: 20px; border-radius: var(--akc-radius); background: #eef8ef; border-left: 6px solid #1f8a3b; font-size: 17px; }
.akc-qf__success:focus { outline: none; }

/* ---------- Chat widget ---------- */

.akc-chat {
	--akc-offset: 0px;
	position: fixed; z-index: 1999999990; /* Above sticky headers and the admin bar, below Google's reCAPTCHA puzzle (2000000000). */ bottom: calc(20px + var(--akc-offset)); right: 20px;
	font-family: var(--akc-body); color: var(--akc-dark);
}
.akc-chat--left { right: auto; left: 20px; }
.akc-chat *, .akc-chat *::before, .akc-chat *::after { box-sizing: border-box; }

.akc-chat__launcher {
	display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
	border: 0; border-radius: 999px; background: var(--akc-primary); color: #fff;
	font: 600 16px/1 var(--akc-heading); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.akc-chat__launcher:hover { filter: brightness(1.08); }
.akc-chat.is-open .akc-chat__launcher { background: var(--akc-dark); }

.akc-chat__panel {
	position: absolute; bottom: 72px; right: 0; width: 380px; max-width: calc(100vw - 32px);
	height: 600px; max-height: calc(100vh - 120px - var(--akc-offset)); max-height: calc(100dvh - 120px - var(--akc-offset));
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.akc-chat--left .akc-chat__panel { right: auto; left: 0; }
.akc-chat__panel[hidden] { display: none; }

.akc-chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--akc-dark); color: #fff; border-bottom: 3px solid var(--akc-primary); }
.akc-chat__avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--akc-primary); font: 700 15px var(--akc-heading); }
.akc-chat__avatar img { width: 100%; height: 100%; object-fit: cover; }
.akc-chat__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.akc-chat__title { font: 600 16px/1.2 var(--akc-heading); }
.akc-chat__sub { font-size: 13px; opacity: .8; }
.akc-chat__call, .akc-chat__close {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px;
	border: 0; border-radius: 50%; background: transparent; color: #fff !important; font-size: 28px; line-height: 1; cursor: pointer; text-decoration: none;
}
.akc-chat__call { background: var(--akc-primary); width: 40px; height: 40px; flex-basis: 40px; }
.akc-chat__close:hover, .akc-chat__restart:hover { background: rgba(255,255,255,.12); }
.akc-chat__confirm { padding: 12px 14px; background: #fff7f7; border-bottom: 1px solid #f0c2c4; }
.akc-chat__confirm[hidden] { display: none; }
.akc-chat__confirm p { margin: 0 0 8px; padding: 0; font: 600 15px/1.35 var(--akc-heading); color: var(--akc-dark); }
.akc-chat__confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.akc-chat__restart {
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px;
	border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}

.akc-chat__log { flex: 1; overflow-y: auto; padding: 16px; background: var(--akc-soft); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.akc-chat__log:focus { outline: none; }
.akc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; word-wrap: break-word; animation: akc-in .2s ease-out; }
.akc-msg p { margin: 0 0 10px; padding: 0; }
.akc-msg p:last-child { margin-bottom: 0; }
.akc-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e3e3e3; border-bottom-left-radius: 4px; }
.akc-msg--user { align-self: flex-end; background: var(--akc-dark); color: #fff; border-bottom-right-radius: 4px; }
.akc-msg--error { border-color: #f0b3b6; background: #fff2f2; color: #8a0008; }
.akc-msg--stop { border-left: 4px solid var(--akc-primary); max-width: 100%; }
.akc-msg--stop .akc-btn--call { margin-top: 4px; font-size: 18px; }
.akc-msg--success { border-left: 4px solid #1f8a3b; }
.akc-msg--summary { max-width: 100%; width: 100%; }
.akc-msg__note { display: block; margin-top: 6px; font-size: 13px; color: var(--akc-grey); }
.akc-msg__note a { color: var(--akc-primary); }
.akc-msg__thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.akc-msg__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.akc-msg__file { font-size: 13px; }
@keyframes akc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.akc-summary { list-style: none; margin: 0; padding: 0; }
.akc-summary li { margin: 0; padding: 0; border-bottom: 1px solid #ececec; }
.akc-summary li:last-child { border-bottom: 0; }
.akc-summary button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 2px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.akc-summary button:hover .akc-summary__v { text-decoration: underline; }
.akc-summary__k { color: var(--akc-grey); font-size: 13px; }
.akc-summary__v { font-weight: 600; text-align: right; }
.akc-msg--summary .akc-captcha-note { margin-top: 10px; }

.akc-chat__typing { display: flex; gap: 4px; padding: 0 16px 10px; background: var(--akc-soft); }
.akc-chat__typing[hidden] { display: none; }
.akc-chat__typing span { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; animation: akc-dot 1s infinite ease-in-out; }
.akc-chat__typing span:nth-child(2) { animation-delay: .15s; }
.akc-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes akc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.akc-chat__replies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #ececec; max-height: 40%; overflow-y: auto; }
.akc-chat__replies:empty { display: none; }
.akc-chat__replies--grid { display: grid; grid-template-columns: 1fr 1fr; }
.akc-chat__replies--grid .akc-reply { justify-content: center; text-align: center; padding: 8px 10px; border-radius: 22px; line-height: 1.25; }
.akc-chat__replies--grid .akc-reply:last-child:nth-child(odd),
.akc-chat__replies--grid .akc-chat__attr { grid-column: 1 / -1; }
.akc-reply {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--akc-dark); border-radius: 999px;
	background: #fff; color: var(--akc-dark) !important; font: 500 15px/1.2 var(--akc-heading); cursor: pointer; text-decoration: none !important;
}
.akc-reply:hover { background: var(--akc-dark); color: #fff !important; }
.akc-reply--primary { background: var(--akc-primary); border-color: var(--akc-primary); color: #fff !important; }
.akc-reply--primary:hover { filter: brightness(1.08); background: var(--akc-primary); }
.akc-reply--subtle { border-color: var(--akc-line); color: var(--akc-grey) !important; }

.akc-chat__composer { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #ececec; }
.akc-chat__composer[hidden] { display: none; }
.akc-chat__input-wrap { flex: 1; min-width: 0; }
.akc-chat__input-wrap input, .akc-chat__input-wrap select, .akc-chat__input-wrap textarea {
	width: 100%; min-height: 46px; margin: 0; padding: 10px 14px; border: 1px solid #a9a9a9; border-radius: 23px;
	background: #fff; color: var(--akc-dark); font: 16px/1.3 var(--akc-body); resize: none;
}
.akc-chat__input-wrap input:focus, .akc-chat__input-wrap select:focus, .akc-chat__input-wrap textarea:focus { outline: none; border-color: var(--akc-dark); box-shadow: 0 0 0 1px var(--akc-dark); }
.akc-chat__send { min-height: 46px; padding: 0 18px; border: 0; border-radius: 23px; background: var(--akc-primary); color: #fff; font: 600 15px var(--akc-heading); cursor: pointer; }

/* Phones: full-width panel that sits above the fixed Call / Enquire bar. */
@media (max-width: 640px) {
	.akc-chat { right: 12px; bottom: calc(12px + var(--akc-offset)); }
	.akc-chat--left { left: 12px; }
	.akc-chat__launcher { min-height: 50px; padding: 0 18px 0 14px; font-size: 15px; }
	.akc-chat.is-open { left: 0; right: 0; top: 0; bottom: var(--akc-offset); }
	.akc-chat.is-open .akc-chat__launcher { display: none; }
	.akc-chat.is-open .akc-chat__panel { position: absolute; inset: 8px; width: auto; max-width: none; height: auto; max-height: none; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.akc-msg, .akc-chat__typing span { animation: none; }
	.akc-btn { transition: none; }
}
