/* KAOT Care Site Fixes */

.kaotfix-hidden { display: none !important; }

/* ---------- Trust strip (replaces the demo counters) ---------- */
.kaotfix-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 24px 0;
	font-family: inherit;
}
.kaotfix-trust__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-left: 4px solid #002566;
	border-radius: 10px;
	color: #1d2724;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: box-shadow .15s ease, transform .15s ease;
}
a.kaotfix-trust__item:hover,
a.kaotfix-trust__item:focus-visible {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	transform: translateY(-1px);
}
.kaotfix-trust__item strong { font-size: 16px; line-height: 1.3; color: #1d2724; }
.kaotfix-trust__item span { font-size: 13.5px; line-height: 1.4; color: #5a6763; }

@media (max-width: 900px) { .kaotfix-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kaotfix-trust { grid-template-columns: 1fr; } }

.kaotfix-cqc-link { text-decoration: underline; }

/* ---------- Enquiry form ---------- */
.kaotfix-form-section { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.kaotfix-form-wrap {
	width: 100%;
	max-width: 760px;
	margin: 16px 0 8px;
	text-align: left;
	font-family: inherit;
}
.kaotfix-form-intro { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; }
.kaotfix-form { display: grid; gap: 14px; }
.kaotfix-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .kaotfix-row { grid-template-columns: 1fr; } }

.kaotfix-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 400; }
.kaotfix-field > span { font-size: 14px; font-weight: 600; color: inherit; }
.kaotfix-field em, .kaotfix-consent em { color: #b42318; font-style: normal; }

.kaotfix-form input[type="text"],
.kaotfix-form input[type="tel"],
.kaotfix-form input[type="email"],
.kaotfix-form select,
.kaotfix-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px; /* stops phones zooming in */
	color: #1d2724;
	background: #ffffff;
	border: 1px solid #c9cfcc;
	border-radius: 8px;
	box-shadow: none;
}
.kaotfix-form textarea { min-height: 110px; resize: vertical; }
.kaotfix-form input:focus,
.kaotfix-form select:focus,
.kaotfix-form textarea:focus {
	outline: 2px solid #002566;
	outline-offset: 1px;
	border-color: #002566;
}

.kaotfix-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.5;
	margin: 2px 0;
}
.kaotfix-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }

.is-invalid input, .is-invalid select, .is-invalid textarea,
input.is-invalid { border-color: #b42318 !important; }
.kaotfix-consent.is-invalid span { color: #b42318; }

.kaotfix-submit {
	justify-self: start;
	min-height: 50px;
	padding: 12px 30px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: #002566;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.kaotfix-submit:hover, .kaotfix-submit:focus-visible { background: #001a47; }
.kaotfix-submit[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 600px) { .kaotfix-submit { justify-self: stretch; } }

.kaotfix-form-status {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}
.kaotfix-form-status.is-ok { background: #e7f2ee; color: #001a47; border: 1px solid #b8dccf; }
.kaotfix-form-status.is-error { background: #fdecea; color: #8a1c12; border: 1px solid #f3c2bc; }

/* Honeypot: hidden from people, visible to bots */
.kaotfix-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Corrected logo ---------- */
img.kaotfix-logo { width: auto !important; max-width: 100%; height: auto !important; max-height: 96px; object-fit: contain; }
[data-elementor-type="header"] img.kaotfix-logo, header img.kaotfix-logo { max-height: 84px; }
[data-elementor-type="footer"] img.kaotfix-logo, footer img.kaotfix-logo { max-height: 120px; }
@media (max-width: 600px) { [data-elementor-type="header"] img.kaotfix-logo, header img.kaotfix-logo { max-height: 64px; } }

/* ---------- CQC line ---------- */
.kaotfix-cqc { display: inline-block; line-height: 1.5; }

/* ---------- Contact page phone numbers ---------- */
.kaotfix-numbers { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kaotfix-numbers li { margin: 0; padding: 12px 14px; background: #ffffff; border: 1px solid rgba(0, 0, 0, .08); border-left: 4px solid #002566; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; }
.kaotfix-numbers span { font-size: 13px; color: #5a6763; }
.kaotfix-numbers a { font-size: 17px; font-weight: 600; color: #002566; text-decoration: none; word-break: break-word; }
@media (max-width: 480px) { .kaotfix-numbers { grid-template-columns: 1fr; } }

/* ---------- Jobs page ---------- */
.kaotfix-jobs { max-width: 900px; margin: 40px auto; padding: 0 16px; color: #1d2724; text-align: left; box-sizing: border-box; }
.kaotfix-jobs__head h2 { margin: 0 0 10px; color: #002566; }
.kaotfix-jobs__head p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.kaotfix-jobs__steps { list-style: none; counter-reset: kstep; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kaotfix-jobs__steps li { counter-increment: kstep; position: relative; margin: 0; padding: 20px 18px 18px 18px; background: #ffffff; border: 1px solid rgba(0, 0, 0, .08); border-top: 4px solid #AC0000; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.kaotfix-jobs__steps li::before { content: counter(kstep); width: 28px; height: 28px; border-radius: 50%; background: #002566; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.kaotfix-jobs__steps strong { font-size: 16px; color: #002566; }
.kaotfix-jobs__steps span { font-size: 14.5px; line-height: 1.5; color: #42504c; }
.kaotfix-btn { display: inline-block; margin-top: 8px; padding: 12px 16px; background: #002566; color: #ffffff !important; border-radius: 8px; font-weight: 600; text-decoration: none !important; text-align: center; }
.kaotfix-btn:hover, .kaotfix-btn:focus-visible { background: #001a47; }
@media (max-width: 760px) { .kaotfix-jobs__steps { grid-template-columns: 1fr; } }

.kaotfix-app-wrap { background: #f6f8fb; border: 1px solid rgba(0, 37, 102, .12); border-radius: 12px; padding: 22px; max-width: none; box-sizing: border-box; }
.kaotfix-app-wrap h3 { margin: 0 0 14px; color: #002566; }
.kaotfix-form input[type="file"] { width: 100%; box-sizing: border-box; padding: 10px; font-size: 15px; background: #ffffff; border: 1px dashed #9aa6b8; border-radius: 8px; }
.kaotfix-field small { font-size: 13px; color: #5a6763; }
.kaotfix-app-form .kaotfix-submit { background: #002566; }
.kaotfix-app-form .kaotfix-submit:hover { background: #001a47; }
