.dur-form {
	box-sizing: border-box;
	width: 100%;
	color: #fff;
}

/* Desktop: intro + image stacked on one side, the form on the other. */
.dur-form__inner {
	--dur-form-w: 589px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--dur-form-w));
	grid-template-areas:
		"intro form"
		"media form";
	grid-template-rows: auto 1fr;
	align-items: start;
	row-gap: 0;
	width: min(calc(100% - 2 * var(--dur-gutter, 20px)), var(--dur-max, 1200px));
	margin-inline: auto;
}

.dur-form__intro { grid-area: intro; }
.dur-form__media { grid-area: media; }
.dur-form__panel { grid-area: form; }

.dur-form__label-top,
.dur-form__title,
.dur-form__description {
	margin-block-start: 0;
}

.dur-form__description {
	margin-block-end: 0;
}

.dur-form__media {
	position: relative;
	overflow: hidden;
	max-width: 100%;
}

/* Beats the global `img { height: auto }`. */
.dur-form .dur-form__media .dur-form__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

/* ---- Fields ---- */
.dur-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 53px;
	row-gap: 24px;
	padding-inline-end: var(--dur-trail, 33px);
}

.dur-form__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dur-form__field--wide {
	grid-column: 1 / -1;
	margin-inline-end: calc(-1 * var(--dur-trail, 33px));
}

.dur-form__field-label {
	margin-block-end: 9px;
}

.dur-form__req {
	margin-inline-start: 2px;
}

.dur-form__control {
	position: relative;
}

.dur-form .dur-form__input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 0 13px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 0;
	box-shadow: none;
	outline: none;
	color: #fff;
	font-family: inherit;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.dur-form .dur-form__input:focus-visible {
	outline: none;
	border-bottom-width: 2px;
	padding-bottom: 12px;
}

.dur-form .dur-form__textarea {
	resize: none;
	min-height: 117px;
}

.dur-form .dur-form__select {
	padding-inline-end: 36px;
	cursor: pointer;
	text-overflow: ellipsis;
}

/* The native option list sits on the browser's own (light) surface. */
.dur-form .dur-form__select option {
	color: #1e3357;
	background: #fff;
}

.dur-form__chevron {
	position: absolute;
	inset-inline-end: 0;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -11px;
	color: #fff;
	pointer-events: none;
}

.dur-form__chevron svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---- Move-in calendar ---- */
/* The trigger is a <button>, so it also has to beat the theme's global button styles. */
.dur-form .dur-form__date {
	padding-inline-end: 36px;
	text-align: start;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.dur-form .dur-form__input.dur-form__date:hover,
.dur-form .dur-form__input.dur-form__date:focus {
	background: transparent;
}

.dur-form .dur-form__date.is-empty {
	color: rgba(255, 255, 255, 0.35);
}

.dur-form__date-value {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dur-form__calendar-icon {
	opacity: 0.9;
}

.dur-cal {
	--dur-cal-bg: #1b2c4b;
	--dur-cal-accent: #f4bdb3;
	--dur-cal-accent-text: #1e3357;
	--dur-cal-today: #6edacb;
	--dur-cal-cell: 40px;
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 10px);
	z-index: 30;
	box-sizing: border-box;
	width: 320px;
	max-width: calc(100vw - 2 * var(--dur-gutter, 20px));
	padding: 18px 16px 12px;
	background: var(--dur-cal-bg);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	box-shadow: 0 24px 48px -12px rgba(6, 14, 30, 0.6), 0 2px 6px rgba(6, 14, 30, 0.25);
	color: #fff;
	font-family: inherit;
	transform-origin: top left;
	animation: dur-cal-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[dir="rtl"] .dur-cal {
	transform-origin: top right;
}

.dur-cal.is-above {
	top: auto;
	bottom: calc(100% + 10px);
	transform-origin: bottom left;
}

[dir="rtl"] .dur-cal.is-above {
	transform-origin: bottom right;
}

.dur-cal[hidden] {
	display: none;
}

@keyframes dur-cal-in {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dur-cal {
		animation: none;
	}
}

.dur-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-block-end: 12px;
}

.dur-cal__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2px;
	text-align: center;
}

/* Buttons inside the calendar: reset the theme's global button styles first. */
.dur-form .dur-cal button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.dur-form .dur-cal button:focus {
	outline: none;
}

.dur-form .dur-cal button:focus-visible {
	outline: 2px solid var(--dur-cal-today);
	outline-offset: 2px;
}

.dur-form .dur-cal .dur-cal__nav {
	flex: none;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
}

.dur-form .dur-cal .dur-cal__nav svg {
	width: 18px;
	height: 18px;
}

[dir="rtl"] .dur-cal__nav svg {
	transform: scaleX(-1);
}

.dur-form .dur-cal .dur-cal__nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.dur-cal__grid {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.dur-cal__grid th,
.dur-cal__grid td {
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	vertical-align: middle;
}

/* Beats the theme's zebra-striped tables. */
.dur-cal__grid tbody tr:nth-child(odd) > td,
.dur-cal__grid tbody tr:hover > td,
.dur-cal__grid tbody > tr:nth-child(odd) > td {
	background: none;
}

.dur-cal__grid th {
	padding-block: 2px 8px;
	color: var(--dur-cal-today);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

[dir="rtl"] .dur-cal__grid th {
	font-size: 11px;
	letter-spacing: 0;
	white-space: nowrap;
}

.dur-cal__grid td {
	height: calc(var(--dur-cal-cell) + 2px);
}

.dur-form .dur-cal .dur-cal__day {
	width: var(--dur-cal-cell);
	height: var(--dur-cal-cell);
	max-width: 100%;
	border: 1px solid transparent;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
	.dur-form .dur-cal .dur-cal__day:not(:disabled):not(.is-selected):hover,
	.dur-form .dur-cal .dur-cal__nav:not(:disabled):hover {
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}
}

.dur-form .dur-cal .dur-cal__day.is-today {
	border-color: var(--dur-cal-today);
	color: var(--dur-cal-today);
	font-weight: 700;
}

.dur-form .dur-cal .dur-cal__day.is-selected,
.dur-form .dur-cal .dur-cal__day.is-selected:hover {
	background: var(--dur-cal-accent);
	border-color: var(--dur-cal-accent);
	color: var(--dur-cal-accent-text);
	font-weight: 700;
}

.dur-form .dur-cal .dur-cal__day:disabled {
	color: rgba(255, 255, 255, 0.25);
	cursor: not-allowed;
}

.dur-cal__foot {
	display: flex;
	justify-content: flex-end;
	min-height: 8px;
}

.dur-form .dur-cal .dur-cal__clear {
	margin-block-start: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dur-form .dur-cal .dur-cal__clear:hover {
	color: #fff;
}

.dur-form .dur-cal .dur-cal__clear[hidden] {
	display: none;
}

/* Phones: the calendar takes the full field width with bigger tap targets. */
@media (max-width: 767px) {
	.dur-cal {
		--dur-cal-cell: 42px;
		width: 100%;
		max-width: none;
		padding-inline: 12px;
	}
}

@media (max-width: 359px) {
	.dur-cal {
		--dur-cal-cell: 36px;
	}
}

.dur-form__error {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

.dur-form__error[hidden],
.dur-form__status[hidden],
.dur-form__success[hidden],
.dur-form__form[hidden] {
	display: none;
}

/* Honeypot: off-screen, not display:none (simple bots skip hidden fields).
   Uses a physical offset (not inset-inline-start) so it doesn't flip to the
   opposite edge and push the page's scrollWidth out in RTL. */
.dur-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Actions ---- */
.dur-form__actions {
	margin-top: 26px;
}

.dur-form__submit {
	border: 0;
	font-family: inherit;
}

.dur-form__submit[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.dur-form__notice {
	margin: 16px 0 0;
}

.dur-form__status {
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 1.5;
}

.dur-form__turnstile {
	margin-top: 16px;
}

.dur-form__success {
	outline: none;
}

.dur-form__success-title,
.dur-form__success-text {
	margin: 0;
}

.dur-form__success-title {
	margin-block-end: 12px;
}

/* ---- Tablet / mobile: intro, form, image ---- */
@media (max-width: 1024px) {
	.dur-form__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"intro"
			"form"
			"media";
		grid-template-rows: auto;
		row-gap: var(--dur-stack-gap, 48px);
	}

	.dur-form .dur-form__media {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.dur-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.dur-form__turnstile-note {
	margin: 16px 0 0;
	padding: 12px 14px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 13px;
	opacity: 0.7;
}
