/* TEAM 24/7 enquiry forms. Palette matches team247-patient-sections.css: navy #0f172a, blue #2872fa. */

.t247-enq{padding:56px 0;background:#f4f7fb;border-top:1px solid #e2e8f0}
.t247-enq-wrap{max-width:840px;margin:0 auto;padding:0 22px}
.t247-enq .t247-enq-h2{font-size:clamp(23px,2.6vw,32px);line-height:1.15;margin:0 0 10px;color:#0f172a}
.t247-enq .t247-enq-lede{color:#4a5568;margin:0 0 26px;max-width:62ch;line-height:1.6}

.t247-enq-form{background:#fff;border:1px solid #dbe3ee;border-radius:16px;padding:26px;box-shadow:0 1px 2px rgba(15,23,42,.05)}

/* Two columns on anything wider than a phone. min-width:0 because grid children
   default to min-width:auto, which lets a long select push the row wider than
   the page and produce sideways scroll. */
.t247-enq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:4px 20px}
.t247-enq-grid>*{min-width:0}

.t247-enq-f{margin:0 0 18px;display:flex;flex-direction:column}
.t247-enq-f label{font-weight:600;color:#1f2937;margin-bottom:6px;font-size:15px}
.t247-enq-req{color:#b42318}
.t247-enq-opt{font-weight:400;color:#6b7280;font-size:13.5px}

.t247-enq-f input,
.t247-enq-f select,
.t247-enq-f textarea{
	font:inherit;font-size:16px;/* 16px stops iOS zooming the page on focus */
	min-height:48px;padding:11px 13px;
	border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;
	width:100%;box-sizing:border-box;
}
.t247-enq-f textarea{min-height:110px;resize:vertical;line-height:1.5}
.t247-enq-f input:hover,.t247-enq-f select:hover,.t247-enq-f textarea:hover{border-color:#94a3b8}
.t247-enq-f input:focus-visible,
.t247-enq-f select:focus-visible,
.t247-enq-f textarea:focus-visible,
.t247-enq-btn:focus-visible,
.t247-enq-check input:focus-visible,
.t247-enq-consent input:focus-visible{outline:3px solid #2872fa;outline-offset:2px;border-color:#2872fa}

.t247-enq-help{display:block;margin-top:6px;font-size:13.5px;color:#5b6675;line-height:1.45}
.t247-enq-help--block{margin:0 0 12px}
.t247-enq-note{margin:4px 0 20px;font-size:14px;color:#475569;line-height:1.55}

.t247-enq-set{border:1px solid #e2e8f0;border-radius:12px;padding:18px;margin:6px 0 22px;background:#fafcff}
.t247-enq-set legend{font-weight:600;color:#1f2937;padding:0 8px;font-size:15px}
.t247-enq-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
.t247-enq-checks>*{min-width:0}
.t247-enq-check{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;
	border:1px solid #dbe3ee;border-radius:10px;background:#fff;cursor:pointer;font-size:15px;color:#1f2937;line-height:1.35}
.t247-enq-check:hover{border-color:#2872fa;background:#f5f9ff}
.t247-enq-check input{width:19px;height:19px;flex:0 0 auto;accent-color:#2872fa;margin:0}

.t247-enq-consent{margin:4px 0 20px}
.t247-enq-consent label{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;color:#374151;line-height:1.5;cursor:pointer}
.t247-enq-consent input{width:19px;height:19px;flex:0 0 auto;margin:2px 0 0;accent-color:#2872fa}
.t247-enq-consent a{color:#1d4ed8}

.t247-enq-foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.t247-enq-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 30px;
	border:0;border-radius:999px;background:#2872fa;color:#fff;font:inherit;font-size:16px;font-weight:600;
	cursor:pointer;transition:background .18s ease}
.t247-enq-btn:hover{background:#1559ed}
.t247-enq-btn[disabled]{background:#94a3b8;cursor:progress}

.t247-enq-status{margin:0;font-size:14.5px;line-height:1.45}
/* #b42318 on white is 6.4:1, so an error is readable rather than merely red. */
.t247-enq-status.is-error{color:#b42318;font-weight:600}

.t247-enq-done{background:#fff;border:1px solid #86d9a8;border-left:4px solid #16a34a;border-radius:14px;
	padding:22px 24px;margin:0;color:#14532d;font-size:16px;line-height:1.6}
.t247-enq-done:focus{outline:3px solid #2872fa;outline-offset:3px}

/* Honeypot. Off-screen rather than display:none, because some bots skip hidden fields. */
.t247-enq-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media (max-width:600px){
	.t247-enq{padding:40px 0}
	.t247-enq-form{padding:20px 17px;border-radius:14px}
	.t247-enq-btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
	.t247-enq-btn{transition:none}
}

/* Dark mode.
   This site's dark theme is a manual toggle that stamps data-theme="dark" on <html>
   (see team247-darkmode-fix.php). It is NOT prefers-color-scheme, so these rules must
   not sit inside a media query or they would never fire for someone using the toggle.
   Colours come from the same tokens the rest of the site uses. */
[data-theme="dark"] .t247-enq{background:#0d1a2b;border-top-color:#1c2b40}
[data-theme="dark"] .t247-enq .t247-enq-h2{color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-enq .t247-enq-lede{color:var(--t247-ink-soft,#c4d5e8)}
[data-theme="dark"] .t247-enq-form{background:#122237;border-color:#2a3c55;box-shadow:none}
[data-theme="dark"] .t247-enq-f label{color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-enq-opt{color:#93a3b8}
[data-theme="dark"] .t247-enq-req{color:#ff9b8f}
[data-theme="dark"] .t247-enq-f input,
[data-theme="dark"] .t247-enq-f select,
[data-theme="dark"] .t247-enq-f textarea{background:#0a1626;border-color:#33445e;color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-enq-f input:hover,
[data-theme="dark"] .t247-enq-f select:hover,
[data-theme="dark"] .t247-enq-f textarea:hover{border-color:#4f6285}
[data-theme="dark"] .t247-enq-help,
[data-theme="dark"] .t247-enq-note{color:#a9b8cc}
[data-theme="dark"] .t247-enq-set{background:#0f1d30;border-color:#2a3c55}
[data-theme="dark"] .t247-enq-set legend{color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-enq-check{background:#0a1626;border-color:#33445e;color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-enq-check:hover{border-color:#5b91ff;background:#122237}
[data-theme="dark"] .t247-enq-consent label{color:var(--t247-ink-soft,#c4d5e8)}
[data-theme="dark"] .t247-enq-consent a{color:#93b4ff}
[data-theme="dark"] .t247-enq-btn{background:#2872fa}
[data-theme="dark"] .t247-enq-btn:hover{background:#4a8bff}
[data-theme="dark"] .t247-enq-btn[disabled]{background:#44536b}
/* #ff9b8f on #122237 is 7.1:1, so an error stays readable rather than merely red. */
[data-theme="dark"] .t247-enq-status.is-error{color:#ff9b8f}
[data-theme="dark"] .t247-enq-done{background:#0f2a1c;border-color:#2f6b45;border-left-color:#34d07f;color:#c6f6d5}

/* ---- Occupational Health page (/occupational-health/) ---- */
.t247-och{max-width:840px;margin:0 auto}
.t247-och-eyebrow{font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:#2872fa;font-weight:700;margin:0 0 10px}
.t247-och-lede{font-size:18px;line-height:1.62;color:#334155;margin:0 0 34px;max-width:64ch}
.t247-och h2{font-size:clamp(21px,2.3vw,27px);margin:38px 0 16px;color:#0f172a}
.t247-och-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px;margin:0 0 8px}
.t247-och-grid>*{min-width:0}
.t247-och-card{background:#f7fafd;border:1px solid #e2e8f0;border-left:3px solid #2872fa;border-radius:12px;padding:18px 20px}
.t247-och-card h3{margin:0 0 7px;font-size:16.5px;color:#0f172a}
.t247-och-card p{margin:0;font-size:15px;line-height:1.55;color:#4a5568}
.t247-och-list{margin:0;padding-left:22px}
.t247-och-list li{margin:0 0 12px;line-height:1.6;color:#3f4a5a}
.t247-och-places{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:14px}
.t247-och-places>*{min-width:0}
.t247-och-places li{background:#fff;border:1px solid #dbe3ee;border-radius:12px;padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.t247-och-places b{color:#0f172a;font-size:16px}
.t247-och-places span{color:#5b6675;font-size:14.5px;line-height:1.45}
.t247-och-units{margin:18px 0 0;font-size:14.5px;color:#5b6675;line-height:1.55}
[data-theme="dark"] .t247-och-lede{color:var(--t247-ink-soft,#c4d5e8)}
[data-theme="dark"] .t247-och-card{background:#122237;border-color:#2a3c55}
[data-theme="dark"] .t247-och-card h3{color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-och-card p,
[data-theme="dark"] .t247-och-list li,
[data-theme="dark"] .t247-och-units{color:var(--t247-ink-soft,#c4d5e8)}
[data-theme="dark"] .t247-och-places li{background:#122237;border-color:#2a3c55}
[data-theme="dark"] .t247-och-places b{color:var(--t247-ink,#eef2f7)}
[data-theme="dark"] .t247-och-places span{color:#a9b8cc}

/* ---- Employer CTA appended to the Services page ---- */
.t247-cta{margin:46px 0 0;background:#0f172a;border-radius:16px;padding:30px 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px}
.t247-cta-t{margin:0 0 6px;color:#fff;font-size:clamp(19px,2vw,24px);line-height:1.25}
.t247-cta-p{margin:0;color:#cbd5e1;font-size:15.5px;line-height:1.55;max-width:52ch}
.t247-cta-a{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border-radius:999px;background:#2872fa;color:#fff;text-decoration:none;font-weight:600;white-space:nowrap}
.t247-cta-a:hover{background:#4a8bff;color:#fff}
.t247-cta-a:focus-visible{outline:3px solid #8fb3ff;outline-offset:3px}
@media (max-width:600px){.t247-cta{padding:24px 20px}.t247-cta-a{width:100%}}
.t247-och-dl{margin:0 0 30px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.t247-och-dl a{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:#0f172a;color:#fff;text-decoration:none;font-weight:600;font-size:15px}
.t247-och-dl a:hover{background:#1e293b;color:#fff}
.t247-och-dl a:focus-visible{outline:3px solid #2872fa;outline-offset:3px}
.t247-och-dl span{color:#64748b;font-size:13.5px}
[data-theme="dark"] .t247-och-dl a{background:#2872fa}
[data-theme="dark"] .t247-och-dl a:hover{background:#4a8bff}
[data-theme="dark"] .t247-och-dl span{color:#a9b8cc}
