/* ------------------------------------------------------------ *\
	Biovancia v3 — Aide & Contact
	Sticky intro (left) + Gravity Forms contact form (right), styled
	to the maquette. Global FAQ below. Tokens only, scoped to .v3.
\* ------------------------------------------------------------ */

.v3 .contact-form {
	position: relative;
	padding-top: 90px;
}

.v3 .contact-form__inner {
	position: relative;
	width: 100%;
	max-width: var(--bva-rail);
	margin: 0 auto;
	display: grid;
	/* minmax(0,…) so the form column can't blow past the viewport on its min-content
	   (long select option / intl-tel-input), which otherwise widens the single mobile column */
	grid-template-columns: 642px minmax(0, 1fr);
	align-items: stretch;
}

/* --- Left sticky intro --- */
.v3 .contact-form__aside {
	min-width: 0;
	padding: 84px 40px 80px;
}
.v3 .contact-form__aside-sticky {
	position: sticky;
	top: 120px;
	max-width: 412px;
}
.v3 .contact-form__label {
	font: var(--bva-t-label);
	text-transform: uppercase;
	color: var(--bva-black);
	margin: 0 0 16px;
}
.v3 .contact-form__title {
	font: var(--bva-t-header-l);
	font-weight: 500; /* one notch bolder */
	color: var(--bva-black);
	margin: 0 0 40px;
}
.v3 .contact-form__text {
	font: var(--bva-t-paragraphe);
	color: var(--bva-text-50); /* #151412 @ 60% */
	margin: 0 0 24px;
}
.v3 .contact-form__text p { margin: 0; }
.v3 .contact-form__phone {
	display: inline-block;
	font: var(--bva-t-header-l);
	font-weight: 600;
	color: var(--bva-black);
	text-decoration: none;
}

/* --- Right form column (myrtille half, full-bleed to the right edge) --- */
.v3 .contact-form__main {
	position: relative;
	min-width: 0;
	background: var(--bva-myrtille-100);
	padding: 90px 40px 120px;
}
.v3 .contact-form__main::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: max(0px, calc((100vw - var(--bva-rail)) / 2));
	background: var(--bva-myrtille-100);
}
.v3 .contact-form__intro {
	font: var(--bva-t-header-l);
	font-weight: 500; /* one notch bolder */
	color: var(--bva-black);
	max-width: 547px;
	margin: 0 0 48px;
}

/* --- Gravity Forms → maquette styling --- */
.v3 .contact-form__gf .gform_wrapper.gravity-theme .gform_fields,
.v3 .contact-form__gf .gform_fields {
	display: flex;
	flex-direction: column;
	gap: 32px;
	grid-template-columns: none; /* override gravity-theme grid */
}
.v3 .contact-form__gf .gfield_label {
	font: var(--bva-t-label);
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.6);
	margin: 0 0 20px;
	display: block;
}
.v3 .contact-form__gf .gfield_required { color: rgba(0, 0, 0, 0.6); }

/* Keep every field control within its column (intl-tel-input wraps the input in .iti) */
.v3 .contact-form__gf .ginput_container,
.v3 .contact-form__gf .iti { width: 100%; max-width: 100%; }

/* phone-country-code.css sets the intl-tel country list to z-index:99999 !important,
   which punches over the fixed v3 header (z-index:70) — the flag list bled onto the
   logo. The inline dropdown is anchored to the (mid-page) phone field, so it only needs
   to clear the form controls; drop it into the content layer, below the header. Scoped
   to .v3 so the legacy V2 checkout/product keep the library default untouched. */
.v3 .contact-form__gf .iti__country-list { z-index: 50 !important; }

/* GF forces font-family/size:inherit on <input> with a specificity we can't beat cleanly
   (6× :not() chain). Carry the font on the field container so inputs inherit Geist
   instead of the UA serif default they otherwise resolve to. */
.v3 .contact-form__gf .ginput_container { font: var(--bva-t-paragraphe); }

.v3 .contact-form__gf input[type="text"],
.v3 .contact-form__gf input[type="email"],
.v3 .contact-form__gf input[type="tel"],
.v3 .contact-form__gf textarea,
.v3 .contact-form__gf select {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--bva-line);
	border-radius: 0;
	background: transparent;
	padding: 0 0 12px;
	font: var(--bva-t-paragraphe);
	color: var(--bva-black);
	box-shadow: none;
	outline: none;
}
.v3 .contact-form__gf input::placeholder,
.v3 .contact-form__gf textarea::placeholder { color: rgba(0, 0, 0, 0.4); opacity: 1; }

.v3 .contact-form__gf select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23151412' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	padding-right: 24px;
}
.v3 .contact-form__gf textarea {
	min-height: 96px;
	resize: none;
	padding: 12px;
	transition: background-color 0.15s ease;
}
/* The textarea is a large empty box: a bottom border alone gives no "you're typing
   here" cue, so tint the ground on focus. Padding is constant (not focus-only) to
   avoid a text-shift jump when the background appears. */
.v3 .contact-form__gf textarea:focus { background: var(--bva-grey-100); }

/* Submit — black button with right arrow (icon-arrow-left points right), like the maquette */
.v3 .contact-form__gf .gform_footer { margin: 40px 0 0; padding: 0; }
.v3 .contact-form__gf .gform_footer input[type="submit"],
.v3 .contact-form__gf .gform_footer button {
	display: inline-block;
	min-width: 138px;
	height: 52px;
	padding: 0 52px 0 24px;
	border: 0;
	border-radius: 2px;
	background: var(--bva-black) url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.13 12L15.13 12' stroke='%23FEFEFE'/%3E%3Cpath d='M10.63 7L15.63 12L10.63 17' stroke='%23FEFEFE'/%3E%3C/svg%3E") no-repeat right 18px center;
	color: var(--bva-white);
	font: 500 13px/52px var(--bva-font-sans);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-align: left;
	cursor: pointer;
}

@media (max-width: 980px) {
	.v3 .contact-form__inner { grid-template-columns: minmax(0, 1fr); }
	.v3 .contact-form__main { border-left: 0; border-top: 1px solid var(--bva-line); padding-top: 48px; }
	.v3 .contact-form__aside { padding-bottom: 48px; }
	.v3 .contact-form__aside-sticky { position: static; max-width: none; }
}
