/* =======================================================================
   Eiman Special Request — Frontend Styles
   All selectors are namespaced with `esr-` to avoid any collision with
   Tripfery theme styles or the BABE booking plugin.
   ======================================================================= */

.esr-section {
	--esr-gold: #C8A75A;
	--esr-black: #0d0d0d;
	--esr-white: #ffffff;
	--esr-gray: #6b6b6b;
	--esr-radius: 18px;
	--esr-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);

	box-sizing: border-box;
	padding: 64px 20px;
	font-family: inherit;
}

.esr-section * {
	box-sizing: border-box;
}

.esr-container {
	max-width: 720px;
	margin: 0 auto;
}

.esr-hero {
	text-align: center;
	margin-bottom: 36px;
}

.esr-hero__title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 700;
	color: var(--esr-black);
	margin: 0 0 12px;
	position: relative;
	display: inline-block;
}

.esr-hero__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	background: linear-gradient(90deg, var(--esr-gold), #e8cf8f);
	margin: 14px auto 0;
	border-radius: 3px;
}

.esr-hero__subtitle {
	color: var(--esr-gray);
	font-size: 16px;
	line-height: 1.7;
	margin: 0 auto;
	max-width: 560px;
}

.esr-card {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(200, 167, 90, 0.25);
	border-radius: var(--esr-radius);
	box-shadow: var(--esr-shadow);
	padding: 36px;
	animation: esr-fade-up 0.6s ease both;
}

@keyframes esr-fade-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.esr-field {
	margin-bottom: 20px;
}

.esr-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--esr-black);
	margin-bottom: 8px;
}

.esr-required {
	color: var(--esr-gold);
}

.esr-field input,
.esr-field textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	font-size: 15px;
	background: rgba(255, 255, 255, 0.9);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
	color: var(--esr-black);
}

.esr-field input:focus,
.esr-field textarea:focus {
	outline: none;
	border-color: var(--esr-gold);
	box-shadow: 0 0 0 3px rgba(200, 167, 90, 0.18);
}

.esr-field textarea {
	resize: vertical;
	min-height: 120px;
}

.esr-field.esr-field--error input,
.esr-field.esr-field--error textarea {
	border-color: #d0433f;
}

.esr-field__error {
	color: #d0433f;
	font-size: 13px;
	margin-top: 6px;
}

/* Honeypot: visually hidden but not display:none (defeats some bot heuristics). */
.esr-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.esr-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
}

.esr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	position: relative;
}

.esr-btn:hover {
	transform: translateY(-2px);
}

.esr-btn:active {
	transform: translateY(0);
}

.esr-btn--primary {
	background: linear-gradient(135deg, var(--esr-gold), #b8935f);
	color: var(--esr-black);
	box-shadow: 0 10px 24px rgba(200, 167, 90, 0.35);
	flex: 1 1 auto;
	min-width: 200px;
}

.esr-btn--primary[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.esr-btn--whatsapp {
	background: #25D366;
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

.esr-btn--large {
	width: 100%;
	padding: 16px 28px;
}

.esr-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.25);
	border-top-color: var(--esr-black);
	animation: esr-spin 0.7s linear infinite;
}

.esr-btn.esr-is-loading .esr-btn__spinner {
	display: inline-block;
}

.esr-btn.esr-is-loading .esr-btn__label {
	opacity: 0.7;
}

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

.esr-form__feedback {
	margin-top: 18px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.6;
	display: none;
}

.esr-form__feedback.esr-is-success {
	display: block;
	background: rgba(37, 211, 102, 0.12);
	color: #1a7a41;
	border: 1px solid rgba(37, 211, 102, 0.3);
}

.esr-form__feedback.esr-is-error {
	display: block;
	background: rgba(208, 67, 63, 0.1);
	color: #a3221f;
	border: 1px solid rgba(208, 67, 63, 0.3);
}

.esr-whatsapp-block {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px dashed rgba(0, 0, 0, 0.1);
	text-align: center;
}

.esr-whatsapp-block__title {
	font-weight: 600;
	margin-bottom: 14px;
	color: var(--esr-black);
}

.esr-phone-info {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(200, 167, 90, 0.08);
	border: 1px solid rgba(200, 167, 90, 0.2);
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 14px;
	color: var(--esr-black);
}

.esr-phone-info__icon {
	font-size: 20px;
}

/* Auto-inserted end-of-content button (static, flows with content) */
.esr-auto-btn-wrap {
	margin: 40px 0 20px;
	text-align: center;
}

.esr-auto-btn {
	min-width: 240px;
}

/* Floating button */
.esr-floating-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99998;
	background: linear-gradient(135deg, var(--esr-gold), #b8935f);
	color: var(--esr-black);
	border: none;
	border-radius: 50px;
	padding: 14px 22px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.esr-floating-btn:hover {
	transform: translateY(-3px) scale(1.02);
}

/* Popup modal */
.esr-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	backdrop-filter: blur(2px);
}

.esr-popup-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 640px);
	max-height: 88vh;
	overflow-y: auto;
	background: transparent;
	z-index: 100000;
	border-radius: var(--esr-radius);
}

.esr-popup-modal .esr-section {
	padding: 0;
}

.esr-popup-modal .esr-card {
	background: var(--esr-white);
}

.esr-popup-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--esr-white);
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

@media (max-width: 600px) {
	.esr-card {
		padding: 24px;
	}

	.esr-floating-btn {
		right: 16px;
		bottom: 16px;
		padding: 12px 18px;
		font-size: 13px;
	}
}
