/**
 * Farizon reference form pages (aitima, test drive, contact) — layout & aesthetics.
 */

/* Page shell */
.fdp-farizon-form-page,
.page-inquiry-form .inquiry-form-wrapper,
.page-offer-form .offer-form-wrapper,
.page-testdrive-form .test-drive-form-wrapper {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

/* Offer (aitima): halve gap between hero and «Θέλω προσφορά για οχήματα» (Farizon section-py-default is 48px / 56px). */
.page-offer-form.wrapper.section-py-default {
	padding-top: 24px;
}

@media (min-width: 768px) {
	.page-offer-form.wrapper.section-py-default {
		padding-top: 28px;
	}
}

/* Kmag inquiry_new_form.css: .inquiry-form-wrapper .form-section-title { padding-top: 20px } */
.page-offer-form .inquiry-form-wrapper .form-section-model.show-model-selection > .form-section-title {
	padding-top: 10px;
}

.page-inquiry-form .form-section-title,
.page-offer-form .form-section-title,
.page-testdrive-form .form-section-title {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 1.5rem;
	color: #1a1a1a;
}

.page-inquiry-form .form-section,
.page-offer-form .form-section,
.page-testdrive-form .form-section {
	margin-bottom: 2.5rem;
}

/* Vehicle cards (reference field-model) */
.page-inquiry-form .vehicle-list .form-field-modelid,
.page-offer-form .vehicle-list .form-field-modelid,
.page-testdrive-form .vehicle-list .form-field-modelid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0;
}

.page-inquiry-form .vehicle-list .form-field-option,
.page-offer-form .vehicle-list .form-field-option,
.page-testdrive-form .vehicle-list .form-field-option {
	flex: 1 1 var(--fdp-vehicle-picker-item-basis, 320px);
	max-width: calc(var(--fdp-vehicle-picker-item-basis, 320px) + 80px);
	margin: 0;
	position: relative;
}

.page-inquiry-form .vehicle-list .form-field-option input.form-check,
.page-offer-form .vehicle-list .form-field-option input.form-check,
.page-testdrive-form .vehicle-list .form-field-option input.form-check {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.page-inquiry-form .vehicle-list .form-label,
.page-offer-form .vehicle-list .form-label,
.page-testdrive-form .vehicle-list .form-label {
	display: block;
	cursor: pointer;
	margin: 0;
	padding: 0;
}

.page-inquiry-form .field-model,
.page-offer-form .field-model,
.page-testdrive-form .field-model {
	display: block;
	border: 2px solid #e5e5e5;
	border-radius: 4px;
	padding: 1.25rem 1rem 1rem;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
}

.page-inquiry-form .form-field-option input:checked + .form-label .field-model,
.page-offer-form .form-field-option input:checked + .form-label .field-model,
.page-testdrive-form .form-field-option input:checked + .form-label .field-model {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.page-inquiry-form .field-model-image img,
.page-offer-form .field-model-image img,
.page-testdrive-form .field-model-image img,
.page-inquiry-form .new-form-wrapper .field-model-image img,
.page-offer-form .new-form-wrapper .field-model-image img,
.page-testdrive-form .new-form-wrapper .field-model-image img {
	display: block;
	max-height: var(--fdp-vehicle-img-max-h, 260px) !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 auto 0.75rem;
	object-fit: contain;
}

.page-inquiry-form .field-model-image,
.page-offer-form .field-model-image,
.page-testdrive-form .field-model-image {
	min-height: var(--fdp-vehicle-img-max-h, 260px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.page-inquiry-form .field-model-name,
.page-offer-form .field-model-name,
.page-testdrive-form .field-model-name {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #1a1a1a;
}

.page-inquiry-form .form-field-option input:checked + .form-label .field-model::before,
.page-offer-form .form-field-option input:checked + .form-label .field-model::before,
.page-testdrive-form .form-field-option input:checked + .form-label .field-model::before {
	content: "";
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 22px;
	height: 22px;
	background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	border-radius: 50%;
}

.page-inquiry-form .field-model,
.page-offer-form .field-model,
.page-testdrive-form .field-model {
	position: relative;
}

/* Representative / dealer select */
.page-inquiry-form .form-field-representative .form-select,
.page-offer-form .form-field-representative .form-select,
.page-inquiry-form .fdp-dealer-select,
.page-offer-form .fdp-dealer-select {
	appearance: none;
	background-color: #fff;
	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='%231a1a1a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: default;
	color: #1a1a1a;
}

/* Stacked contact fields */
.page-inquiry-form .form-section-info .form-section-content,
.page-offer-form .form-section-info .form-section-content,
.page-testdrive-form .form-section-info .form-section-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.page-inquiry-form .form-section-field,
.page-offer-form .form-section-field,
.page-testdrive-form .form-section-field {
	margin-bottom: 0;
}

.page-inquiry-form .new-form-wrapper form input:not(.form-check),
.page-inquiry-form .new-form-wrapper form select,
.page-inquiry-form .new-form-wrapper form textarea,
.page-offer-form .new-form-wrapper form input:not(.form-check),
.page-offer-form .new-form-wrapper form select,
.page-offer-form .new-form-wrapper form textarea,
.page-testdrive-form .new-form-wrapper form input:not(.form-check),
.page-testdrive-form .new-form-wrapper form select,
.page-testdrive-form .new-form-wrapper form textarea,
.fdp-farizon-form-page.core-web-form input:not(.form-check),
.fdp-farizon-form-page.core-web-form select,
.fdp-farizon-form-page.core-web-form textarea {
	height: 55px;
	width: 100%;
	padding: 10px 15px;
	border-radius: 2px;
	border: 1px solid #dadada;
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	color: #1a1a1a;
	background: #fff;
	box-sizing: border-box;
}

.page-inquiry-form .new-form-wrapper form textarea,
.page-offer-form .new-form-wrapper form textarea,
.page-testdrive-form .new-form-wrapper form textarea,
.fdp-farizon-form-page.core-web-form textarea {
	min-height: 140px;
	height: auto;
	resize: vertical;
}

.page-inquiry-form .new-form-wrapper form input::placeholder,
.page-inquiry-form .new-form-wrapper form textarea::placeholder,
.page-offer-form .new-form-wrapper form input::placeholder,
.page-offer-form .new-form-wrapper form textarea::placeholder {
	color: #9ca2af;
	opacity: 1;
}

/* Disclaimers */
.page-inquiry-form .form-section-disclaimers .form-field-disclaimers,
.page-offer-form .form-section-disclaimers .form-field-disclaimers {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.page-inquiry-form .form-section-disclaimers .form-field-option,
.page-offer-form .form-section-disclaimers .form-field-option {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
}

.page-inquiry-form .form-section-disclaimers .form-check,
.page-offer-form .form-section-disclaimers .form-check {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	margin-top: 0.15rem;
	flex-shrink: 0;
	accent-color: #1a1a1a;
}

.page-inquiry-form .form-section-disclaimers .form-label,
.page-offer-form .form-section-disclaimers .form-label {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #4a4a4a;
	font-weight: 400;
	cursor: pointer;
}

.page-inquiry-form .form-section-disclaimers .form-label a,
.page-offer-form .form-section-disclaimers .form-label a {
	color: inherit;
	text-decoration: underline;
}

/* Submit — black pill */
.page-inquiry-form .btn-submit,
.page-offer-form .btn-submit,
.page-testdrive-form .btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 2.5rem;
	border: none;
	border-radius: 999px;
	background-color: #1a1a1a !important;
	color: #fff !important;
	font-family: "Open Sans", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.page-inquiry-form .btn-submit:hover,
.page-offer-form .btn-submit:hover,
.page-testdrive-form .btn-submit:hover {
	background-color: #333 !important;
}

.page-inquiry-form .form-section-buttons,
.page-offer-form .form-section-buttons,
.page-testdrive-form .form-section-buttons {
	margin-top: 1rem;
	padding-top: 0.5rem;
}

/* SureForms inside offer layout */
.fdp-offer-sureforms-section .fdp-form-slot--sureforms {
	margin-top: 0;
}

.fdp-offer-form-layout .srfm-form-container {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	max-width: 100% !important;
}

.fdp-offer-form-layout .srfm-form-title {
	display: none !important;
}

/* SureForms: visible labels + full-width stacked fields (reference aitima) */
.page-offer-form .fdp-offer-sureforms-section .srfm-block-label,
.page-offer-form .fdp-offer-sureforms-section label.srfm-block-label,
.page-inquiry-form .fdp-form-slot--sureforms .srfm-block-label,
.page-testdrive-form .fdp-form-slot--sureforms .srfm-block-label,
.page-contact-form .fdp-form-slot--sureforms .srfm-block-label {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #1a1a1a !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	margin: 0 0 0.35rem !important;
	line-height: 1.35 !important;
}

.page-offer-form .fdp-offer-sureforms-section .srfm-form-container .srfm-block-single,
.page-offer-form .fdp-offer-sureforms-section .srfm-form-container [class*="srfm-block-width-"] {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* Phone field — intl-tel-input must stay visible (do not hide [class*="dropdown"] globally) */
.page-offer-form .fdp-offer-sureforms-section .srfm-phone-block,
.page-inquiry-form .fdp-form-slot--sureforms .srfm-phone-block,
.page-testdrive-form .fdp-form-slot--sureforms .srfm-phone-block,
.page-contact-form .fdp-form-slot--sureforms .srfm-phone-block {
	display: block !important;
	visibility: visible !important;
	min-width: 0;
	width: 100% !important;
}

.page-offer-form .fdp-offer-sureforms-section .srfm-phone-block .srfm-block-wrap,
.page-offer-form .fdp-offer-sureforms-section .srfm-phone-block .iti,
.page-inquiry-form .fdp-form-slot--sureforms .srfm-phone-block .iti,
.page-testdrive-form .fdp-form-slot--sureforms .srfm-phone-block .iti,
.page-contact-form .fdp-form-slot--sureforms .srfm-phone-block .iti {
	display: block !important;
	width: 100% !important;
	min-height: 55px;
	visibility: visible !important;
}

.page-offer-form .fdp-offer-sureforms-section .srfm-phone-block input[type="tel"],
.page-inquiry-form .fdp-form-slot--sureforms .srfm-phone-block input[type="tel"],
.page-testdrive-form .fdp-form-slot--sureforms .srfm-phone-block input[type="tel"],
.page-contact-form .fdp-form-slot--sureforms .srfm-phone-block input[type="tel"] {
	width: 100% !important;
	min-width: 0 !important;
	height: 55px !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

.fdp-srfm-model-field-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.page-offer-form .fdp-offer-sureforms-section .srfm-form-container input,
.page-offer-form .fdp-offer-sureforms-section .srfm-form-container textarea,
.page-offer-form .fdp-offer-sureforms-section .srfm-form-container select {
	height: 55px;
	border: 1px solid #dadada !important;
	border-radius: 2px !important;
	background: #fff !important;
	color: #1a1a1a !important;
}

.page-offer-form .fdp-offer-sureforms-section .srfm-form-container textarea {
	min-height: 140px;
	height: auto !important;
}

.page-offer-form .fdp-offer-sureforms-section .srfm-submit-btn,
.page-offer-form .fdp-offer-sureforms-section .srfm-form-container button[type="submit"] {
	display: inline-flex !important;
	min-height: 48px !important;
	padding: 0.75rem 2.5rem !important;
	border: none !important;
	border-radius: 999px !important;
	background-color: #1a1a1a !important;
	color: #fff !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	width: auto !important;
	max-width: none !important;
}

/* Test drive numbered sections */
.page-testdrive-form .wrap-section-title-number {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 400;
	margin: 0 0 1.25rem;
}

.page-testdrive-form .section-title-number {
	font-weight: 600;
	color: #1a1a1a;
}

/* Contact page form column */
.page-contact-form .contact-form-wrapper {
	max-width: 100%;
}

@media (min-width: 768px) {
	.page-inquiry-form .vehicle-list .form-field-option,
	.page-offer-form .vehicle-list .form-field-option,
	.page-testdrive-form .vehicle-list .form-field-option {
		flex: 0 1 calc(50% - 0.75rem);
	}
}

/* Test drive SureForms (same field styling as offer) */
.page-testdrive-form .fdp-test-drive-sureforms-section .srfm-form-container input,
.page-testdrive-form .fdp-test-drive-sureforms-section .srfm-form-container textarea,
.page-testdrive-form .fdp-test-drive-sureforms-section .srfm-form-container select {
	height: 55px;
	border: 1px solid #dadada !important;
	border-radius: 2px !important;
	background: #fff !important;
	color: #1a1a1a !important;
}

.page-testdrive-form .fdp-test-drive-sureforms-section .srfm-form-container textarea {
	min-height: 140px;
	height: auto !important;
}

.page-testdrive-form .fdp-test-drive-sureforms-section .srfm-submit-btn,
.page-testdrive-form .fdp-test-drive-sureforms-section .srfm-form-container button[type="submit"] {
	display: inline-flex !important;
	min-height: 48px !important;
	padding: 0.75rem 2.5rem !important;
	border: none !important;
	border-radius: 999px !important;
	background-color: #1a1a1a !important;
	color: #fff !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	width: auto !important;
	max-width: none !important;
}
