/* Gravity Forms skin — makes GF embeds match the theme's form design. Scoped to
   our form wrappers (.appointment__gf / .curso). GF's own theme CSS ships in a
   cascade @layer, so these unlayered author rules win without !important. */

.appointment__gf .gform_wrapper,
.curso .gform_wrapper { --gf-color-primary: var(--bida-green); }

/* Field grid — driven by our own gfhalf/gffull field classes (GF's grid theme
   CSS isn't reliably loaded, so we own the layout). */
.appointment__gf .gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: var(--space-5); /* 20px between the two half-fields (Figma 2591:1907) */
	row-gap: 12px;              /* 12px between stacked fields (Figma) */
	align-items: start;
}
.appointment__gf .gform_wrapper .gfield { margin: 0; padding: 0 !important; grid-column: span 2; }
.appointment__gf .gform_wrapper .gfield.gfhalf { grid-column: span 1; }
/* Fill the grid cell: GF's framework theme puts a left margin + fixed width on
   .ginput_container (its own sub-column system), which narrows the white field
   and shoves it right. Normalize so the borderless field fills the cell (Figma). */
.appointment__gf .gform_wrapper .ginput_container { width: 100% !important; max-width: none !important; margin: 0 !important; }
.appointment__gf .gform_wrapper .gform_validation_container,
.appointment__gf .gform_wrapper .gfield--type-honeypot { display: none; }
/* Cloudflare Turnstile runs invisibly, but its empty field is still a grid row and
   would push the submit button down by one row-gap: take it out of the flow. It
   returns to the flow to show its error. Drop this rule if the widget is ever
   switched to a visible mode in Cloudflare. */
.gform_wrapper .gform_fields > .gfield--type-turnstile:not(.gfield_error) { position: absolute; }

/* Hide labels (we use placeholders) — belt-and-braces with hidden_label. */
.appointment__gf .gform_wrapper .gfield_label,
.appointment__gf .gform_wrapper .gform-phone .gform-field-label--type-sub,
.appointment__gf .gform_wrapper .gform_required_legend {
	position: absolute;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Controls — borderless white fields on the grey panel (Figma 2591:1908: bg #fff,
   rounded 8px, 12px padding, NO stroke). !important beats GF's framework theme,
   which otherwise wins on padding/border. */
.appointment__gf .gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not(.gform-phone__search),
.appointment__gf .gform_wrapper select,
.appointment__gf .gform_wrapper textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--bida-blue);
	background: var(--white) !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 12px !important;
}
/* Message box ~96px (Figma 2591:1919); cap GF's tall default, keep it resizable. */
.appointment__gf .gform_wrapper textarea { height: 96px !important; min-height: 96px; resize: vertical; }
.appointment__gf .gform_wrapper ::placeholder { color: rgba(28, 59, 91, 0.6); opacity: 1; }
.appointment__gf .gform_wrapper input:focus,
.appointment__gf .gform_wrapper select:focus,
.appointment__gf .gform_wrapper textarea:focus { outline: 2px solid var(--bida-blue); outline-offset: 1px; border-color: var(--bida-blue); }

/* Gravity Forms 3.0 renders its international-phone field even when the form
   uses the legacy theme, but that mode does not reliably enqueue the component
   stylesheet. Without this scoped state rule the supposedly closed country
   picker stays in normal flow and expands the form by several thousand pixels.
   Keep the closed state authoritative and constrain the real, JS-opened picker
   to an overlay inside the form rather than letting it stretch the page. */
.appointment__gf .gform_wrapper .gform-phone {
	position: relative;
	width: 100%;
	/* Regular GF inputs retain a 12px top offset in the legacy theme. Apply the
	   same offset to the complete phone control so prefix + input move as one. */
	margin-top: 12px;
}
.appointment__gf .gform_wrapper .gform-phone span { margin-bottom: 0 !important; }
.appointment__gf .gform_wrapper .gform-phone__input-wrapper {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 48px;
	background: var(--white);
	border-radius: 8px;
}
.appointment__gf .gform_wrapper .ginput_country-selector_container {
	display: flex !important;
	align-items: stretch;
	flex: 0 0 auto;
	margin-bottom: 0 !important;
}
.appointment__gf .gform_wrapper .ginput_phone_container {
	display: flex !important;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0 !important;
}
.appointment__gf .gform_wrapper .gform-phone__country-selector {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	gap: 4px;
	box-sizing: border-box;
	width: 56px;
	min-width: 56px;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 0 10px !important;
	border: 0 !important;
	border-right: 1px solid var(--neutral-100) !important;
	border-radius: 8px 0 0 8px !important;
	background: var(--white) !important;
	color: var(--bida-blue) !important;
	box-shadow: none !important;
	font: inherit !important;
	font-size: var(--fs-body) !important;
	line-height: 24px !important;
	cursor: pointer;
}
.appointment__gf .gform_wrapper .gform-phone__dial-code {
	display: inline-flex !important;
	align-items: center;
	height: 24px;
	margin: 0 !important;
	line-height: 24px !important;
}
.appointment__gf .gform_wrapper .gform-phone__country-selector::after {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.appointment__gf .gform_wrapper .gform-phone__input {
	min-width: 0;
	height: 48px;
	margin: 0 !important;
	border-radius: 0 8px 8px 0 !important;
}
.appointment__gf .gform_wrapper .gform-phone__dropdown {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: min(304px, 55vh);
	overflow: hidden;
	padding: 8px;
	border: 1px solid var(--neutral-200);
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 12px 32px rgba(28, 59, 91, 0.18);
}
.appointment__gf .gform_wrapper .gform-phone__dropdown--hidden { display: none !important; }
.appointment__gf .gform_wrapper .gform-phone__search-wrapper {
	margin: 0;
	padding: 0;
}
.appointment__gf .gform_wrapper input.gform-phone__search {
	display: block;
	width: 100% !important;
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 1px solid var(--neutral-200) !important;
	border-radius: 6px !important;
	background: var(--white) !important;
	box-shadow: none !important;
	font: inherit;
	font-size: var(--fs-body-s) !important;
	line-height: 20px !important;
	color: var(--bida-blue);
}
.appointment__gf .gform_wrapper input.gform-phone__search:focus {
	border-color: var(--bida-blue) !important;
	outline: 1px solid var(--bida-blue);
	outline-offset: 0;
}
.appointment__gf .gform_wrapper .gform-phone__country-list {
	max-height: min(240px, calc(55vh - 56px));
	overflow-y: auto;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	scrollbar-gutter: stable;
}
.appointment__gf .gform_wrapper .gform-phone__country-item {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 7px 8px;
	border-radius: 6px;
	font-size: var(--fs-body-s);
	line-height: 20px;
	cursor: pointer;
}
.appointment__gf .gform_wrapper .gform-phone__country-item:hover,
.appointment__gf .gform_wrapper .gform-phone__country-item:focus,
.appointment__gf .gform_wrapper .gform-phone__country-item[aria-selected="true"] {
	background: var(--neutral-50);
	outline: none;
}
.appointment__gf .gform_wrapper .gform-phone__flag-icon {
	display: none !important;
}
.appointment__gf .gform_wrapper .gform-phone__country-name {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-bottom: 0 !important;
}
.appointment__gf .gform_wrapper .gform-phone__country-code {
	display: block;
	flex: 0 0 auto;
	margin-left: auto;
	margin-bottom: 0 !important;
	font-variant-numeric: tabular-nums;
	color: var(--neutral-500);
}

/* Selects — custom chevron */
.appointment__gf .gform_wrapper select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c3b5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

/* Submit button — theme's green pill */
/* Footer: GF's framework theme adds a big left margin + padding (its column
   system again), pushing the privacy line + button right. Force it flush-left,
   full width, so they align with the fields (Figma). */
.appointment__gf .gform_footer,
.appointment__gf .gform-footer { margin: var(--space-6) 0 0 !important; padding: 0 !important; width: 100% !important; }
.appointment__gf .gform_wrapper .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bida-green);
	color: var(--white);
	border: 0;
	border-radius: 100px;
	padding: 8px 24px;
	font-family: inherit;
	font-size: var(--fs-body);
	font-weight: var(--fw-semibold);
	line-height: 24px;
	cursor: pointer;
	transition: opacity var(--dur-fast) var(--ease);
}
.appointment__gf .gform_wrapper .gform_button:hover { opacity: 0.9; }

/* Privacy line above the submit (Figma 2591:1921) — injected by the
   gform_submit_button filter for the contacto forms. */
.appointment__gf .gform_footer .appointment__privacy,
.appointment__gf .gform-footer .appointment__privacy {
	margin: 0 0 var(--space-6);
	font-size: var(--fs-body-s);
	line-height: 20px;
	color: var(--bida-blue);
}
.appointment__gf .gform_footer .appointment__privacy a,
.appointment__gf .gform-footer .appointment__privacy a { color: var(--bida-green); text-decoration: underline; }

/* Centred "section" (enrolment) layout — centre the submit */
.appointment--section .appointment__gf .gform_footer,
.appointment--section .appointment__gf .gform-footer { display: flex; justify-content: center; }

/* Validation messages */
.appointment__gf .gform_wrapper .gfield_description.validation_message,
.appointment__gf .gform_wrapper .validation_message {
	color: #b3261e;
	font-size: var(--fs-body-s);
	margin-top: 6px;
	background: none;
	border: 0;
	padding: 0;
}
.appointment__gf .gform_wrapper .gform_validation_errors {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 var(--space-5);
}

/* Confirmation message */
.appointment__gf .gform_confirmation_message {
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--bida-blue);
}

@media (max-width: 560px) {
	.appointment__gf .gform_wrapper .gfield,
	.appointment__gf .gform_wrapper .gfield.gfhalf { grid-column: span 2; } /* stack on mobile */
}

/* ══ Multi-page CV wizard — matches Figma 2725:8330 … 2776:4549 ══════════════
   Grey card, segmented stepper, per-step H2, 12-col field grid, accordion
   "Otros datos" step, repeater add-links, file boxes. */
.cv-steps__panel--gf {
	background: var(--neutral-50);
	border-radius: 16px;
	padding: clamp(40px, 6vw, 64px) clamp(24px, 3vw, 40px);
}

/* Stepper → green segmented bar with tiny numbers, NO text labels. */
.cv-steps__panel--gf .gf_page_steps { display: flex; gap: 6px; margin: 0 0 clamp(32px, 5vw, 48px) !important; border: 0 !important; padding: 0 !important; }
.cv-steps__panel--gf .gf_step { flex: 1 1 0 !important; display: flex !important; flex-direction: column; align-items: stretch; gap: 5px; margin: 0 !important; padding: 0 !important; opacity: 1 !important; text-align: center; }
.cv-steps__panel--gf .gf_step_label { display: none !important; }
.cv-steps__panel--gf .gf_step_number { background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important; line-height: 1 !important; font-size: 11px !important; font-weight: 700 !important; color: var(--neutral-200) !important; }
.cv-steps__panel--gf .gf_page_steps .gf_step::after {
	content: "" !important; display: block !important; order: 3;
	flex: 0 0 8px !important; min-height: 8px !important; height: 8px !important; width: 100% !important;
	border-radius: 64px !important; background: var(--neutral-100, #dbe0e5) !important; margin: 0 !important;
}
.cv-steps__panel--gf .gf_page_steps .gf_step_active .gf_step_number,
.cv-steps__panel--gf .gf_page_steps .gf_step_completed .gf_step_number { color: var(--bida-green) !important; }
.cv-steps__panel--gf .gf_page_steps .gf_step_active::after,
.cv-steps__panel--gf .gf_page_steps .gf_step_completed::after { background: var(--bida-green) !important; }

/* Per-step H2 (GF section field). */
.cv-steps__panel--gf .gsection { border: 0 !important; padding: 0 !important; margin: 0 0 clamp(24px, 4vw, 40px) !important; grid-column: 1 / -1; }
.cv-steps__panel--gf .gsection_title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -0.32px; font-weight: var(--fw-medium); color: var(--bida-blue); margin: 0; }
.cv-steps__panel--gf .gsection_description { display: none; }

/* 12-column field grid + spans (!important to beat GF's own grid-column). */
.cv-steps__panel--gf .gform_fields { display: grid !important; grid-template-columns: repeat(12, 1fr) !important; gap: var(--space-3) !important; align-items: start; }
.cv-steps__panel--gf .gfield { grid-column: span 12 !important; margin: 0; }
.cv-steps__panel--gf .gfcol-3 { grid-column: span 3 !important; }
.cv-steps__panel--gf .gfcol-4 { grid-column: span 4 !important; }
.cv-steps__panel--gf .gfcol-6 { grid-column: span 6 !important; }
.cv-steps__panel--gf .gfcol-12,
.cv-steps__panel--gf .gfield--type-section,
.cv-steps__panel--gf .gfield--type-repeater,
.cv-steps__panel--gf .cv-acc,
.cv-steps__panel--gf .cv-add-lang-field { grid-column: 1 / -1 !important; }

/* Borderless white fields on the grey card, filling their grid cell. */
.cv-steps__panel--gf .ginput_container { width: 100% !important; margin: 0 !important; max-width: none !important; }
.cv-steps__panel--gf .gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="file"]),
.cv-steps__panel--gf .gform_wrapper select,
.cv-steps__panel--gf .gform_wrapper textarea { width: 100% !important; border-color: transparent !important; background: #fff !important; box-shadow: none !important; }

/* Buttons — primary green pill, secondary green-outline pill. */
.appointment__gf .gform_next_button,
.appointment__gf .gform_button,
.appointment__gf .gform-theme-button:not(.gform-theme-button--secondary):not(.gform-phone__country-selector):not(.add_repeater_item):not(.remove_repeater_item) {
	background: var(--bida-green) !important; color: var(--white) !important; border: 0 !important; border-radius: 100px !important;
	padding: 8px 24px !important; font-family: inherit !important; font-size: var(--fs-body) !important; font-weight: var(--fw-semibold) !important; line-height: 24px !important; cursor: pointer; box-shadow: none !important;
}
.appointment__gf .gform_previous_button {
	background: transparent !important; color: var(--bida-green) !important; border: 1px solid var(--bida-green) !important; border-radius: 100px !important;
	padding: 8px 24px !important; font-family: inherit !important; font-size: var(--fs-body) !important; font-weight: var(--fw-medium) !important; line-height: 24px !important; cursor: pointer; box-shadow: none !important;
}
.appointment__gf .gform-theme-button:not(.gform-phone__country-selector):hover { opacity: 0.9; }
.appointment__gf .gform-phone__country-selector:hover,
.appointment__gf .gform-phone__country-selector:focus { background: var(--white) !important; }
.cv-steps__panel--gf .gform_page_footer { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: clamp(24px, 4vw, 40px); border: 0 !important; padding: 0 !important; }

/* "Añadir …" links (repeater add + accordion headers + añadir otro idioma):
   left-aligned text + grey circle-plus, on divider rules — matches Figma. */
.cv-steps__panel--gf .gfield--type-repeater { grid-column: 1 / -1; border: 0 !important; padding: 0 !important; }
.cv-steps__panel--gf .gfield--type-repeater > .gfield_label { display: none !important; }
.cv-steps__panel--gf .gfield_repeater_wrapper > .gfield_label { display: none !important; }
/* Repeater inner: grid the fields (4-across / 2-across) + strip GF's item box. */
.cv-steps__panel--gf .gfield_repeater_container { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.cv-steps__panel--gf .gfield_repeater_items { display: flex; flex-direction: column; gap: var(--space-5); }
.cv-steps__panel--gf .gfield_repeater_item { display: grid !important; grid-template-columns: repeat(12, 1fr) !important; gap: var(--space-3) !important; align-items: start; border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; }
.cv-steps__panel--gf .gfield_repeater_cell { grid-column: span 12; }
.cv-steps__panel--gf .gfield_repeater_cell:has(.gfcol-3) { grid-column: span 3; }
.cv-steps__panel--gf .gfield_repeater_cell:has(.gfcol-6) { grid-column: span 6; }
.cv-steps__panel--gf .gfield_repeater_cell:has(.gfcol-12) { grid-column: span 12; }
.cv-steps__panel--gf .gfield_repeater_buttons { grid-column: 1 / -1 !important; display: flex !important; align-items: center; gap: var(--space-3); }
.cv-steps__panel--gf .add_repeater_item { flex: 1 1 auto; }
/* Hide GF's stray datepicker trigger icon (Figma has none). */
.cv-steps__panel--gf .gfield--type-date .ginput_container > :not(input) { display: none !important; }
.cv-steps__panel--gf .cv-acc,
.cv-steps__panel--gf .cv-add-lang-field { grid-column: 1 / -1; }
.cv-steps__panel--gf .add_repeater_item,
.cv-steps__panel--gf .cv-acc-btn,
.cv-steps__panel--gf .cv-add-lang {
	display: flex !important; align-items: center; gap: var(--space-3);
	width: 100% !important; justify-content: flex-start !important;
	background: transparent !important; border: 0 !important;
	border-top: 1px solid var(--neutral-200) !important; border-bottom: 1px solid var(--neutral-200) !important;
	border-radius: 0 !important; margin: 0 !important; padding: var(--space-4) 0 !important;
	font-family: inherit !important; font-size: var(--fs-body) !important; font-weight: var(--fw-regular) !important; color: var(--bida-blue) !important; cursor: pointer; text-align: left;
}
.cv-steps__panel--gf .add_repeater_item::after,
.cv-steps__panel--gf .cv-acc-btn::after,
.cv-steps__panel--gf .cv-add-lang::after {
	content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%; background: var(--neutral-100, #dbe0e5); color: var(--bida-blue); font-size: 15px; line-height: 1;
}
.cv-steps__panel--gf .add_repeater_item span,
.cv-steps__panel--gf .gform-theme-button__text { all: unset; }
/* per-row remove button — small subtle grey circle with a minus; GF's label
   ("Eliminar"/"Remove") stays as the accessible name but would spill out. */
.cv-steps__panel--gf .remove_repeater_item {
	background: transparent !important; border: 1px solid var(--neutral-200) !important; color: var(--neutral-500) !important;
	border-radius: 50% !important; width: 24px !important; height: 24px !important; padding: 0 !important; min-height: 0 !important; align-self: center;
	flex: none; display: inline-flex !important; align-items: center; justify-content: center; overflow: hidden; font-size: 0 !important; line-height: 0 !important;
}
.cv-steps__panel--gf .remove_repeater_item::before { content: "\2212"; font-size: 15px; line-height: 1; }

/* Accordion / reveal hidden states. */
.cv-hidden, .cv-collapsed { display: none !important; }

/* File fields → white box + compact green picker button (native input limits an
   exact match; flagged). */
.cv-steps__panel--gf .cv-file .ginput_container_fileupload { background: #fff; border-radius: 8px; padding: 12px; }
.cv-steps__panel--gf .cv-file input[type="file"] { width: 100%; border: 0 !important; background: transparent !important; padding: 0 !important; font-family: inherit; font-size: var(--fs-body-s); color: var(--neutral-500); }
.cv-steps__panel--gf .cv-file input[type="file"]::file-selector-button { border: 0; background: var(--bida-green); color: #fff; border-radius: 100px; padding: 4px 14px; margin-right: 10px; font-family: inherit; font-size: var(--fs-body-s); font-weight: 600; cursor: pointer; }
.cv-steps__panel--gf .cv-file .gform_fileupload_rules { font-size: var(--fs-body-s); color: var(--neutral-500); }
.cv-steps__panel--gf .cv-file-photo .ginput_container_fileupload { max-width: 480px; }

/* Vehículo question (radio) — prompt via description, radios inline. */
.cv-steps__panel--gf .cv-inline-radio { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.cv-steps__panel--gf .cv-inline-radio .gfield_description { order: 0; margin: 0; padding: 0; border: 0; background: none; font-size: var(--fs-body); color: var(--bida-blue); }
.cv-steps__panel--gf .cv-inline-radio .ginput_container_radio { order: 1; }
.cv-steps__panel--gf .gfield_radio { display: flex; gap: var(--space-6); }
.cv-steps__panel--gf .gfield_radio .gchoice { display: inline-flex; align-items: center; gap: 6px; }
.cv-steps__panel--gf .gfield_radio label { color: var(--bida-blue); }

/* Confirmation screen. */
.appointment__gf .cv-confirm__title,
.gform_confirmation_message .cv-confirm__title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -0.32px; font-weight: var(--fw-medium); color: var(--bida-blue); margin: 0 0 var(--space-6); }
.appointment__gf .cv-confirm__text,
.gform_confirmation_message .cv-confirm__text { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--neutral-500); margin: 0; }

@media (max-width: 720px) {
	.cv-steps__panel--gf .gfcol-3,
	.cv-steps__panel--gf .gfcol-4,
	.cv-steps__panel--gf .gfcol-6 { grid-column: span 12 !important; }
}

/* ══ Orientación-model forms → .bida-form--orientacion: GF 13/14 (orientación
   appointment) and 15/16 (course enrolment); the live site uses one form for both ══
   Same borderless white fields; adds full-width radio rows, a date-picker
   button inside its field and an inline data-protection consent whose legal
   text unfolds from its link (accordion.js). Legacy GF CSS loads after this
   file, hence the extra specificity and the few !important overrides. */
/* Legacy GF CSS styles "not top-label" forms (ours hide labels): it squeezes
   descriptions and choice lists to 70% with a 29% indent, offsets inputs (not
   selects) 12px and the field after the hidden honeypot 16px. Neutralise it so
   every row lines up; rows are spaced by the grid gap alone. */
.appointment__gf .bida-form--orientacion_wrapper .gform_fields { row-gap: var(--space-4); }
.appointment__gf .bida-form--orientacion_wrapper .gform_fields > li.gfield { margin-top: 0 !important; }
.appointment__gf .bida-form--orientacion_wrapper li.hidden_label input,
.appointment__gf .bida-form--orientacion_wrapper .gform-phone { margin-top: 0; }
.appointment__gf .bida-form--orientacion_wrapper .gfield_description { width: auto !important; margin-left: 0 !important; }

.appointment__gf .bida-form--orientacion_wrapper select:has(> option.gf_placeholder:checked) { color: rgba(28, 59, 91, 0.6); }
.appointment__gf .bida-form--orientacion_wrapper select option { color: var(--bida-blue); }

/* Radio questions: prompt + options on one white row, like the inputs. */
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-radio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px var(--space-4);
	min-height: 48px;
	padding: 12px !important;
	background: var(--white);
	border-radius: 8px;
}
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-radio .gfield_description:not(.validation_message) {
	margin: 0 !important;
	padding: 0 !important;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: rgba(28, 59, 91, 0.6);
}
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-radio .ginput_container_radio { width: auto !important; }
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-radio .validation_message { flex-basis: 100%; }
.appointment__gf .bida-form--orientacion_wrapper ul.gfield_radio { display: flex; flex-wrap: wrap; gap: 4px var(--space-5); width: auto !important; margin: 0; }
.appointment__gf .bida-form--orientacion_wrapper ul.gfield_radio li { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; overflow: visible; }
.appointment__gf .bida-form--orientacion_wrapper ul.gfield_radio li input[type="radio"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--bida-green); cursor: pointer; }
.appointment__gf .bida-form--orientacion_wrapper ul.gfield_radio li label,
.appointment__gf .bida-form--orientacion_wrapper ul.gfield_radio li input[type="radio"]:checked + label {
	width: auto;
	max-width: none;
	margin: 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: var(--fw-regular);
	color: var(--bida-blue);
}

/* Date, every appointment form (1.3b: the old course form showed a green pill
   under "Fecha de nacimiento"): GF 3.1's calendar button sits inside the right
   edge of the field. It carries .gform-theme-button, which the green-pill rule
   above would restyle, hence the longer selectors (they must outrank it) and the
   !important set. Anchored to the field's bottom so it also centres in legacy
   forms, whose inputs keep a 12px top offset. */
.appointment__gf .gform_wrapper .ginput_container_date { position: relative; }
.appointment__gf .gform_wrapper .ginput_container_date input.datepicker.gform-datepicker.datepicker_with_icon.gdatepicker_with_icon {
	margin-right: 0 !important;
	padding-right: 48px !important;
}
.appointment__gf .gform_wrapper .ginput_container_date button.gform-datepicker-toggle.gform-theme-button.gform-theme-button--simple {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231c3b5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M16 3v4M8 3v4M3 11h18'/></svg>") center / 18px 18px no-repeat !important;
	cursor: pointer;
}
.appointment__gf .gform_wrapper .ginput_container_date button.gform-datepicker-toggle .gform-datepicker-toggle-icon { display: none; }
.appointment__gf .gform_wrapper .ginput_container_date button.gform-datepicker-toggle:focus-visible { outline: 2px solid var(--bida-blue); outline-offset: 1px; }
/* GF's calendar has no horizontal anchor: open it under the field, flush with its
   right edge, so it never runs off the screen from the right-hand column. */
.appointment__gf .gform_wrapper .ginput_container_date .gform-datepicker-calendar {
	top: calc(100% + 6px);
	left: auto;
	right: 0;
}

/* Consent line (espanasa-style): checkbox + sentence with an inline link. */
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-consent { padding-top: var(--space-2) !important; }
.appointment__gf .bida-form--orientacion_wrapper .ginput_container_consent { display: flex; align-items: flex-start; gap: 10px; }
.appointment__gf .bida-form--orientacion_wrapper .ginput_container_consent input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bida-green); cursor: pointer; }
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_label {
	font-size: var(--fs-body-s);
	line-height: 22px;
	color: var(--bida-blue);
	cursor: pointer;
}
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_label a,
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_description a {
	color: var(--bida-blue);
	font-weight: var(--fw-medium);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_label .gfield_required { margin-left: 2px; color: inherit; }
/* Legacy GF blocks every span in an input container; keep the "*" on the text's last line. */
.appointment__gf .bida-form--orientacion_wrapper .ginput_container_consent .gfield_consent_label span { display: inline; }
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-consent .gfield_consent_description { display: none; }
.appointment__gf .bida-form--orientacion_wrapper .gfield--type-consent.is-privacy-open .gfield_consent_description {
	display: block;
	max-height: none;
	overflow: visible;
	margin: 12px 0 0 28px !important;
	padding: 16px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--white);
	font-size: var(--fs-body-s);
	line-height: 22px;
	color: var(--color-text-muted);
}
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_description p { margin: 0 0 var(--space-2); }
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_description p:last-child { margin-bottom: 0; }
.appointment__gf .bida-form--orientacion_wrapper .gfield_consent_description .bida-privacy__title { font-weight: var(--fw-semibold); color: var(--bida-blue); }

/* 901–1180px: beside the photo the form sits in a half-width panel (≈390–455px),
   too narrow for two fields per row ("Fecha de nacimiento*" gets cut), so stack
   them. The centred course band is wide enough and keeps two columns. */
@media (min-width: 901px) and (max-width: 1180px) {
	.appointment:not(.appointment--section) .appointment__gf .bida-form--orientacion_wrapper .gform_fields .gfield.gfhalf { grid-column: span 2; }
}
@media (max-width: 560px) {
	.appointment__gf .bida-form--orientacion_wrapper .gfield--type-consent.is-privacy-open .gfield_consent_description { margin-left: 0 !important; }
}
