/*!
 * Arston Property Enquiry – styles  v2.4.0 (premium)
 * Colours, fonts, spacing and the photo are set in Elementor's own controls.
 * This file covers only what Elementor has no control for.
 */

/* ---------- Frosted glass (Elementor has no backdrop-blur control) */
.arston-glass {
	-webkit-backdrop-filter: blur(22px) saturate(1.1);
	backdrop-filter: blur(22px) saturate(1.1);
}

/* ---------- Conditional questions (toggled by the helper script) */
.arston-enquiry-form .elementor-field-group.arston-cond-hidden { display: none !important; }

/* ---------- Editorial fields: a fine line, no box */
.arston-editorial .elementor-field-group .elementor-field:not([type="checkbox"]):not([type="radio"]) {
	min-height: 48px;
	padding-left: 0 !important;
	padding-right: 0 !important;
	font-size: 17px;
	box-shadow: none !important;
	transition: border-color .2s ease, border-bottom-width .2s ease;
}
.arston-editorial .elementor-field-group select.elementor-field { padding-right: 28px !important; cursor: pointer; }
.arston-editorial .elementor-select-wrapper::before { color: #0B2A4A; font-size: 12px; right: 2px; }
.arston-editorial textarea.elementor-field { min-height: 88px; padding-top: 10px !important; resize: vertical; }
.arston-editorial .elementor-field::placeholder { color: #8A9BB0; opacity: 1; }
.arston-editorial .elementor-field-group .elementor-field:focus {
	outline: none;
	border-bottom: 2px solid #1B7DE4 !important;
}
.arston-editorial .elementor-field-label { margin-bottom: 2px; }

/* ---------- Steps: "01 Contact · 02 Interest …" */
.arston-enquiry-form .e-form__indicators { margin-bottom: 30px; }
.arston-enquiry-form .e-form__indicators__indicator__label { white-space: pre; }
@media (max-width: 767px) {
	.arston-enquiry-form .e-form__indicators__indicator:not(.e-form__indicators__indicator--state-active),
	.arston-enquiry-form .e-form__indicators__indicator__separator { display: none; }
	.arston-enquiry-form .e-form__indicators { justify-content: flex-start; border-bottom: 2px solid #D5E5F7; padding-bottom: 10px; }
}

/* ---------- Buttons: navy Continue →, quiet ← Back link */
.arston-editorial .elementor-button { text-transform: none !important; letter-spacing: .01em; }
.arston-enquiry-form .e-form__buttons { gap: 14px; }
.arston-enquiry-form .e-form__buttons__wrapper__button-previous { box-shadow: none !important; }
@media (max-width: 767px) {
	.elementor-widget-form.arston-enquiry-form .e-form__buttons { flex-direction: column-reverse; flex-wrap: nowrap; }
	.elementor-widget-form.arston-enquiry-form .e-form__buttons__wrapper { flex: 0 0 auto; width: 100%; max-width: 100%; }
}

/* ---------- Next-step choices: clean rows, blue check when chosen */
.arston-editorial .elementor-field-type-radio .elementor-field-subgroup { display: flex; flex-direction: column; width: 100%; }
.arston-editorial .elementor-field-type-radio .elementor-field-option {
	display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 2px;
	border-bottom: 1px solid #D5E5F7; cursor: pointer;
}
.arston-editorial .elementor-field-type-radio .elementor-field-option label { font-size: 16px; font-weight: 500; cursor: pointer; flex: 1; color: #0B2A4A; }
.arston-editorial .elementor-field-type-radio .elementor-field-option:has(input:checked) label { font-weight: 700; }
.arston-editorial input[type="radio"] {
	-webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 0;
	border: 1.5px solid #B9CFE8; border-radius: 999px; background: #FFFFFF; cursor: pointer;
}
.arston-editorial input[type="radio"]:checked {
	border-color: #1B7DE4;
	background: #1B7DE4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.arston-editorial input[type="radio"]:focus-visible { outline: 2px solid #1B7DE4; outline-offset: 2px; }

/* ---------- Privacy consent */
.arston-editorial .elementor-field-type-acceptance .elementor-field-option { display: flex; align-items: flex-start; gap: 12px; }
.arston-editorial .elementor-field-type-acceptance > .elementor-field-label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.arston-editorial .elementor-field-type-acceptance label { font-size: 13px; line-height: 1.55; color: #3F5670; }
.arston-editorial input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: #0B2A4A; flex: 0 0 auto; }
.arston-editorial a { color: #0F5CB8; font-weight: 600; }

/* ---------- Validation */
.arston-editorial [aria-invalid="true"] { border-bottom: 2px solid #0B2A4A !important; }
.arston-inline-error, .arston-editorial .elementor-form-help-inline {
	display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px;
	color: #0B2A4A; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.arston-inline-error::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 999px; background: #AA3032; }

/* ---------- Photo blocks */
.arston-photo-block .arston-wa-link .elementor-button { padding-left: 0; padding-right: 0; }
.arston-photo-block .arston-wa-link .elementor-button-icon { font-size: 19px; }
.arston-follow .elementor-social-icon { border-width: 1px; }
.arston-enquiry-form .elementor-field-type-html:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
	.arston-enquiry-form *, .arston-guide-form * { transition: none !important; animation: none !important; }
}

/* ---------- Focus & colour refinements */
.elementor-widget-form.arston-editorial .elementor-field-group .elementor-field:not([type="checkbox"]):not([type="radio"]):focus,
.elementor-widget-form.arston-editorial .elementor-field-group select.elementor-field:focus {
	outline: none !important;
	background-color: transparent !important;
	border-bottom: 2px solid #1B7DE4 !important;
}
.elementor-widget-form.arston-editorial .elementor-field-group .elementor-select-wrapper select { padding-left: 0 !important; }
.elementor-widget-form.arston-editorial .elementor-field-type-acceptance .elementor-field-subgroup label { color: #3F5670 !important; font-weight: 400; }
.elementor-widget-form.arston-editorial .elementor-field-type-acceptance a { color: #0F5CB8 !important; }
.arston-editorial input[type="radio"]:focus { outline: none; }
.arston-editorial input[type="radio"]:focus-visible { outline: 2px solid rgba(27,125,228,0.45); outline-offset: 2px; }
.elementor-widget-form.arston-editorial .elementor-field-group .elementor-field-textual,
.elementor-widget-form.arston-editorial .elementor-field-group .elementor-field-textual:focus { box-shadow: none !important; }
.elementor-widget-form.arston-editorial .elementor-field-group .elementor-field-textual:focus {
	outline: none !important; background-color: transparent !important; border-bottom: 2px solid #1B7DE4 !important;
}

/* ---------- v2.3: tap-to-choose answers — compact rows, two columns on larger screens */
.arston-editorial .elementor-field-type-radio .elementor-field-option { padding: 13px 2px; }
@media (min-width: 768px) {
	.arston-editorial .elementor-field-type-radio .elementor-field-subgroup {
		display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px;
	}
	/* long answers stay in one column */
	.arston-editorial .elementor-field-group-home_property .elementor-field-subgroup,
	.arston-editorial .elementor-field-group-land_property .elementor-field-subgroup,
	.arston-editorial .elementor-field-group-agricultural_property .elementor-field-subgroup,
	.arston-editorial .elementor-field-group-next_step .elementor-field-subgroup,
	.arston-editorial .elementor-field-group-decision_maker .elementor-field-subgroup,
	.arston-editorial .elementor-field-group-inspection_method .elementor-field-subgroup { grid-template-columns: 1fr; }
}
.arston-offers-link .elementor-button { padding-left: 0; padding-right: 0; }

/* ---------- v2.2: contact links */
.arston-contacts .elementor-button-text { white-space: nowrap; }
.arston-next-steps ol { margin: 0 0 6px; padding-left: 20px; }
.arston-next-steps li { margin: 0 0 6px; padding-left: 4px; }
.arston-next-steps li::marker { color: #1B7DE4; font-weight: 700; }
.arston-next-steps p { margin: 0; }
.arston-editorial .elementor-field-type-acceptance + .elementor-field-type-acceptance { margin-top: -14px; }
.elementor-widget-form.arston-editorial .elementor-field-type-radio .elementor-field-subgroup label { color: #0B2A4A !important; }

/* ======================================================================
   v2.4: one question per screen (Typeform-style) — enquiry form only
   ====================================================================== */
.arston-quiz .arston-quiz-bar { display: flex; align-items: center; gap: 12px; margin: -6px 0 22px; }
.arston-quiz .arston-quiz-back {
	flex: 0 0 auto; width: 36px; height: 36px; margin-left: -8px; padding: 0; border: 0; border-radius: 999px;
	background: transparent; color: #0F5CB8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.arston-quiz .arston-quiz-back:hover { background: #EAF3FD; }
.arston-quiz .arston-quiz-back:focus-visible { outline: 2px solid #1B7DE4; outline-offset: 2px; }
.arston-quiz .arston-quiz-bar--first .arston-quiz-back { visibility: hidden; }
.arston-quiz .arston-quiz-track { flex: 1; height: 4px; border-radius: 4px; background: #D5E5F7; overflow: hidden; }
.arston-quiz .arston-quiz-meter { height: 100%; width: 4%; border-radius: 4px; background: #1B7DE4; transition: width .3s ease; }

/* The question: large when it's alone on the screen */
.elementor-widget-form.arston-quiz .arston-step-solo > .elementor-field-group > .elementor-field-label,
.elementor-widget-form.arston-quiz .arston-q {
	display: block; margin: 0 0 18px; font-family: Inter, sans-serif; font-size: 23px; line-height: 1.28;
	font-weight: 600; letter-spacing: -0.01em; color: #0B2A4A; text-transform: none;
}
.elementor-widget-form.arston-quiz .arston-q-sub { margin: -10px 0 8px; font-size: 15px; line-height: 1.5; color: #4A6380; }
@media (min-width: 768px) {
	.elementor-widget-form.arston-quiz .arston-step-solo > .elementor-field-group > .elementor-field-label,
	.elementor-widget-form.arston-quiz .arston-q { font-size: 28px; }
}

/* Answers: lettered cards (A, B, C…) */
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-subgroup {
	display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: arston-opt;
}
@media (min-width: 768px) {
	.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-subgroup { grid-template-columns: 1fr 1fr; column-gap: 12px; }
	.elementor-widget-form.arston-quiz .elementor-field-group-home_property .elementor-field-subgroup,
	.elementor-widget-form.arston-quiz .elementor-field-group-land_property .elementor-field-subgroup,
	.elementor-widget-form.arston-quiz .elementor-field-group-agricultural_property .elementor-field-subgroup,
	.elementor-widget-form.arston-quiz .elementor-field-group-next_step .elementor-field-subgroup,
	.elementor-widget-form.arston-quiz .elementor-field-group-decision_maker .elementor-field-subgroup,
	.elementor-widget-form.arston-quiz .elementor-field-group-inspection_method .elementor-field-subgroup,
	.elementor-widget-form.arston-quiz .elementor-field-group-investment_type .elementor-field-subgroup { grid-template-columns: 1fr; }
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option {
	position: relative; display: flex; align-items: stretch; margin: 0; padding: 0; counter-increment: arston-opt;
	border: 1px solid #C9DDF3; border-radius: 12px; background: #FFFFFF; transition: border-color .15s ease, background-color .15s ease;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option:hover { border-color: #1B7DE4; }
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option input[type="radio"] {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option label {
	display: flex; align-items: center; gap: 14px; flex: 1; min-height: 54px; box-sizing: border-box; padding: 10px 44px 10px 14px;
	font-size: 16px; font-weight: 500; line-height: 1.35; color: #0B2A4A !important; cursor: pointer;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option label::before {
	content: counter(arston-opt, upper-alpha); flex: 0 0 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #B9CFE8; border-radius: 6px; font-size: 12px; font-weight: 700; color: #0F5CB8; background: #FFFFFF;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option:has(input:checked) {
	border: 1.5px solid #1B7DE4; background: #EAF3FD;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option:has(input:checked) label { font-weight: 600; }
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option:has(input:checked) label::before {
	background: #1B7DE4; border-color: #1B7DE4; color: #FFFFFF;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option:has(input:checked) label::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7DE4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.elementor-widget-form.arston-quiz .elementor-field-type-radio .elementor-field-option:has(input:focus-visible) {
	outline: 2px solid rgba(27,125,228,0.45); outline-offset: 2px;
}

/* Buttons: no bottom "Back" (the arrow is at the top); on a required tap screen,
   Continue appears only once an answer is chosen (tapping already moves on). */
.elementor-widget-form.arston-quiz .e-form__buttons__wrapper.elementor-field-type-previous { display: none !important; }
.elementor-widget-form.arston-quiz .arston-step-tap-required:not(:has(input:checked)) .elementor-field-type-next { display: none !important; }
.elementor-widget-form.arston-quiz .arston-step-tap-required:not(:has(input:checked)) .elementor-field-type-radio::after {
	content: "Tap an answer to continue"; display: block; width: 100%; margin-top: 12px; font-size: 13px; color: #4A6380;
}
.elementor-widget-form.arston-quiz .e-form__buttons { margin-top: 8px; }
@media (min-width: 768px) {
	.elementor-widget-form.arston-quiz .e-form__buttons__wrapper { flex: 0 0 auto; width: auto; }
	.elementor-widget-form.arston-quiz .e-form__buttons__wrapper .elementor-button { min-width: 200px; }
}

/* v2.4.2: the honeypot spam trap stays invisible and takes no space */
.elementor-field-group-hp_website,
.elementor-form .elementor-field-type-text:has(> input[name="form_fields[hp_website]"]) { display: none !important; }

/* 2.12: line shown when a link already answered the first questions */
.arston-quiz .arston-skip-note { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; margin: -10px 0 18px; padding: 10px 14px; background: #eaf3fd; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #0b2a4a; }
.arston-quiz .arston-skip-change { background: none; border: 0; padding: 0; color: #0f5cb8; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.arston-quiz .arston-skip-change:hover, .arston-quiz .arston-skip-change:focus { color: #0b2a4a; background: none; }

/* 2.14.0 – while sending: keep the form readable, show "Sending…" on the button */
.elementor-form.arston-sending { opacity: 1 !important; }
.elementor-form.arston-sending .elementor-field-group:not(.elementor-field-type-submit):not(.e-form__buttons) { opacity: .55; transition: opacity .2s; }
.elementor-form.arston-sending [type="submit"] { position: relative; pointer-events: none; cursor: progress; }
.elementor-form.arston-sending [type="submit"] .elementor-form-spinner { display: none !important; }
.elementor-form.arston-sending [type="submit"] .elementor-button-content-wrapper,
.elementor-form.arston-sending [type="submit"] .elementor-button-text { visibility: hidden; }
.elementor-form.arston-sending [type="submit"]::after {
	content: attr(data-arston-sending); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	gap: 10px; font: inherit; color: inherit; visibility: visible;
}
.elementor-form.arston-sending [type="submit"]::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 calc(-1 * var(--arston-sending-offset, 68px));
	border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: arston-spin .7s linear infinite; z-index: 1;
}
@keyframes arston-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .elementor-form.arston-sending [type="submit"]::before { animation-duration: 2s; } }
