/* =========================================================================
   Contact form (Gravity Forms #1)
   Loaded only on pages where form #1 renders (see inc/gravity-forms.php).
   Add the CSS Class Name `contact-form` to the form in its Form Settings.

   NOTE ON !important: the theme (and GF) apply global `input`/`button`
   styles with higher specificity than these scoped rules — white input
   backgrounds, button colours, their own paddings. The overrides below are
   deliberately forced so this form's styling wins. They're all scoped to
   `.contact-form`, so nothing leaks to other forms.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1) Inset labels
   Real <label>s stay in the DOM (accessibility / autofill); we only move
   them inside the field visually. Placeholders show underneath when empty.
   ------------------------------------------------------------------------- */
.contact-form .gfield {
	position: relative;
}

.contact-form .gfield_label {
	position: absolute;
	top: 10px;
	left: 18px;
	z-index: 1;
	margin: 0;
	font-size: 9px !important;
	font-weight: 600;
	letter-spacing: 1.08px !important;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35) !important;
	pointer-events: none;
}

/* Hide the "(Required)" text indicator if you prefer (optional) */
.contact-form .gfield_required {
	display: none;
}

.contact-form .ginput_container input,
.contact-form .ginput_container textarea {
	width: 100%;
	border: 0 !important;
	border-radius: 10px !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: normal;
	padding: 30px 18px 12px !important; /* top padding clears the inset label */
	box-shadow: none !important;
	outline: 2px solid transparent !important;
	transition: outline-color 0.15s ease;
}

.contact-form .ginput_container input {height: 58px !important}

.contact-form .ginput_container textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form .ginput_container input::placeholder,
.contact-form .ginput_container textarea::placeholder {
	color: rgba(255, 255, 255, 0.35) !important;
	font-weight: 400 !important;
	font-size: 15px !important;
}

.contact-form .ginput_container input:focus,
.contact-form .ginput_container textarea:focus {
	outline-color: var(--wp--preset--color--teal, #4fb0b2) !important;
}

/* -------------------------------------------------------------------------
   2) Budget range slider
   ------------------------------------------------------------------------- */
.contact-form .budget {
	--b-teal: var(--wp--preset--color--teal, #4fb0b2);
	--b-panel: transparent;
	--b-box: #4a525d;
	--b-rail: #525a64;
	--b-thumb: #a9cfcf;
	--b-ink: var(--wp--preset--color--neutral, #f2f7f7);
	--b-muted: #8b929c;

	position: relative;
	margin: 20px 0 8px;
	padding: 20px 22px 18px;
	background: var(--b-panel);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
    transition: all 0.2s ease-out;
}

.contact-form .budget:hover {
	border: 1px solid var(--b-teal);
	outline: 2px solid rgba(79, 176, 178, 0.3);
}

.contact-form .budget__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.contact-form .budget__title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #808287;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.54px;
	text-transform: uppercase;
}

/* Reset the theme's button styling on the two in-panel buttons */
.contact-form .budget__info,
.contact-form .budget__clear {
	appearance: none;
	-webkit-appearance: none;
	background: none !important;
	box-shadow: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: auto;
	text-transform: none;
	line-height: 1;
}

.contact-form .budget__info {
	width: 18px !important;
	height: 18px !important;
	padding: 0 !important;
	border: 1px solid var(--b-muted) !important;
	border-radius: 500px !important;
	color: var(--b-muted) !important;
	cursor: help;
}

.contact-form .budget__clear {
	padding: 0 !important;
	border: 0 !important;
	color: var(--b-ink) !important;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.08px;
}

.contact-form .budget__clear:disabled {
	color: var(--b-muted) !important;
	text-decoration: none;
	cursor: default;
}

/* Info popover — shows on hover and keyboard focus */
.contact-form .budget__info-wrap {
	position: relative;
	display: inline-flex;
}

.contact-form .budget__tip {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	z-index: 5;
	width: max-content;
	max-width: 280px;
	padding: 16px 18px;
	/* reset inherited uppercase / spacing from the title */
	text-transform: none;
	letter-spacing: normal;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	background: #2c313a;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.contact-form .budget__info-wrap:hover .budget__tip,
.contact-form .budget__info:focus-visible + .budget__tip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
	.contact-form .budget__tip {
		transition: none;
		transform: translate(-50%, 0);
	}
}

.contact-form .budget__readout {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.contact-form .budget__value {
	flex: 1;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.20);
	background: rgba(255, 255, 255, 0.12);
	border-radius: 10px !important;
	padding: 14px 8px;
	font-size: 22px;
	font-weight: normal;
	color: #fff;
}

.contact-form .budget__dash {
	color: var(--b-muted);
	font-size: 22px;
}

/* Two native range inputs overlaid on one shared rail. The forced
   transparent background is the important bit: without it the theme's
   white input background paints over the rail AND hides the other thumb. */
.contact-form .budget__track {
	position: relative;
	height: 34px;
	--min-pct: 0;
	--max-pct: 100;
}

.contact-form .budget__rail,
.contact-form .budget__fill {
	position: absolute;
	top: 50%;
	height: 6px;
	transform: translateY(-50%);
	border-radius: 999px;
	pointer-events: none;
}

.contact-form .budget__rail {
	left: 0;
	right: 0;
	background: var(--b-rail);
}

.contact-form .budget__fill {
	left: calc(var(--min-pct) * 1%);
	right: calc((100 - var(--max-pct)) * 1%);
	background: linear-gradient(90deg,#5b606b, var(--b-teal))
}

.contact-form .budget__range {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 34px !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important; /* <-- reveals the rail + both thumbs */
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	pointer-events: none; /* only the thumb re-enables pointer events */
	z-index: 3;
}

.contact-form .budget__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	cursor: grab;
	/* split props: the solid fill survives even if the grip image fails */
	background-color: var(--b-thumb);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='11'%3E%3Crect x='1' width='1.6' height='11' rx='.8' fill='%2331363F'/%3E%3Crect x='5.4' width='1.6' height='11' rx='.8' fill='%2331363F'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.contact-form .budget__range::-moz-range-thumb {
	pointer-events: auto;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	cursor: grab;
	background-color: var(--b-thumb);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='11'%3E%3Crect x='1' width='1.6' height='11' rx='.8' fill='%2331363F'/%3E%3Crect x='5.4' width='1.6' height='11' rx='.8' fill='%2331363F'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.contact-form .budget__range::-moz-range-track {
	background: none;
	border: 0;
}

.contact-form .budget__range:focus-visible {
	outline: none;
}

.contact-form .budget__range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(79, 176, 178, 0.6);
}

.contact-form .budget__range:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 3px rgba(79, 176, 178, 0.6);
}

.contact-form .budget__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	font-size: 12px;
	font-weight: 400;
	color: var(--b-ink);
}

@media (prefers-reduced-motion: no-preference) {
	.contact-form .budget__fill {
		transition: left 0.12s ease, right 0.12s ease;
	}
}

/* -------------------------------------------------------------------------
   3) Submit button — the light pill from the design
   ------------------------------------------------------------------------- */
.contact-form .gform_footer input[type="submit"],
.contact-form .gform_footer button[type="submit"],
.contact-form .gform_footer .gform-button {
	width: 100% !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 20px !important;
	background: var(--wp--preset--color--teal) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	letter-spacing: 0.84px !important;
	text-transform: uppercase !important;
	cursor: pointer;
}

.contact-form .gform_footer input[type="submit"]:hover,
.contact-form .gform_footer button[type="submit"]:hover,
.contact-form .gform_footer .gform-button:hover {
	background:#6FD0D2 !important;
}