/*
 * Eiman Special Request — Frontend Styles
 * All selectors are prefixed with `.eiman-sr` / `.eiman-sr-trigger` / `.eiman-sr-modal`
 * to avoid any conflict with Tripfery or BABE styles.
 */

.eiman-sr {
	--eiman-sr-gold: #C8A75A;
	--eiman-sr-gold-dark: #b3924a;
	--eiman-sr-black: #111111;
	--eiman-sr-radius: 12px;

	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 32px;
	background: #ffffff;
	border-radius: var(--eiman-sr-radius);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	font-family: inherit;
}

.eiman-sr *,
.eiman-sr *::before,
.eiman-sr *::after {
	box-sizing: border-box;
}

.eiman-sr__header {
	margin-bottom: 20px;
	text-align: center;
}

.eiman-sr__title {
	margin: 0 0 8px;
	color: var(--eiman-sr-black);
	font-size: 24px;
	font-weight: 700;
}

.eiman-sr__subtitle {
	margin: 0;
	color: #555555;
	font-size: 14px;
	line-height: 1.5;
}

.eiman-sr__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eiman-sr__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eiman-sr__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eiman-sr__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--eiman-sr-black);
}

.eiman-sr__required {
	color: var(--eiman-sr-gold-dark);
}

.eiman-sr__field input,
.eiman-sr__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: var(--eiman-sr-black);
	background: #fbfbfb;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eiman-sr__field input:focus,
.eiman-sr__field textarea:focus {
	outline: none;
	border-color: var(--eiman-sr-gold);
	box-shadow: 0 0 0 3px rgba(200, 167, 90, 0.18);
	background: #ffffff;
}

.eiman-sr__field textarea {
	resize: vertical;
	min-height: 96px;
}

.eiman-sr__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	background: var(--eiman-sr-black);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.eiman-sr__submit:hover {
	background: #000000;
}

.eiman-sr__submit:active {
	transform: scale(0.98);
}

.eiman-sr__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.eiman-sr__submit-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.eiman-sr__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: eiman-sr-spin 0.7s linear infinite;
}

.eiman-sr__submit.is-loading .eiman-sr__submit-label {
	opacity: 0.6;
}

.eiman-sr__submit.is-loading .eiman-sr__spinner {
	display: inline-block;
}

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

.eiman-sr__feedback {
	display: none;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.eiman-sr__feedback.is-visible {
	display: block;
}

.eiman-sr__feedback.is-success {
	background: #eef7ee;
	color: #2e6b2e;
	border: 1px solid #cfe8cf;
}

.eiman-sr__feedback.is-error {
	background: #fdecec;
	color: #a33131;
	border: 1px solid #f6cccc;
}

.eiman-sr__alt {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #eeeeee;
	text-align: center;
}

.eiman-sr__alt-label {
	margin: 0 0 14px;
	font-size: 13px;
	color: #777777;
}

.eiman-sr__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	border-radius: 8px;
	background: var(--eiman-sr-gold);
	color: var(--eiman-sr-black);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.1s ease;
}

.eiman-sr__whatsapp:hover {
	background: var(--eiman-sr-gold-dark);
	color: var(--eiman-sr-black);
}

.eiman-sr__whatsapp:active {
	transform: scale(0.98);
}

.eiman-sr__phone-note {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: #888888;
	line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* Trigger Buttons (floating + inline)                                    */
/* ---------------------------------------------------------------------- */

.eiman-sr-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	background: #111111;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
	font-family: inherit;
}

.eiman-sr-trigger:hover {
	background: #000000;
}

.eiman-sr-trigger:active {
	transform: scale(0.98);
}

/* Fixed, site-wide floating variant. */
.eiman-sr-fab-wrap {
	position: fixed;
	z-index: 9999;
	right: 20px;
	bottom: 20px;
}

.eiman-sr-trigger--fab {
	padding: 14px 20px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.eiman-sr-trigger--fab:hover {
	transform: translateY(-2px);
}

@media (max-width: 480px) {
	.eiman-sr-fab-wrap {
		right: 14px;
		bottom: 14px;
	}

	.eiman-sr-trigger--fab {
		padding: 12px 16px;
		font-size: 13px;
	}
}

/* Inline variant — placed by admins inside page content via
   [eiman_special_request_button], flows normally with surrounding text. */
.eiman-sr-trigger--inline {
	padding: 12px 22px;
	background: var(--eiman-sr-gold, #C8A75A);
	color: #111111;
}

.eiman-sr-trigger--inline:hover {
	background: var(--eiman-sr-gold-dark, #b3924a);
}

/* ---------------------------------------------------------------------- */
/* Modal                                                                   */
/* ---------------------------------------------------------------------- */

.eiman-sr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.eiman-sr-modal[hidden] {
	display: none;
}

.eiman-sr-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
}

.eiman-sr-modal__panel {
	position: relative;
	z-index: 1;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: var(--eiman-sr-radius);
	animation: eiman-sr-modal-in 0.18s ease;
}

@keyframes eiman-sr-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.eiman-sr-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #888888;
	cursor: pointer;
	padding: 4px;
}

.eiman-sr-modal__close:hover {
	color: #111111;
}

.eiman-sr-modal__body .eiman-sr {
	box-shadow: none;
	margin: 0;
}

@media (max-width: 480px) {
	.eiman-sr {
		padding: 24px 18px;
	}
}
