/* =========================================================================
   Equality Reservation Form
   All selectors are namespaced under .erf-wrap to avoid theme conflicts.
   ========================================================================= */

.erf-wrap {
	--erf-gold: #e4b53c;
	--erf-gold-dim: rgba(228, 181, 60, 0.32);
	--erf-red: #ff3b3b;
	--erf-text: #f5f5f7;
	--erf-muted: #9a9aa2;
	--erf-input-bg: rgba(255, 255, 255, 0.045);
	--erf-input-bg-focus: rgba(255, 255, 255, 0.075);
	--erf-input-border: rgba(255, 255, 255, 0.12);
	--erf-card-bg: #0c0c0e;
	--erf-radius: 14px;
	--erf-bg-image: none;

	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--erf-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.erf-wrap *,
.erf-wrap *::before,
.erf-wrap *::after {
	box-sizing: border-box;
}

/* ---- Card ------------------------------------------------------------- */
.erf-card {
	position: relative;
	overflow: hidden;
	border-radius: 26px;
	background-color: var(--erf-card-bg);
	background-image: var(--erf-bg-image);
	background-size: cover;
	background-position: center;
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}



/* ---- Heading ---------------------------------------------------------- */
.erf-title {
	margin: 0;
	text-align: center;
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-weight: 600;
	font-size: clamp(28px, 4.6vw, 46px);
	letter-spacing: 0.2px;
	color: #fff;
}

.erf-subtitle {
	margin: 8px 0 0;
	text-align: center;
	font-size: clamp(13px, 1.6vw, 15px);
	color: var(--erf-muted);
}

/* ---- Stepper ---------------------------------------------------------- */
.erf-steps {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 460px;
	margin: clamp(26px, 4vw, 40px) auto clamp(24px, 4vw, 38px);
}

.erf-steps-line {
	position: absolute;
	top: 50%;
	left: 22px;
	right: 22px;
	height: 3px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	overflow: hidden;
}

.erf-steps-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ff5252, var(--erf-red));
	border-radius: 3px;
	transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.erf-dot {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #131316;
	border: 2px solid var(--erf-gold-dim);
	color: var(--erf-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.erf-dot.is-done {
	background: var(--erf-gold);
	border-color: var(--erf-gold);
	color: #1a1205;
}

.erf-dot.is-active {
	background: #fff;
	border-color: var(--erf-gold);
	color: #161616;
	box-shadow: 0 0 0 4px rgba(228, 181, 60, 0.18);
}

/* ---- Form ------------------------------------------------------------- */
.erf-form {
	max-width: 760px;
	margin: 0 auto;
}

.erf-step {
	display: none;
	animation: erf-fade 0.35s ease;
}

.erf-step.is-active {
	display: block;
}

@keyframes erf-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.erf-field {
	position: relative;
	margin-bottom: 16px;
}

.erf-field input[type="text"],
.erf-field input[type="email"],
.erf-field input[type="tel"],
.erf-field input[type="number"],
.erf-field input[type="date"],
.erf-field select {
	width: 100%;
	padding: 16px 18px;
	font-size: 15px;
	font-family: inherit;
	color: var(--erf-text);
	background: var(--erf-input-bg);
	border: 1px solid var(--erf-input-border);
	border-radius: var(--erf-radius);
	outline: none;
	color-scheme: dark; /* keep native date picker / spinners light on dark */
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.erf-field input::placeholder {
	color: rgba(255, 255, 255, 0.42);
}

.erf-field input:focus,
.erf-field select:focus {
	border-color: var(--erf-gold);
	background: var(--erf-input-bg-focus);
	box-shadow: 0 0 0 3px rgba(228, 181, 60, 0.14);
}

/* Custom dropdown chevron */
.erf-field select {
	cursor: pointer;
	padding-right: 46px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9aa2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
}

.erf-field select option {
	background: #1b1b1f;
	color: var(--erf-text);
}

/* Validation state */
.erf-field input.has-error,
.erf-field select.has-error {
	border-color: #ff5d5d;
	box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.12);
}

.erf-error {
	display: none;
	margin-top: 6px;
	font-size: 12.5px;
	color: #ff7a7a;
}

.erf-error.is-visible {
	display: block;
}

/* ---- Agreement checkbox ---------------------------------------------- */
.erf-field--agree {
	margin-top: 6px;
	text-align: center;
}

.erf-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14.5px;
	color: var(--erf-text);
	user-select: none;
}

.erf-checkbox input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.erf-checkbox-box {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.erf-checkbox input:checked + .erf-checkbox-box {
	background: var(--erf-gold);
	border-color: var(--erf-gold);
}

.erf-checkbox input:checked + .erf-checkbox-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #1a1205;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.erf-checkbox input:focus-visible + .erf-checkbox-box {
	box-shadow: 0 0 0 3px rgba(228, 181, 60, 0.3);
}

.erf-checkbox input.has-error + .erf-checkbox-box {
	border-color: #ff5d5d;
}

.erf-checkbox-text a {
	color: #6f9bff;
	text-decoration: underline;
}

.erf-field--agree .erf-error {
	text-align: center;
}

/* ---- Buttons ---------------------------------------------------------- */
.erf-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 28px;
}

.erf-actions--end {
	justify-content: center;
}

.erf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	position: relative;
}

.erf-btn:active {
	transform: translateY(1px);
}

.erf-btn--light {
	background: #fff;
	color: #141414;
}

.erf-btn--light:hover {
	background: #efefef;
	box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.4);
}

.erf-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.erf-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.erf-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.erf-ico {
	display: inline-block;
	flex: none;
}

/* Submit loading state */
.erf-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(20, 20, 20, 0.25);
	border-top-color: #141414;
	border-radius: 50%;
	animation: erf-spin 0.7s linear infinite;
}

.erf-submit.is-loading .erf-btn-label {
	display: none;
}

.erf-submit.is-loading .erf-spinner {
	display: inline-block;
}

@keyframes erf-spin {
	to { transform: rotate(360deg); }
}

/* ---- Inline form message --------------------------------------------- */
.erf-formmsg {
	margin-top: 18px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	text-align: center;
}

.erf-formmsg--error {
	background: rgba(255, 80, 80, 0.12);
	border: 1px solid rgba(255, 80, 80, 0.4);
	color: #ffb3b3;
}

/* ---- Success state ---------------------------------------------------- */
.erf-success {
	max-width: 520px;
	margin: clamp(20px, 4vw, 40px) auto 0;
	text-align: center;
	animation: erf-fade 0.4s ease;
}

.erf-success-icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(228, 181, 60, 0.14);
	border: 2px solid var(--erf-gold);
	color: var(--erf-gold);
}

.erf-success-title {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 3.4vw, 32px);
	color: #fff;
}

.erf-success-text {
	margin: 0;
	color: var(--erf-muted);
	font-size: 15px;
}

/* ---- Honeypot (hidden from humans) ----------------------------------- */
.erf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 540px) {
	.erf-dot {
		width: 38px;
		height: 38px;
		font-size: 12px;
	}
	.erf-steps-line {
		left: 19px;
		right: 19px;
	}
	.erf-actions {
		flex-direction: column-reverse;
	}
	.erf-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.erf-wrap *,
	.erf-wrap *::before,
	.erf-wrap *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
