/* Smart Quote & Contact Forms — front end.
 * Colours come from Settings → Style as CSS variables (see inline CSS).
 * Selectors are scoped under .sqcf so they win over most theme styles
 * without !important. */

.sqcf,
.sqcf-page {
	--sqcf-primary: #0A3D62;
	--sqcf-primary-hover: #072c47;
	--sqcf-button-text: #ffffff;
	--sqcf-accent: #C9A227;
	--sqcf-card-bg: #ffffff;
	--sqcf-heading: #0A3D62;
	--sqcf-text: #333333;
	--sqcf-input-bg: #ffffff;
	--sqcf-input-border: #d0d7de;
	--sqcf-radius: 8px;
	--sqcf-max-width: none;
	--sqcf-error: #c0392b;
	--sqcf-success: #1e7e34;
}

.sqcf {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--sqcf-max-width);
	margin-left: auto;
	margin-right: auto;
	color: var(--sqcf-text);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.sqcf *,
.sqcf *::before,
.sqcf *::after { box-sizing: border-box; }
.sqcf [hidden] { display: none !important; }

.sqcf-injected,
.sqcf-fallback-wrap { width: 100%; min-width: 0; }
.sqcf-fallback-wrap { max-width: 1100px; margin: 40px auto; padding: 0 16px; }

/* Card */
.sqcf--card .sqcf-panel {
	background: var(--sqcf-card-bg);
	border-radius: var(--sqcf-radius);
	box-shadow: 0 10px 30px rgba(10, 30, 60, .08), 0 1px 3px rgba(10, 30, 60, .06);
	padding: 32px;
}
.sqcf--card.sqcf--tabs.sqcf--tabs-boxed .sqcf-panel { border-top-left-radius: 0; }

/* Anchor offset for sticky headers */
.sqcf-anchor { display: block; position: relative; top: -140px; visibility: hidden; height: 0; }

/* ------------------------------ Tabs ------------------------------ */
.sqcf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.sqcf .sqcf-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	border: 2px solid var(--sqcf-primary);
	background: transparent;
	color: var(--sqcf-primary);
	border-radius: 999px;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	transition: background .2s, color .2s, border-color .2s;
}
.sqcf .sqcf-tab:hover { background: rgba(0, 0, 0, .04); }
.sqcf .sqcf-tab.is-active { background: var(--sqcf-primary); color: var(--sqcf-button-text); }
.sqcf .sqcf-tab:focus-visible { outline: 3px solid var(--sqcf-accent); outline-offset: 2px; }

/* underline */
.sqcf--tabs-underline .sqcf-tabs { gap: 0; border-bottom: 2px solid var(--sqcf-input-border); }
.sqcf--tabs-underline .sqcf-tab,
.sqcf--tabs-underline .sqcf-tab:hover {
	border: 0; border-bottom: 3px solid transparent; border-radius: 0; margin-bottom: -2px; background: transparent;
}
.sqcf--tabs-underline .sqcf-tab.is-active { background: transparent; color: var(--sqcf-primary); border-bottom-color: var(--sqcf-accent); }

/* boxed */
.sqcf--tabs-boxed .sqcf-tabs { gap: 4px; margin-bottom: 0; }
.sqcf--tabs-boxed .sqcf-tab {
	border: 1px solid var(--sqcf-input-border); border-bottom: 0; border-radius: var(--sqcf-radius) var(--sqcf-radius) 0 0;
	background: rgba(0, 0, 0, .03); color: var(--sqcf-text);
}
.sqcf--tabs-boxed .sqcf-tab.is-active { background: var(--sqcf-card-bg); color: var(--sqcf-primary); border-top: 3px solid var(--sqcf-accent); }
.sqcf--tabs-boxed:not(.sqcf--card) .sqcf-panel { border: 1px solid var(--sqcf-input-border); padding: 28px; border-radius: 0 var(--sqcf-radius) var(--sqcf-radius) var(--sqcf-radius); }

/* --------------------------- Layouts --------------------------- */
.sqcf--side .sqcf-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.sqcf--stacked .sqcf-panels { display: grid; gap: 32px; }

/* --------------------------- Headings --------------------------- */
.sqcf .sqcf-heading { margin: 0 0 8px; color: var(--sqcf-heading); font-size: 26px; line-height: 1.25; }
.sqcf .sqcf-intro { margin: 0 0 22px; opacity: .85; }

/* --------------------------- Notices --------------------------- */
.sqcf-notice {
	margin: 0 0 20px; padding: 14px 16px; border-radius: var(--sqcf-radius);
	border-left: 4px solid currentColor; font-weight: 500;
}
.sqcf-notice--success { background: #e9f7ee; color: var(--sqcf-success); }
.sqcf-notice--error { background: #fdecea; color: var(--sqcf-error); }

/* ----------------------------- Grid ----------------------------- */
.sqcf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 18px; }
.sqcf-w-full { grid-column: span 6; }
.sqcf-w-half { grid-column: span 3; }
.sqcf-w-third { grid-column: span 2; }
.sqcf--side .sqcf-w-third { grid-column: span 3; }

.sqcf-field { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.sqcf .sqcf-label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--sqcf-heading); padding: 0; }
.sqcf-req { color: var(--sqcf-error); }

.sqcf .sqcf-field input[type="text"],
.sqcf .sqcf-field input[type="email"],
.sqcf .sqcf-field input[type="tel"],
.sqcf .sqcf-field input[type="number"],
.sqcf .sqcf-field input[type="date"],
.sqcf .sqcf-field select,
.sqcf .sqcf-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--sqcf-text);
	background-color: var(--sqcf-input-bg);
	border: 1px solid var(--sqcf-input-border);
	border-radius: calc(var(--sqcf-radius) * .75);
	box-shadow: none;
	height: auto;
	min-height: 46px;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.sqcf .sqcf-field select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.sqcf .sqcf-field textarea { min-height: 130px; resize: vertical; }
.sqcf .sqcf-field input:focus,
.sqcf .sqcf-field select:focus,
.sqcf .sqcf-field textarea:focus {
	outline: none;
	border-color: var(--sqcf-primary);
	box-shadow: 0 0 0 3px rgba(10, 61, 98, .15);
}
.sqcf .sqcf-field input::placeholder,
.sqcf .sqcf-field textarea::placeholder { color: #8a94a0; opacity: 1; }

.sqcf .sqcf-field input[type="file"] {
	width: 100%; padding: 10px; font-size: 14px;
	border: 1px dashed var(--sqcf-input-border); border-radius: calc(var(--sqcf-radius) * .75); background: var(--sqcf-input-bg);
}
.sqcf-help { display: block; margin-top: 6px; font-size: 13px; opacity: .7; }

/* Radio / checkbox */
.sqcf-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sqcf-fieldset legend { padding: 0; }
.sqcf-choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sqcf .sqcf-check { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 15px; cursor: pointer; margin: 0; }
.sqcf .sqcf-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--sqcf-primary); }
.sqcf-field--consent .sqcf-check a { color: var(--sqcf-primary); text-decoration: underline; }

/* Errors */
.sqcf-error { display: block; margin-top: 6px; font-size: 13px; color: var(--sqcf-error); font-weight: 500; }
.sqcf .sqcf-field.is-invalid input,
.sqcf .sqcf-field.is-invalid select,
.sqcf .sqcf-field.is-invalid textarea { border-color: var(--sqcf-error); }

/* Honeypot — invisible to people, visible to bots */
.sqcf-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------- Button ---------------------------- */
.sqcf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.sqcf .sqcf-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 14px 34px; margin: 0;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	color: var(--sqcf-button-text); background: var(--sqcf-primary);
	border: 0; border-radius: calc(var(--sqcf-radius) * .75);
	cursor: pointer; transition: background .2s, transform .1s;
	text-transform: none; letter-spacing: normal;
}
.sqcf .sqcf-submit:hover,
.sqcf .sqcf-submit:focus { background: var(--sqcf-primary-hover); color: var(--sqcf-button-text); }
.sqcf .sqcf-submit:focus-visible { outline: 3px solid var(--sqcf-accent); outline-offset: 2px; }
.sqcf .sqcf-submit:active { transform: translateY(1px); }
.sqcf .sqcf-submit[disabled] { opacity: .7; cursor: wait; }
.sqcf-submit.is-busy::before {
	content: ""; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent;
	animation: sqcf-spin .7s linear infinite;
}
@keyframes sqcf-spin { to { transform: rotate(360deg); } }
.sqcf-required-note { font-size: 13px; opacity: .7; }

/* ---------------------------- Mobile ---------------------------- */
@media (max-width: 900px) {
	.sqcf--side .sqcf-panels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.sqcf-grid { grid-template-columns: 1fr; }
	.sqcf-w-full, .sqcf-w-half, .sqcf-w-third, .sqcf--side .sqcf-w-third { grid-column: 1 / -1; }
	.sqcf--card .sqcf-panel { padding: 20px 16px; }
	.sqcf .sqcf-tab { flex: 1 1 auto; justify-content: center; padding: 11px 14px; font-size: 14px; }
	.sqcf .sqcf-submit { width: 100%; }
	.sqcf .sqcf-heading { font-size: 22px; }
}

/* ======================= Full contact page ======================= */
.sqcf-page { display: block; width: 100%; color: var(--sqcf-text); }
.sqcf-page *,
.sqcf-page *::before,
.sqcf-page *::after { box-sizing: border-box; }

.sqcf-hero { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--sqcf-primary); }
.sqcf-hero__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.2s ease; transform: scale(1.03);
}
.sqcf-hero__slide.is-active { opacity: 1; animation: sqcf-zoom 12s ease-out forwards; }
.sqcf-hero__slide--plain { background: linear-gradient(135deg, var(--sqcf-primary), var(--sqcf-primary-hover)); }
@keyframes sqcf-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.sqcf-hero__overlay { position: absolute; inset: 0; }
.sqcf-hero__content { position: relative; z-index: 2; max-width: 900px; padding: 60px 20px; text-align: center; color: #fff; }
.sqcf-hero__content h1 { margin: 0 0 12px; color: #fff; font-size: clamp(30px, 5vw, 52px); line-height: 1.15; }
.sqcf-hero__content h1::after { content: ""; display: block; width: 70px; height: 4px; margin: 16px auto 0; background: var(--sqcf-accent); border-radius: 2px; }
.sqcf-hero__content p { margin: 0; color: #fff; font-size: clamp(16px, 2vw, 20px); opacity: .92; }
@media (prefers-reduced-motion: reduce) {
	.sqcf-hero__slide, .sqcf-hero__slide.is-active { animation: none; transition: none; transform: none; }
}

.sqcf-page__content { max-width: 1200px; margin: 50px auto 0; padding: 0 20px; }

.sqcf-page__main {
	display: grid; gap: 36px; max-width: 1200px; margin: 0 auto; padding: 60px 20px 80px; align-items: start;
}
.sqcf-info-left { grid-template-columns: minmax(280px, 380px) 1fr; }
.sqcf-info-right { grid-template-columns: 1fr minmax(280px, 380px); }
.sqcf-info-right .sqcf-info { order: 2; }
.sqcf-info-top,
.sqcf-info-bottom,
.sqcf-page__main--noinfo { grid-template-columns: 1fr; }
.sqcf-info-bottom .sqcf-info { order: 2; }
.sqcf-page__forms { min-width: 0; }

.sqcf-info {
	background: var(--sqcf-primary); color: #fff; border-radius: var(--sqcf-radius);
	padding: 32px 28px; box-shadow: 0 10px 30px rgba(10, 30, 60, .12);
}
.sqcf-info h2 { margin: 0 0 22px; color: #fff; font-size: 24px; }
.sqcf-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.sqcf-info-top .sqcf-info__list,
.sqcf-info-bottom .sqcf-info__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sqcf-info__list li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 0; }
.sqcf-info .sqcf-info__icon {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .12); color: var(--sqcf-accent);
}
.sqcf-info__icon svg { width: 20px; height: 20px; fill: currentColor; }
.sqcf-info__list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sqcf-accent); margin-bottom: 2px; }
.sqcf-info__list li > div > span { display: block; line-height: 1.5; word-break: break-word; }
.sqcf-info a { color: #fff; text-decoration: none; }
.sqcf-info a:hover { text-decoration: underline; }
.sqcf-map { margin-top: 24px; border-radius: calc(var(--sqcf-radius) * .75); overflow: hidden; }
.sqcf-map iframe { display: block; width: 100%; height: 240px; border: 0; }

@media (max-width: 900px) {
	.sqcf-info-left, .sqcf-info-right { grid-template-columns: 1fr; }
	.sqcf-info-right .sqcf-info { order: 0; }
	.sqcf-page__main { padding: 40px 16px 60px; gap: 28px; }
}
