/* Apartment modal — Gravity Forms (Orbital) skin
   Keeps project.css tokens: 50px pills, #fff outline, beige bar, 4-col row.
   -------------------------------------------------------------------------- */

.rma-form--apt-modal .gform_wrapper.gform-theme,
.rma-form--apt-modal .gform_wrapper,
.rma-form--apt-modal [data-form-theme="orbital"] {
	--gf-color-primary: #ffffff !important;
	--gf-color-primary-contrast: #252525 !important;
	--gf-color-in-ctrl: #ffffff !important;
	--gf-color-in-ctrl-contrast: var(--color-secondary, #252525) !important;
	--gf-color-in-ctrl-darker: #ffffff !important;
	--gf-color-in-ctrl-lighter: #ffffff !important;
	--gf-ctrl-border-color: var(--color-accent, #cebbaa) !important;
	--gf-ctrl-border-color-error: #ffd4c4 !important;
	--gf-ctrl-bg-color-error: transparent !important;
	--gf-ctrl-color-error: #fff4ec !important;
	--gf-ctrl-desc-color-error: #fff4ec !important;
	--gf-ctrl-label-color-primary: #ffffff !important;
	--gf-ctrl-label-color-secondary: #ffffff !important;
	--gf-ctrl-label-color-req: rgb(255 255 255 / 0.78) !important;
	--gf-ctrl-choice-check-color: #252525 !important;
	--gf-ctrl-choice-size: 16px !important;
	--gf-radius: 999px !important;
	--gf-ctrl-radius: 999px !important;
	--gf-ctrl-btn-radius: 999px !important;
	--gf-ctrl-btn-bg-color-primary: var(--color-secondary, #252525) !important;
	--gf-ctrl-btn-bg-color-hover-primary: #1a1a1a !important;
	--gf-ctrl-btn-bg-color-focus-primary: #1a1a1a !important;
	--gf-ctrl-btn-color-primary: #ffffff !important;
	--gf-ctrl-btn-color-hover-primary: #ffffff !important;
	--gf-ctrl-btn-border-color-primary: transparent !important;
	--gf-ctrl-btn-shadow: none !important;
	--gf-ctrl-btn-shadow-hover: 0 6px 18px rgb(37 37 37 / 0.1) !important;
	--gf-ctrl-btn-shadow-focus: 0 6px 18px rgb(37 37 37 / 0.1) !important;
	--gf-ctrl-btn-font-weight: 400 !important;
	--gf-ctrl-btn-size: 50px !important;
	--gf-form-gap-y: 12px !important;
	--gf-form-footer-margin-y-start: 0 !important;
	--gf-form-footer-gap: 0 !important;
	--gf-form-validation-bg-color: transparent !important;
	--gf-form-validation-border-color: rgb(255 255 255 / 0.55) !important;
	--gf-form-validation-heading-color: #ffffff !important;
	--gf-form-validation-summary-color: #fff4ec !important;
	--gf-form-validation-radius: 8px !important;
	--gf-form-validation-shadow: none !important;
	--gf-form-spinner-fg-color: #ffffff !important;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #fff;
}

.rma-form--apt-modal .gform_heading,
.rma-form--apt-modal .gform_required_legend,
.rma-form--apt-modal .gfield--type-honeypot,
.rma-form--apt-modal .gfield--type-hidden,
.rma-form--apt-modal .gform_validation_container {
	display: none !important;
}

.rma-form--apt-modal .gfield_label,
.rma-form--apt-modal legend.gfield_label,
.rma-form--apt-modal .rma-form__label {
	display: block !important;
	margin: 0 0 0.3rem !important;
	padding: 0;
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: rgb(255 255 255 / 0.9) !important;
}

.rma-form--apt-modal .gfield_required {
	color: rgb(255 255 255 / 0.65) !important;
	font-weight: 300;
}

.rma-form--apt-modal form {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(200px, 0.95fr);
	gap: 12px;
	align-items: start;
	width: 100%;
	margin: 0;
	padding: 0;
}

.rma-form--apt-modal .gform_body,
.rma-form--apt-modal .gform-body {
	display: grid !important;
	grid-column: 1 / 4;
	grid-row: 1;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rma-form--apt-modal .gform_fields {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rma-form--apt-modal .gform_footer,
.rma-form--apt-modal .gform-footer {
	display: flex !important;
	grid-column: 4;
	grid-row: 1;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	background: none;
}

.rma-form--apt-modal,
.rma-form--apt-modal .gform_wrapper,
.rma-form--apt-modal form,
.rma-form--apt-modal .gform_body,
.rma-form--apt-modal .gform-body,
.rma-form--apt-modal .gform_fields {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.rma-form--apt-modal .gfield,
.rma-form--apt-modal .gfield[class*="width"],
.rma-form--apt-modal .gfield[class*="gfield--width"] {
	grid-column: auto !important;
	grid-row: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	background: none;
}

.rma-form--apt-modal .ginput_container {
	margin: 0;
}

.rma-form--apt-modal .gfield--type-checkbox,
.rma-form--apt-modal .gfield--type-consent,
.rma-form--apt-modal .gfield--type-html,
.rma-form--apt-modal .gform_validation_errors,
.rma-form--apt-modal .gform_confirmation_wrapper,
.rma-form--apt-modal .gform_confirmation_message,
/* Beat .gfield[class*="width"] { grid-column: auto } so consents span the full row */
.rma-form--apt-modal .gfield.gfield--type-checkbox,
.rma-form--apt-modal .gfield.gfield--type-consent,
.rma-form--apt-modal .gfield.gfield--type-html,
.rma-form--apt-modal .gfield--type-checkbox[class*="width"],
.rma-form--apt-modal .gfield--type-consent[class*="width"],
.rma-form--apt-modal .gfield--type-html[class*="width"],
.rma-form--apt-modal .gfield--type-checkbox[class*="gfield--width"],
.rma-form--apt-modal .gfield--type-consent[class*="gfield--width"],
.rma-form--apt-modal .gfield--type-html[class*="gfield--width"] {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: none !important;
}

.rma-form--apt-modal input[type="text"],
.rma-form--apt-modal input[type="tel"],
.rma-form--apt-modal input[type="email"],
.rma-form--apt-modal input[type="url"],
.rma-form--apt-modal textarea,
.rma-form--apt-modal select,
.rma-form--apt-modal .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="file"]):not([type="image"]),
.rma-form--apt-modal .gform_wrapper textarea,
.rma-form--apt-modal .gform_wrapper select {
	width: 100%;
	max-width: none;
	height: 50px;
	min-height: 50px;
	padding: 0 20px;
	border: 2px solid var(--color-accent, #cebbaa) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--color-secondary, #252525) !important;
	font: inherit;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.2;
	text-align: right;
	outline: none !important;
	appearance: none;
	box-sizing: border-box;
}

html[dir="ltr"] .apt-modal__form-wrap,
html[dir="ltr"] .apt-modal__form-wrap .rma-form--apt-modal,
html[dir="ltr"] .apt-modal__form-wrap .gform_wrapper,
html[dir="ltr"] .apt-modal__form-wrap form,
html[dir="ltr"] .rma-form--apt-modal,
html[dir="ltr"] .rma-form--apt-modal .gform_wrapper,
html[dir="ltr"] .rma-form--apt-modal form,
html[dir="ltr"] .rma-form--apt-modal input[type="text"],
html[dir="ltr"] .rma-form--apt-modal input[type="tel"],
html[dir="ltr"] .rma-form--apt-modal input[type="email"],
html[dir="ltr"] .rma-form--apt-modal textarea,
html[dir="ltr"] .rma-form--apt-modal select,
html[dir="ltr"] .rma-form--apt-modal .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="file"]),
html[dir="ltr"] .rma-form--apt-modal .gform_wrapper textarea,
html[dir="ltr"] .rma-form--apt-modal .gform_wrapper select,
html[dir="ltr"] .rma-form--apt-modal .apt-modal__consent,
html[dir="ltr"] .rma-form--apt-modal .gfield--type-consent,
html[dir="ltr"] .rma-form--apt-modal .gfield--type-checkbox,
html[dir="ltr"] .rma-form--apt-modal .gchoice,
html[dir="ltr"] .rma-form--apt-modal .gchoice label,
html[dir="ltr"] .rma-form--apt-modal .gform-field-label--type-inline,
html[dir="ltr"] .rma-form--apt-modal input::placeholder,
html[dir="ltr"] .rma-form--apt-modal textarea::placeholder {
	direction: ltr !important;
	text-align: left !important;
}

.rma-form--apt-modal input::placeholder,
.rma-form--apt-modal textarea::placeholder,
.rma-form--apt-modal .gform_wrapper input::placeholder {
	color: var(--color-secondary, #252525) !important;
	opacity: 0.72;
}

.rma-form--apt-modal input:focus,
.rma-form--apt-modal textarea:focus,
.rma-form--apt-modal .gform_wrapper input:focus {
	border-color: var(--color-accent, #cebbaa) !important;
	outline: none !important;
	box-shadow: none !important;
}

.rma-form--apt-modal input:-webkit-autofill,
.rma-form--apt-modal input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--color-secondary, #252525);
	caret-color: var(--color-secondary, #252525);
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 9999s ease-in-out 0s;
}

.rma-form--apt-modal .gform_button,
.rma-form--apt-modal .gform_footer input[type="submit"],
.rma-form--apt-modal input[type="submit"] {
	width: 100% !important;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 14px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--color-secondary, #252525) !important;
	box-shadow: none !important;
	color: #fff !important;
	font: inherit;
	font-size: 16px !important;
	font-weight: 400 !important;
	letter-spacing: -0.02em !important;
	line-height: 50px !important;
	text-align: center !important;
	vertical-align: middle;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.rma-form--apt-modal .gform_button:hover,
.rma-form--apt-modal .gform_button:focus-visible,
.rma-form--apt-modal .gform_footer input[type="submit"]:hover,
.rma-form--apt-modal .gform_footer input[type="submit"]:focus-visible,
.rma-form--apt-modal input[type="submit"]:hover,
.rma-form--apt-modal input[type="submit"]:focus-visible {
	background: #1a1a1a !important;
	color: #fff !important;
	opacity: 1;
	box-shadow: 0 6px 18px rgb(37 37 37 / 0.18) !important;
	transform: translateY(-1px);
	outline: none;
}

.rma-form--apt-modal .gform_button:active,
.rma-form--apt-modal .gform_footer input[type="submit"]:active,
.rma-form--apt-modal input[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgb(37 37 37 / 0.08) !important;
}

@media (prefers-reduced-motion: reduce) {
	.rma-form--apt-modal .gform_button,
	.rma-form--apt-modal .gform_footer input[type="submit"],
	.rma-form--apt-modal input[type="submit"] {
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.rma-form--apt-modal .gform_button:hover,
	.rma-form--apt-modal .gform_button:focus-visible,
	.rma-form--apt-modal .gform_footer input[type="submit"]:hover,
	.rma-form--apt-modal .gform_footer input[type="submit"]:focus-visible,
	.rma-form--apt-modal input[type="submit"]:hover,
	.rma-form--apt-modal input[type="submit"]:focus-visible,
	.rma-form--apt-modal .gform_button:active,
	.rma-form--apt-modal .gform_footer input[type="submit"]:active,
	.rma-form--apt-modal input[type="submit"]:active {
		transform: none;
	}
}

.rma-form--apt-modal .apt-modal__consent,
.rma-form--apt-modal .gfield--type-consent,
.rma-form--apt-modal .gfield--type-checkbox {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px !important;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
}

.rma-form--apt-modal .ginput_container_checkbox,
.rma-form--apt-modal .gfield_checkbox {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px !important;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rma-form--apt-modal .gchoice {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 8px !important;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
}

.rma-form--apt-modal .gfield--type-checkbox,
.rma-form--apt-modal .gfield--type-consent {
	margin-top: 0;
}

.rma-form--apt-modal .gchoice label,
.rma-form--apt-modal .gform-field-label--type-inline {
	flex: 1 1 auto;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: #fff !important;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
	white-space: normal;
}

.rma-form--apt-modal input[type="checkbox"],
.rma-form--apt-modal .gfield-choice-input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
	margin: 2px 0 0;
	padding: 0;
	border: 1px solid #fff !important;
	border-radius: 3px !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	accent-color: #fff;
	cursor: pointer;
}

.rma-form--apt-modal input[type="checkbox"]::before,
.rma-form--apt-modal input[type="checkbox"]::after,
.rma-form--apt-modal .gfield-choice-input[type="checkbox"]::before,
.rma-form--apt-modal .gfield-choice-input[type="checkbox"]::after {
	display: none !important;
	content: none !important;
}

.rma-form--apt-modal input[type="checkbox"]:checked,
.rma-form--apt-modal .gfield-choice-input[type="checkbox"]:checked {
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23252525' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2l2.4 2.4 5.2-5.2'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 10px 10px !important;
}

.rma-form--apt-modal .gform_validation_errors,
.rma-form--apt-modal .gform_submission_error,
.rma-form--apt-modal .validation_error {
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid rgb(255 255 255 / 0.55) !important;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.4;
}

.rma-form--apt-modal .gform_validation_errors .gform_submission_error {
	margin: 0;
	padding: 0;
	border: 0 !important;
}

.rma-form--apt-modal .gform_validation_errors .gform-icon,
.rma-form--apt-modal .gform_validation_errors a,
.rma-form--apt-modal .gform_validation_errors li {
	color: #fff4ec !important;
}

.rma-form--apt-modal .gfield_description,
.rma-form--apt-modal .gfield_validation_message,
.rma-form--apt-modal .validation_message {
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff4ec !important;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.35;
}

.rma-form--apt-modal .gfield_error input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.rma-form--apt-modal .gfield_error textarea,
.rma-form--apt-modal .gfield.gfield_error input[type="checkbox"] {
	border-color: #ffd4c4 !important;
}

.rma-form--apt-modal .gform_wrapper.gform_validation_error,
.rma-form--apt-modal .gform_validation_error {
	border: 0 !important;
	box-shadow: none !important;
}

.rma-form--apt-modal .gform_confirmation_wrapper,
.rma-form--apt-modal .gform_confirmation_message,
.apt-modal__form-wrap .gform_confirmation_wrapper,
.apt-modal__form-wrap .gform_confirmation_message {
	margin: 0;
	padding: 4px 0 0;
	border: 0;
	background: none;
	color: #fff !important;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-align: start;
}

.rma-form--apt-modal .gform_ajax_spinner,
.rma-form--apt-modal .gform-loader {
	filter: brightness(10);
}

@media (max-width: 1100px) {
	.rma-form--apt-modal form,
	html[dir="ltr"] .rma-form--apt-modal form {
		display: flex !important;
		flex-direction: column;
		gap: 10px;
	}

	.rma-form--apt-modal .gform_body,
	.rma-form--apt-modal .gform-body,
	.rma-form--apt-modal .gform_footer,
	.rma-form--apt-modal .gform-footer,
	html[dir="ltr"] .rma-form--apt-modal .gform_body,
	html[dir="ltr"] .rma-form--apt-modal .gform-body,
	html[dir="ltr"] .rma-form--apt-modal .gform_footer,
	html[dir="ltr"] .rma-form--apt-modal .gform-footer {
		display: block !important;
		grid-column: auto;
		grid-row: auto;
		width: 100%;
	}

	.rma-form--apt-modal .gform_fields {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 10px;
	}

	.rma-form--apt-modal .gfield--type-email,
	.rma-form--apt-modal .gfield--input-type-email,
	.rma-form--apt-modal .gfield--type-consent,
	.rma-form--apt-modal .gfield--type-checkbox,
	.rma-form--apt-modal .gfield--type-html,
	.rma-form--apt-modal .gform_validation_errors,
	.rma-form--apt-modal .gform_confirmation_wrapper {
		grid-column: 1 / -1 !important;
	}
}

@media (max-width: 1024px) {
	.apt-modal__form-wrap,
	.rma-form--apt-modal,
	.rma-form--apt-modal .gform_wrapper,
	.rma-form--apt-modal form {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		overflow: visible;
	}

	.rma-form--apt-modal form,
	html[dir="ltr"] .rma-form--apt-modal form {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
	}

	.rma-form--apt-modal .gform_fields {
		grid-template-columns: 1fr !important;
		gap: 10px !important;
	}

	.rma-form--apt-modal input[type="text"],
	.rma-form--apt-modal input[type="tel"],
	.rma-form--apt-modal input[type="email"],
	.rma-form--apt-modal .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="file"]),
	.rma-form--apt-modal .gform_button,
	.rma-form--apt-modal input[type="submit"] {
		width: 100% !important;
		max-width: 100% !important;
		height: 46px;
		min-height: 46px;
		padding: 0 16px;
		font-size: 16px !important;
		font-weight: 300;
	}

	.rma-form--apt-modal .gform_button,
	.rma-form--apt-modal .gform_footer input[type="submit"],
	.rma-form--apt-modal input[type="submit"] {
		white-space: normal;
		height: auto;
		min-height: 46px;
		padding: 12px 16px;
		font-size: 16px !important;
		font-weight: 600 !important;
		line-height: 1.25;
	}

	.rma-form--apt-modal .gchoice label,
	.rma-form--apt-modal .gform-field-label--type-inline {
		font-size: 13px !important;
		font-weight: 300 !important;
	}
}

@media (max-width: 480px) {
	.rma-form--apt-modal form,
	html[dir="ltr"] .rma-form--apt-modal form {
		gap: 8px !important;
	}

	.rma-form--apt-modal .gform_fields {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
	}

	.rma-form--apt-modal input[type="text"],
	.rma-form--apt-modal input[type="tel"],
	.rma-form--apt-modal input[type="email"],
	.rma-form--apt-modal .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="file"]) {
		height: 44px;
		min-height: 44px;
		font-size: 15px !important;
		padding: 0 14px;
	}

	.rma-form--apt-modal .gform_button,
	.rma-form--apt-modal input[type="submit"] {
		min-height: 44px;
		padding: 10px 14px;
		font-size: 15px !important;
	}
}
