/**
 * Finewerk Contact Form
 *
 * Scoped, BEM-style styles for the contact split section: media card with
 * photo, heading, intro and frosted testimonial on the left, two-column
 * request form on the right. Submission states come from the shared
 * forms.css; everything visual lives here. All custom properties are
 * namespaced with --fw-cf- to avoid collisions.
 */

/* ------------------------------------------------------------------
 * Typography defaults (see assets/css/fonts.css)
 *
 * Hubot Sans for headings/titles/stat numbers, Archivo for everything
 * else. Declared at single-class specificity — the tag group through a
 * zero-specificity :where() — so an explicit Elementor Typography
 * control (which Elementor writes at element-id specificity) always
 * overrides it. No !important anywhere.
 * ---------------------------------------------------------------- */

.finewerk-contact-form {
	font-family: var(--fw-font-body);
}

.finewerk-contact-form :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--fw-font-title);
}

/* Form controls do not inherit the document font: the UA sheet gives
   button/input/select/textarea their own `font: 400 13.33px Arial`.
   Opt them back into the component's face. */
.finewerk-contact-form :where(button, input, select, textarea, optgroup) {
	font-family: inherit;
}

.finewerk-contact-form {
	--fw-cf-columns-gap: 48px;
	--fw-cf-card-width: 40%;
	--fw-cf-row-gap: 22px;
	--fw-cf-column-gap: 20px;
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 40px;
	background: linear-gradient(135deg, #15271F 0%, #24382C 55%, #5F8467 100%);
	border-radius: 28px;
	/* Neutral surfaces for the shared form status card on this dark panel. */
	--fw-form-border: rgba(255, 255, 255, 0.35);
	--fw-form-color: #FFFFFF;
	--fw-form-success-bg: rgba(255, 255, 255, 0.10);
	--fw-form-error-bg: rgba(197, 48, 48, 0.22);
}

.finewerk-contact-form__inner {
	display: flex;
	align-items: stretch;
	gap: var(--fw-cf-columns-gap);
}

/* ---------- Media card ---------- */

.finewerk-contact-form__card {
	position: relative;
	flex: 0 0 var(--fw-cf-card-width);
	display: flex;
	box-sizing: border-box;
	min-width: 0;
	min-height: 480px;
	padding: 40px;
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
}

.finewerk-contact-form__card-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.finewerk-contact-form__card-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(16, 28, 22, 0.55);
	z-index: -1;
}

.finewerk-contact-form__card-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.finewerk-contact-form__heading {
	margin: 0 0 18px;
	color: #FFFFFF;
	font-family: var(--fw-font-title);
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.finewerk-contact-form__intro {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 16px;
	line-height: 1.6;
}

.finewerk-contact-form__intro strong {
	color: #FFFFFF;
	font-weight: 500;
}

/* ---------- Testimonial card ---------- */

/*
 * The testimonial is the last item in the card's content column, so the auto
 * top margin eats whatever vertical space is left and parks it flush against
 * the bottom of the card. `flex: 0 0 auto` keeps that space from ever being
 * handed to the box itself: it neither grows into the free height nor shrinks,
 * so its height is only ever the sum of its own content. No height or
 * min-height is set — `min-height: auto` (the flex default) is what stops the
 * content from being squashed, and overriding it would do harm, not good.
 */
.finewerk-contact-form__testimonial {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
	box-sizing: border-box;
	flex: 0 0 auto;
	height: auto;
	margin: auto 0 0;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.10);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
}

.finewerk-contact-form__testimonial-header {
	display: flex;
	align-items: center;
	column-gap: 12px;
	margin: 0;
}

.finewerk-contact-form__testimonial-avatar {
	flex: 0 0 auto;
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
}

.finewerk-contact-form__testimonial-avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.finewerk-contact-form__testimonial-meta {
	display: flex;
	flex-direction: column;
	row-gap: 1px;
	min-width: 0;
}

.finewerk-contact-form__testimonial-name {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.finewerk-contact-form__testimonial-role {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	line-height: 1.3;
}

.finewerk-contact-form__testimonial-rating {
	display: flex;
	align-items: center;
	column-gap: 6px;
	margin-top: 2px;
}

.finewerk-contact-form__stars {
	display: inline-flex;
	column-gap: 1px;
}

.finewerk-contact-form__star {
	display: inline-flex;
	width: 13px;
	height: 13px;
	color: rgba(255, 255, 255, 0.28);
}

.finewerk-contact-form__star.is-filled {
	color: #F5B301;
}

.finewerk-contact-form__star svg {
	display: block;
	width: 100%;
	height: 100%;
}

.finewerk-contact-form__testimonial-score {
	color: rgba(255, 255, 255, 0.7);
	font-size: 12.5px;
}

.finewerk-contact-form__testimonial-score strong {
	color: #FFFFFF;
	font-weight: 600;
}

.finewerk-contact-form__testimonial-quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	line-height: 1.6;
}

.finewerk-contact-form__testimonial-quote::before,
.finewerk-contact-form__testimonial-quote::after {
	content: none;
}

.finewerk-contact-form__testimonial-badge {
	align-self: flex-start;
	padding: 7px 14px;
	background-color: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 12.5px;
	line-height: 1.2;
}

/* ---------- Form panel ---------- */

.finewerk-contact-form__panel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 16px 0;
}

.finewerk-contact-form__form {
	width: 100%;
}

.finewerk-contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--fw-cf-column-gap);
	row-gap: var(--fw-cf-row-gap);
}

.finewerk-contact-form__field {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
	min-width: 0;
}

.finewerk-contact-form__field--full {
	grid-column: 1 / -1;
}

.finewerk-contact-form__label {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

.finewerk-contact-form__input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 16px;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.finewerk-contact-form__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
	opacity: 1;
}

.finewerk-contact-form__input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.55);
}

.finewerk-contact-form__input:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

.finewerk-contact-form__input--textarea {
	min-height: 52px;
	resize: vertical;
}

/* Select: native control with a custom chevron. */

.finewerk-contact-form__select {
	position: relative;
	display: block;
}

.finewerk-contact-form__input--select {
	padding-right: 44px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

/* Placeholder option selected: match the placeholder tint. */
.finewerk-contact-form__input.is-fw-placeholder {
	color: rgba(255, 255, 255, 0.55);
}

/* Dropdown options open on a light popup in most engines. */
.finewerk-contact-form__input--select option {
	color: #1A2E26;
	background-color: #FFFFFF;
}

.finewerk-contact-form__select-arrow {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: #FFFFFF;
	pointer-events: none;
}

.finewerk-contact-form__select-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- Footer: submit + emergency ---------- */

.finewerk-contact-form__footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px 28px;
	margin-top: 28px;
}

.finewerk-contact-form__submit {
	display: inline-flex;
	align-items: center;
	column-gap: 10px;
	box-sizing: border-box;
	margin: 0;
	padding: 16px 28px;
	background-color: #5B4BD4;
	border: 0;
	border-radius: 12px;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.finewerk-contact-form__submit:hover:not(:disabled) {
	background-color: #4A3BC0;
}

.finewerk-contact-form__submit:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

.finewerk-contact-form__submit-arrow {
	display: inline-flex;
	width: 16px;
	height: 16px;
}

.finewerk-contact-form__submit-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
}

.finewerk-contact-form__emergency {
	display: flex;
	flex-direction: column;
	row-gap: 2px;
	margin: 0;
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1.45;
}

.finewerk-contact-form__emergency-title {
	font-family: var(--fw-font-title);
	font-weight: 500;
}

.finewerk-contact-form__emergency-line {
	display: inline-flex;
	flex-wrap: wrap;
	column-gap: 5px;
}

.finewerk-contact-form__emergency-phone {
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}

.finewerk-contact-form__emergency-phone:hover,
.finewerk-contact-form__emergency-phone:focus-visible {
	text-decoration: underline;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.finewerk-contact-form__input,
	.finewerk-contact-form__submit {
		transition: none;
	}
}

/* ---------- Responsive ---------- */

/* Tablet: stack the card above the form. */
@media (max-width: 1024px) {
	.finewerk-contact-form {
		padding: 32px;
	}

	.finewerk-contact-form__inner {
		flex-direction: column;
	}

	.finewerk-contact-form__card {
		flex-basis: auto;
		width: 100%;
		min-height: 420px;
	}

	.finewerk-contact-form__panel {
		padding: 8px 0 0;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.finewerk-contact-form {
		padding: 20px;
		border-radius: 20px;
	}

	.finewerk-contact-form__card {
		min-height: 0;
		padding: 24px;
	}

	.finewerk-contact-form__card-content {
		row-gap: 0;
	}

	.finewerk-contact-form__testimonial {
		margin-top: 28px;
	}

	.finewerk-contact-form__grid {
		grid-template-columns: 1fr;
	}

	.finewerk-contact-form__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.finewerk-contact-form__submit {
		justify-content: center;
	}

	.finewerk-contact-form__emergency {
		text-align: center;
	}
}
