/* GDS Quote Form Block — style.css */
.gds-quote-form-block {
	background-color: #ffffff;
}

.gds-quote-form-block .gds-quote-form__inner {
	max-width: 1360px;
	margin: 35px auto 0;
	padding: 0 24px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 85px;
}

/* ── Left column: editorial header ── */
.gds-quote-form__header {
	flex: 1 1 615px;
	min-width: 0;
}

.gds-quote-form__header .gds-quote-form__heading,
.gds-quote-form__header h2 {
	color: #01533e !important;
	font-size: 40px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin-top: 0 !important;
	margin-bottom: 20px !important;
}

.gds-quote-form__header .gds-quote-form__subheading,
.gds-quote-form__header p {
	color: #4d4d4f !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.556 !important;
	margin-bottom: 24px !important;
}

/* Call Now row */
.gds-quote-form__call-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.gds-quote-form__call-label {
	font-size: 16px;
	font-weight: 400;
	color: #4d4d4f;
	white-space: nowrap;
}

.gds-quote-form__call-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1px solid #01533e;
	border-radius: 4px;
	background: #ffffff;
	font-size: 16px;
	font-weight: 600;
	color: #01533e;
	text-decoration: none;
	line-height: 1.257;
	transition: background-color 0.15s, color 0.15s;
	white-space: nowrap;
}

.gds-quote-form__call-btn:hover {
	background-color: #01533e;
	color: #ffffff;
}

/* Divider */
.gds-quote-form__divider {
	border: none;
	border-top: 1px solid #d4d4d4;
	margin: 0 0 24px;
}

/* Trust badges */
.gds-quote-form__trust-row {
	display: grid;
	grid-template-columns: auto 1fr 1fr;
	column-gap: 45px;
	row-gap: 0;
	align-items: start;
}

.gds-trust-badge {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.gds-trust-badge__img {
	display: block;
	height: auto;
	width: 160px;
}

/* Trustindex widget embedded inside the trust badge — neutralise the
   theme block's default full-width alignment and vertical margins so it
   sits inline with the BBB / Financing badges. */
.gds-trust-badge--trustindex .trustindex-widget-block,
.gds-trust-badge--trustindex .wp-block-acf-trustindex-widget {
	margin: 0 !important;
	max-width: 100%;
	width: auto;
}

.gds-trust-badge--trustindex .ti-widget {
	margin: 0 !important;
	height: 50px !important;
	overflow: hidden;
}

.gds-trust-badge--trustindex .ti-widget .ti-widget-container {
	margin-bottom: 0 !important;
	height: 50px !important;
}

.gds-trust-badge--trustindex .ti-widget .ti-header {
	padding: 5px 10px !important;
	min-height: 50px;
	box-sizing: border-box;
}

.gds-trust-badge__icon {
	flex-shrink: 0;
	margin-top: 3px;
}

.gds-trust-badge span {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #4d4d4f;
}

.gds-trust-badge span strong {
	font-weight: 700;
	color: #4d4d4f;
}

/* ── Right column: form card ── */
.gds-quote-form__body {
	flex: 1 1 615px;
	min-width: 0;
}

/* White card */
.gds-quote-form__card {
	background: #ffffff;
	border: 1px solid rgba(18, 155, 72, 0.2);
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(37, 36, 36, 0.08);
	padding: 28px 30px 32px;
}

/* ── Hero photo in left column (below InnerBlocks text) ── */
.gds-quote-form__hero-img {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	margin-top: 24px;
}

.gds-quote-form__hero-img img {
	display: block;
	width: 100%;
	height: 238px;
	object-fit: cover;
	object-position: center;
}

/* No hero image — full border-radius on card */
.gds-quote-form__body:not(:has(.gds-quote-form__hero-img)) .gds-quote-form__card {
	border-radius: 10px;
}

/* Card header */
.gds-quote-form__card-header {
	margin-bottom: 20px;
}

.gds-quote-form__card-title {
	font-weight: 700;
	font-size: 24px;
	line-height: 1.333;
	color: #01533e;
	margin: 0 0 8px;
}

.gds-quote-form__card-subtitle {
	font-weight: 400;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: #4d4d4f !important;
	margin: 0 !important;
}

/* ── Form ── */
.gds-quote-form__form[hidden] {
	display: none !important;
}

.gds-quote-form__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gds-quote-form__row--two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ── Fields ── */
.gds-quote-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gds-quote-form__field > label,
.gds-field-label {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.571;
	color: #4d4d4f;
	display: block;
}

.gds-label--bold {
	font-weight: 600 !important;
}

.gds-required {
	color: #ca463d;
	margin-left: 2px;
}

/* ── Inline field validation hints ── */
.gds-field-hint {
	font-size: 12px;
	line-height: 1.4;
	margin-top: 4px;
}

.gds-field-hint--error {
	color: #ca463d;
}

.gds-quote-form__field input[aria-invalid="true"],
.gds-quote-form__field select[aria-invalid="true"] {
	border-color: #ca463d;
}

.gds-quote-form__field input[aria-invalid="true"]:focus,
.gds-quote-form__field select[aria-invalid="true"]:focus {
	border-color: #ca463d;
	box-shadow: 0 0 0 2px rgba(202, 70, 61, 0.15);
}

/* ── Inputs & select ── */
.gds-quote-form__field input[type="text"],
.gds-quote-form__field input[type="email"],
.gds-quote-form__field input[type="tel"],
.gds-quote-form__field select {
	height: 44px;
	padding: 0 11px;
	border: 1px solid #dbdddd;
	border-radius: 4px;
	font-size: 14px;
	color: #4d4d4f;
	background-color: #ffffff;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.gds-quote-form__field select {
	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 d='M1 1l5 5 5-5' stroke='%234D4D4F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 32px;
	cursor: pointer;
}

.gds-quote-form__field input:focus,
.gds-quote-form__field select:focus {
	outline: none;
	border-color: #01533e;
	box-shadow: 0 0 0 2px rgba(1, 83, 62, 0.15);
}

/* ── Door size tiles ── */
.gds-size-tiles {
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
	align-items: flex-start;
	margin-top: 2px;
}

/* Outer tile wrapper — no border, no bg */
.gds-size-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	user-select: none;
}

/* Image box — #BDD7D1 bg, #DBDDDD border */
.gds-size-tile__img-box {
	width: 52px;
	height: 40px;
	background: #bdd7d1;
	border: 1px solid #dbdddd;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s;
	overflow: hidden;
}

.gds-size-tile__img {
	width: 44px;
	height: 34px;
	object-fit: contain;
}

/* Label below the box */
.gds-size-tile__label {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.667;
	color: #4d4d4f;
	white-space: nowrap;
}

/* Custom tile (no image) — shows as a bordered box with centred text */
.gds-size-tile:not(.gds-size-tile--has-img) .gds-size-tile__label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 40px;
	border: 1px solid #dbdddd;
	border-radius: 4px;
	background: #ffffff;
	padding: 0 10px;
	font-size: 12px;
	white-space: nowrap;
	transition: border-color 0.15s;
}

/* Hidden radio */
.gds-size-tile input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

/* Selected state */
.gds-size-tile:has(input:checked) .gds-size-tile__img-box {
	border-color: #01533e;
}

.gds-size-tile:has(input:checked) .gds-size-tile__label {
	color: #01533e;
	font-weight: 600;
}

.gds-size-tile:not(.gds-size-tile--has-img):has(input:checked) .gds-size-tile__label {
	border-color: #01533e;
	background: rgba(1, 83, 62, 0.08);
}

/* Hover */
.gds-size-tile:hover:not(:has(input:checked)) .gds-size-tile__img-box {
	border-color: #6aaba0;
}

.gds-size-tile:not(.gds-size-tile--has-img):hover:not(:has(input:checked)) .gds-size-tile__label {
	border-color: #9abfb9;
}

/* ── Price tiles ── */
.gds-price-tiles {
	display: flex;
	gap: 8px;
	margin-top: 2px;
}

.gds-price-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 32px;
	padding: 0 14px;
	border: 1px solid #dbdddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	color: #4d4d4f;
	background: #ffffff;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
	user-select: none;
}

.gds-price-tile input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.gds-price-tile:has(input:checked) {
	border-color: #01533e;
	background: rgba(1, 83, 62, 0.08);
	color: #01533e;
	font-weight: 600;
}

.gds-price-tile:hover:not(:has(input:checked)) {
	border-color: #9abfb9;
}

/* ── Windows Yes/No radio ── */
.gds-radio-group {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 2px;
}

.gds-radio-option {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	color: #4d4d4f;
}

.gds-radio-option input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid #dbdddd;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	background: #ffffff;
	transition: border-color 0.15s;
}

.gds-radio-option input[type="radio"]:checked {
	border-color: #129b48;
	background: radial-gradient(circle, #129b48 38%, transparent 40%);
}

.gds-radio-option input[type="radio"]:focus-visible {
	outline: 2px solid rgba(1, 83, 62, 0.3);
	outline-offset: 2px;
}

/* ── Error ── */
.gds-quote-form__error {
	padding: 16px 24px;
	background-color: #fef2f2;
	border-left: 4px solid #f87171;
	color: #b91c1c;
}

.gds-quote-form__error-heading {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 8px;
}

.gds-quote-form__error-body {
	font-size: 0.875rem;
	margin: 0;
}

.gds-quote-form__error-phone {
	color: #01533e;
	text-decoration: underline;
}

/* ── Submit button ── */
.gds-quote-form__submit {
	display: block;
	width: 100%;
	padding: 12px 24px;
	background-color: #ca463d;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-align: center;
	margin-top: 4px;
}

.gds-quote-form__submit:hover,
.gds-quote-form__submit:focus {
	background-color: #a83830;
}

.gds-quote-form__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Disclaimer ── */
.gds-quote-form__disclaimer {
	margin: 12px 0 0;
	font-size: 12px !important;
	font-weight: 400;
	font-style: normal;
	line-height: 20px !important;
	color: #000000;
	text-align: center;
}

/* ── Thank you state ── */
.gds-quote-form__thankyou[hidden] {
	display: none !important;
}

.gds-quote-form__thankyou {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 24px;
	gap: 16px;
}

.gds-quote-form__ty-heading {
	color: #01533e;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.333;
	margin: 0;
}

.gds-quote-form__ty-body p {
	color: #4d4d4f;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

.gds-quote-form__ty-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gds-quote-form__ty-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 32px;
	border: 1px solid #01533e;
	border-radius: 6px;
	color: #01533e;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	margin-top: 8px;
	transition: background-color 0.2s, color 0.2s;
}

.gds-quote-form__ty-phone:hover {
	background-color: #01533e;
	color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 960px) {
	.gds-quote-form-block .gds-quote-form__inner {
		flex-direction: column;
		gap: 32px;
	}

	.gds-quote-form__body {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media (max-width: 540px) {
	.gds-quote-form__row--two-col {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.gds-quote-form__divider,
	.gds-quote-form__trust-row,
	.gds-quote-form__hero-img {
		display: none !important;
	}

	.gds-quote-form__header {
		flex: 0 0 auto;
	}
}
