/* Eni Asiri booking form. Everything is scoped to .eb so XStore and Elementor rules stay out. */

.eb {
	--olive: #3b4a2b;
	--olive-deep: #2e3a21;
	--olive-soft: #e8ecdf;
	--stone: #e5e3dc;
	--paper: #f6f4ef;
	--champagne: #e2c89e;
	--champagne-soft: #f3e8d4;
	--ink: #2f3326;
	--text: #5b5952;
	--line: #d6d1c4;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Inter", "Helvetica Neue", Arial, sans-serif;

	font-family: var(--sans);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

.eb *, .eb *::before, .eb *::after { box-sizing: border-box; }
.eb p, .eb h2, .eb fieldset { margin: 0; padding: 0; }
.eb em { font-style: italic; }

/* What the form says follows the chosen request: a session or the investment guide. */
.eb .eb-for-guide { display: none; }
.eb [data-type="guide"] .eb-for-guide { display: inline; }
.eb [data-type="guide"] .eb-for-session,
.eb [data-type="guide"] .eb-session-only { display: none; }

/* Popup -------------------------------------------------------------------- */

.eb .eb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.eb .eb-modal.is-open { display: flex; }
.eb .eb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(33, 40, 24, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: eb-fade 0.25s ease;
}
.eb .eb-panel {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(32px, 5vw, 56px);
	background: var(--paper);
	border-top: 4px solid var(--olive);
	box-shadow: 0 30px 80px rgba(33, 40, 24, 0.35);
	outline: none;
	animation: eb-rise 0.3s ease;
}
.eb .eb-x {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	cursor: pointer;
}
.eb .eb-x:hover { background: var(--stone); }

/* The site's chat bubble sits at the highest z-index there is, so it steps aside while the form is open. */
html.eb-open #bisa-widget-root { display: none !important; }

@keyframes eb-fade { from { opacity: 0; } }
@keyframes eb-rise { from { opacity: 0; transform: translateY(16px); } }

/* Heading ------------------------------------------------------------------ */

.eb .eb-kicker {
	margin-bottom: 14px;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a8578;
}
.eb .eb-title {
	padding-right: 40px;
	margin-bottom: 14px;
	font-family: var(--serif);
	font-size: clamp(34px, 4.4vw, 46px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
	color: var(--olive);
}
.eb .eb-title em { font-weight: 400; }
.eb .eb-intro { font-size: 15px; line-height: 1.7; color: var(--text); }

/* Form --------------------------------------------------------------------- */

.eb .eb-form fieldset { margin-top: 30px; border: 0; min-width: 0; }
.eb .eb-legend {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--olive);
}
.eb .eb-legend span,
.eb .eb-field label span { letter-spacing: 0.02em; text-transform: none; font-weight: 400; color: #8a8578; }

.eb .eb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eb .eb-field + .eb-field,
.eb .eb-field + .eb-row,
.eb .eb-row + .eb-field { margin-top: 16px; }
.eb .eb-row .eb-field + .eb-field { margin-top: 0; }
.eb .eb-field label {
	display: block;
	margin: 0 0 6px;
	font-family: var(--sans);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
}

.eb .eb-form input[type="text"],
.eb .eb-form input[type="email"],
.eb .eb-form input[type="tel"],
.eb .eb-form select,
.eb .eb-form textarea {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	min-height: 50px;
	margin: 0;
	padding: 12px 15px;
	border: 1px solid var(--line);
	border-radius: 0;
	background-color: #fff;
	box-shadow: none;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.eb .eb-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233b4a2b' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}
.eb .eb-form textarea { min-height: 110px; resize: vertical; }
.eb .eb-form ::placeholder { color: #a39f93; opacity: 1; }
.eb .eb-form input:focus,
.eb .eb-form select:focus,
.eb .eb-form textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(59, 74, 43, 0.14); }
.eb .eb-form .is-invalid { border-color: #b4566b !important; }

/* The two request choices, as pills. */
.eb .eb-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.eb .eb-choice .eb-legend { flex-basis: 100%; }
.eb .eb-pill { position: relative; margin: 0; cursor: pointer; }
.eb .eb-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eb .eb-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ink);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.eb .eb-pill:hover span { border-color: var(--olive); }
.eb .eb-pill input:checked + span { background: var(--olive); border-color: var(--olive); color: #fff; }
.eb .eb-pill input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }

.eb .eb-hp,
.eb .eb-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.eb .eb-error { margin-top: 22px; padding: 12px 16px; background: #f6e3e7; color: #7d2f40; font-size: 14.5px; line-height: 1.5; }

.eb .eb-submit,
.eb .eb-btn {
	display: block;
	width: 100%;
	min-height: 56px;
	margin: 30px 0 0;
	padding: 16px 28px;
	border: 0;
	border-radius: 0;
	background: var(--olive);
	box-shadow: none;
	color: #fff;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}
.eb .eb-submit:hover,
.eb .eb-submit:focus-visible,
.eb .eb-btn:hover { background: var(--olive-deep); color: #fff; }
.eb .eb-submit[disabled] { opacity: 0.6; cursor: progress; }
.eb .eb-btn { width: auto; display: inline-block; min-height: 50px; padding: 14px 40px; }

.eb .eb-thanks { display: none; padding: 40px 0 8px; text-align: center; outline: none; }
.eb [data-state="thanks"] .eb-form-wrap { display: none; }
.eb [data-state="thanks"] .eb-thanks { display: block; }
.eb .eb-thanks-text { font-family: var(--serif); font-size: clamp(25px, 3.2vw, 31px); font-style: italic; line-height: 1.32; color: var(--olive); }

/* Calendar ------------------------------------------------------------------ */

.eb .eb-cal { padding: 18px; border: 1px solid var(--line); background: #fff; }
.eb .eb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eb .eb-cal-month { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--olive); font-variant-numeric: lining-nums; }
.eb .eb-cal-nav {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: var(--olive);
	cursor: pointer;
}
.eb .eb-cal-nav:hover { background: var(--stone); }
.eb .eb-cal-nav[disabled] { opacity: 0.3; cursor: default; background: #fff; }
.eb .eb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.eb .eb-cal-dow { padding: 4px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #a39f93; }
.eb .eb-cal-day {
	display: grid;
	place-items: center;
	justify-self: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1;
	color: #c9c5ba;
}
.eb .eb-cal-day.is-open { background: var(--olive-soft); color: var(--ink); font-weight: 500; cursor: pointer; transition: background 0.15s; }
.eb .eb-cal-day.is-open:hover { background: var(--champagne-soft); }
.eb .eb-cal-day.is-picked,
.eb .eb-cal-day.is-picked:hover { background: var(--olive); color: #fff; }
.eb .eb-cal-day:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.eb .eb-cal-picked { margin-top: 14px; font-size: 14.5px; line-height: 1.4; text-align: center; color: var(--ink); }
.eb .eb-cal-picked.is-empty { color: #8a8578; }

/* The booking buttons added to each Investment card. */
.eb-card-book {
	display: flex;
	justify-content: center;
	padding: 26px 0 6px;
}
.eb-card-book .eb-trigger,
a.eb-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 14px 32px;
	border: 1px solid #3b4a2b;
	background: #3b4a2b;
	color: #fff !important;
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.eb-card-book .eb-trigger:hover,
a.eb-trigger:hover { background: transparent; color: #3b4a2b !important; }

/* Smaller screens ---------------------------------------------------------- */

@media (max-width: 640px) {
	.eb .eb-modal { padding: 0; align-items: flex-end; }
	.eb .eb-panel { max-height: 94vh; max-height: 94dvh; padding: 30px 20px 32px; }
	.eb .eb-row { grid-template-columns: 1fr; }
	.eb .eb-cal { padding: 14px 8px; }
	.eb .eb-pill { flex: 1 1 100%; }
	.eb .eb-pill span { width: 100%; justify-content: center; }
}
