/* ==========================================================================
   FitFlex Product Inquiry — quote form + related products carousel
   ========================================================================== */

:root {
	--ffq-surface: #131d26;
	--ffq-surface-2: #1a252f;
	--ffq-text: #fff7ed;
	--ffq-heading: #ffffff;
	--ffq-muted: rgba(255, 247, 237, 0.62);
	--ffq-line: rgba(255, 247, 237, 0.16);
	--ffq-accent: #b95b26;
}

/* --------------------------------------------------------------------------
   Enquiry form
   -------------------------------------------------------------------------- */
.ffq-wrap,
.ffq-wrap * {
	box-sizing: border-box;
}

.ffq-wrap {
	margin-top: 2rem;
	padding: 1.75rem;
	background-color: var(--ffq-surface);
	border: 1px solid var(--ffq-line);
	border-radius: 20px;
}

body:not(.elementor-page) main .ffq-wrap .ffq-title {
	margin: 0 0 0.4rem;
	font-size: 1.35rem !important;
	line-height: 1.2;
	color: var(--ffq-heading) !important;
}

body:not(.elementor-page) main .ffq-wrap .ffq-sub {
	margin: 0 0 1.5rem;
	font-size: 0.92rem;
	color: var(--ffq-muted) !important;
}

.ffq-block {
	margin-bottom: 1.4rem;
}

body:not(.elementor-page) main .ffq-wrap .ffq-heading {
	margin: 0 0 0.7rem;
	font-size: 0.75rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ffq-muted) !important;
}

.ffq-sizes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.ffq-size {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.85rem 0.9rem;
	background-color: var(--ffq-surface-2);
	border: 1px solid var(--ffq-line);
	border-radius: 14px;
}

body:not(.elementor-page) main .ffq-wrap .ffq-size > span {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ffq-muted) !important;
}

.ffq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.ffq-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ffq-field--full {
	grid-column: 1 / -1;
}

body:not(.elementor-page) main .ffq-wrap .ffq-field > span {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ffq-text) !important;
}

.ffq-wrap .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

body main .ffq-wrap input[type="text"],
body main .ffq-wrap input[type="email"],
body main .ffq-wrap input[type="tel"],
body main .ffq-wrap input[type="number"],
body main .ffq-wrap textarea {
	width: 100% !important;
	background-color: #0f1922 !important;
	color: var(--ffq-text) !important;
	border: 1px solid var(--ffq-line) !important;
	border-radius: 12px !important;
	padding: 0.65em 0.85em !important;
	font-size: 0.95rem;
}

body main .ffq-wrap input[type="number"] {
	padding: 0.5em 0.6em !important;
	text-align: center;
	font-weight: 700;
	font-size: 1.05rem;
}

body main .ffq-wrap input[readonly] {
	color: var(--ffq-muted) !important;
	cursor: default;
}

body main .ffq-wrap input:focus,
body main .ffq-wrap textarea:focus {
	outline: none;
	border-color: var(--ffq-accent) !important;
}

.ffq-actions {
	margin-top: 0.5rem;
}

body:not(.elementor-page) main .ffq-wrap input.ffq-submit[type="submit"] {
	background-color: var(--ffq-accent) !important;
	border: 1px solid var(--ffq-accent) !important;
	color: #ffffff !important;
	border-radius: 50px !important;
	padding: 0.8em 2.2em !important;
	font-weight: 700;
	cursor: pointer;
	width: auto !important;
}

body:not(.elementor-page) main .ffq-wrap input.ffq-submit[type="submit"]:hover {
	background-color: transparent !important;
	border-color: #ffffff !important;
}

.ffq-wrap .wpcf7-spinner {
	filter: invert(1);
}

body:not(.elementor-page) main .ffq-wrap .wpcf7-response-output {
	margin: 1rem 0 0 !important;
	padding: 0.8rem 1rem !important;
	border-radius: 12px !important;
	border-color: var(--ffq-accent) !important;
	color: var(--ffq-text) !important;
}

body:not(.elementor-page) main .ffq-wrap .wpcf7-not-valid-tip {
	color: #ff9d6b !important;
	font-size: 0.8rem;
}

@media (max-width: 782px) {
	.ffq-sizes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ffq-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ffq-wrap {
		padding: 1.25rem;
	}
}

/* --------------------------------------------------------------------------
   Related products carousel
   -------------------------------------------------------------------------- */
.ffc-carousel {
	position: relative;
	box-sizing: border-box;
}

.ffc-carousel.alignwide,
.ffc-carousel.alignfull {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: min(var(--wp--style--global--wide-size, 1100px), 100%) !important;
}

.ffc-carousel__nav {
	position: absolute;
	top: -3.6rem;
	right: 0;
	display: none;
	gap: 0.5rem;
	z-index: 2;
}

.ffc-carousel.is-scrollable .ffc-carousel__nav {
	display: flex;
}

body:not(.elementor-page) main .ffc-carousel__btn {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--ffq-text) !important;
	background-color: var(--ffq-surface) !important;
	border: 1px solid var(--ffq-line) !important;
	border-radius: 50% !important;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

body:not(.elementor-page) main .ffc-carousel__btn:hover {
	color: var(--ffq-accent) !important;
	border-color: var(--ffq-accent) !important;
}

.ffc-carousel .wc-block-product-template,
.ffc-carousel ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding-bottom: 0.75rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ffc-carousel .wc-block-product-template::-webkit-scrollbar,
.ffc-carousel ul.products::-webkit-scrollbar {
	display: none;
}

.ffc-carousel .wc-block-product-template > li,
.ffc-carousel ul.products > li {
	flex: 0 0 clamp(200px, 25%, 280px);
	max-width: 280px;
	margin: 0 !important;
	scroll-snap-align: start;
}

@media (max-width: 782px) {
	.ffc-carousel .wc-block-product-template > li,
	.ffc-carousel ul.products > li {
		flex: 0 0 62%;
		max-width: none;
	}

	.ffc-carousel__nav {
		top: -3.2rem;
	}
}
