/* Rappel gratuit forms (inline #5 and modal #6) - phone field layout */

/* Section: sub-labels hidden visually, kept for screen readers */
.pojd-callback_wrapper .gform-field-label--type-sub,
#pojd-cbm .gform-field-label--type-sub {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Section: country selector + number as one fused control */
.pojd-callback_wrapper,
#pojd-cbm {
	--pojd-field-h: 42px;
	--pojd-blue: #014674;
}

#pojd-cbm {
	--pojd-field-h: 50px;
}

.pojd-callback_wrapper .gform-phone__input-wrapper,
#pojd-cbm .gform-phone__input-wrapper {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.pojd-callback_wrapper .ginput_country-selector_container,
#pojd-cbm .ginput_country-selector_container {
	flex: 0 0 auto;
	width: auto;
	display: flex;
}

.pojd-callback_wrapper .ginput_phone_container,
#pojd-cbm .ginput_phone_container {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	display: flex;
}

/* Section: dropdown (flag + dial code), tinted to differ from the input */
.pojd-callback_wrapper .gform-phone__country-selector,
#pojd-cbm .gform-phone__country-selector {
	box-sizing: border-box;
	height: var(--pojd-field-h) !important;
	margin: 0 !important;
	padding: 0 10px !important;
	color: var(--pojd-blue) !important;
	background: #e6f0f7 !important;
	border: 1px solid var(--pojd-blue) !important;
	border-right: 0 !important;
	border-radius: 8px 0 0 8px !important;
	cursor: pointer;
}

.pojd-callback_wrapper .gform-phone__country-selector:hover,
#pojd-cbm .gform-phone__country-selector:hover {
	background: #d7e7f2 !important;
}

.pojd-callback_wrapper .gform-phone__dial-code,
#pojd-cbm .gform-phone__dial-code {
	color: var(--pojd-blue) !important;
	font-weight: 600;
}

/* Section: number input */
.pojd-callback_wrapper .gform-phone__input,
#pojd-cbm .gform-phone__input {
	box-sizing: border-box;
	width: 100%;
	height: var(--pojd-field-h) !important;
	margin: 0 !important;
	border: 1px solid var(--pojd-blue) !important;
	border-radius: 0 8px 8px 0 !important;
}

/* Section: country dropdown opens below the field, above the modal content */
.pojd-callback_wrapper .gform-phone__dropdown,
#pojd-cbm .gform-phone__dropdown {
	top: calc(100% + 4px) !important;
	bottom: auto !important;
	z-index: 10;
}

/* Short screens: shorter country list so it stays in view */
@media (max-height: 700px) {
	#pojd-cbm .gform-phone__country-list {
		max-height: 170px;
	}
}
