/**
* =====================================
* Base
* =====================================
*/

body {
	background-color: var(--color-second-light);
	margin: auto;
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

/**
* =====================================
* Header - banner, establishment brand, lang selector
* =====================================
*/

#header-logo {
	width: 100%;
	margin: 0;
	background-color: #ffffff;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 0;
	border-bottom: 2px solid var(--color-main, #cccccc);
}

.header-logo-image {
	max-height: 90px;
	max-width: 320px;
	object-fit: contain;
}

.header-band {
	width: 100%;
	background-color: #ffffff;
}

.header-body {
	display: var(--page-header);
	width: 60vw;
	min-width: 800px;
	margin: auto;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 20px;
}

.establishment-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.establishment-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.establishment-name {
	font-family: var(--theme-font-family-bold, sans-serif);
	font-weight: 700;
	font-size: 27px;
	color: var(--color-main);
	line-height: 1.2;
}

.establishment-subtitle {
	font-size: 14px;
	color: var(--color-dark-grey, #615f5f);
}

.lang-card-element {
	width: fit-content;
	min-width: 0;
}

/* Dropdown lang selector (globe + code + chevron) */
.menu-lang-button {
	width: 100px;
	height: 32px;
	background-color: white;
	border: 1px solid #dddddd;
	border-radius: 7px;
	font-size: 16px;
	line-height: 1;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.menu-lang-button .lang-icon {
	display: block;
	height: 16px;
	width: 16px;
	flex-shrink: 0;
}

#current-lang {
	display: inline-block;
}

.menu-lang-content {
	width: 100%;
	display: none;
	position: absolute;
	border: 1px solid #dddddd;
	background-color: white;
	border-radius: 7px;
	text-align: center;
	z-index: 1;
	top: 30px;
	left: 0px;
}

.menu-lang-button:hover .menu-lang-content,
.menu-lang-button[aria-expanded="true"] .menu-lang-content {
	display: block; /* desktop hover + mobile tap state */
}

.menu-lang-content a {
	display: block;
	font-size: var(--font-size-14);
	line-height: var(--line-spacing-20);
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	text-decoration: none;
	color: var(--color-dark-grey);
	padding: 12px 16px;
	border-bottom: 1px solid #DDDDDD;
}

.menu-lang-content a:last-child {
	border-bottom: 0px;
}

.menu-lang-content a:hover {
	background-color: #f1f1f1;
}

/* Inline lang selector (FR | DE | EN) - alternate mode, theme.displayInlineLangSelector */
.inline-lang-button {
	cursor: pointer;
}

.inline-lang-selector .active {
	font: normal normal bold 18px/27px Poppins !important;
	letter-spacing: 0px;
	color: #000000 !important;
	text-transform: uppercase;
}

.inline-lang-selector .inline-lang-button {
	font: normal normal bold 18px/27px Poppins;
	letter-spacing: 0px;
	color: #C0C0C0;
	text-transform: uppercase;
}

.inline-lang-separator {
	display: inline-block;
	width: 3px;
	height: 15px;
	background-color: currentColor;
	margin: 0 8px;
	vertical-align: middle;
	color: #C0C0C0;
}

/**
* =====================================
* Content layout - info panel (left) + form card (right)
* =====================================
*/

#content {
	width: 100%;
	background-color: var(--color-second-light);
}

.body-content {
	display: flex;
	justify-content: center;
	margin: auto;
	padding-top: 10px;
	padding-bottom: 10px;
}

.body-content .home-content {
	width: 60vw;
	min-width: 800px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.info-panel {
	max-width: 520px;
	width: 30rem;
	display: flex;
	flex-direction: column;
	gap: 5px;
	overflow: hidden;
	margin: 20px 0;
}

.info-panel h2 {
	margin: 0;
	font-family: var(--theme-font-family-bold, sans-serif);
	font-weight: 700;
	font-size: 18px;
	color: var(--color-main, #000);
}

.info-panel p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-dark-grey, #615f5f);
}

.info-column {
	max-width: 520px;
	width: 30rem;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.promo-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 2px solid #1c1c1f;
	border-radius: 16px;
	background: #ffffff;
	box-sizing: border-box;
	max-width: 100%;
}

.promo-card__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.promo-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--color-dark-grey, #615f5f);
}

.promo-card__link,
.results-list__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 6px 12px;
	border-radius: 20px;
	background: #eeeeee;
	color: #1c1c1f;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.promo-card__link:hover,
.results-list__link:hover {
	background: #e0e0e0;
}

.promo-card__image {
	height: 95px;
	width: auto;
	max-width: 40%;
	border-radius: 8px;
	flex-shrink: 0;
	object-fit: contain;
}

.guest-form {
	max-width: 520px;
	margin: 20px 0;
	padding: 0;
	width: 30rem;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow: hidden;
}

.guest-form__title {
	padding: 20px 30px;
	font-weight: 700;
	font-family: var(--theme-font-family-bold, sans-serif);
	color: #FFFFFF;
	line-height: 1.2;
	text-align: left;
	background-color: var(--color-card-header, #2b2b2b);
	margin: 0;
	border-radius: 0;
}

.guest-form__fields {
	padding: 0 30px 40px 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/**
* =====================================
* Form elements - inputs, buttons, error banner
* =====================================
*/

.guest-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.guest-field__label {
	font-size: 13px;
	font-weight: 600;
	color: #4a4a4a;
}

.guest-input {
	height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	border: 1px solid #e2e2e2;
	font-size: 14px;
	outline: none;
	transition: all 0.2s ease;
	background: #f9f9f9;
}

.guest-input:focus {
	border-color: var(--color-button-primary, #A71F2D);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(167, 31, 45, 0.15);
}

.action-button {
	background-color: var(--color-button-primary, #A71F2D);
	color: white;
	height: 42px;
	border-radius: 50px;
	font-family: var(--theme-font-family-bold, "linotype-tradegothiclt-bold"), sans-serif;
	font-size: 16px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
}

.action-button:hover:not(:disabled) {
	opacity: 0.85;
	filter: brightness(1.1);
}

.disabled-action-button {
	background-color: var(--color-disable-button, #A8A8A8);
	color: white;
	height: 42px;
	border-radius: 50px;
	font-family: var(--theme-font-family-bold, "linotype-tradegothiclt-bold"), sans-serif;
	font-size: 16px;
	border: none;
	cursor: not-allowed;
	opacity: 0.6;
	width: 100%;
	transition: all 0.2s ease;
}

.error-banner {
	background-color: rgb(248, 135, 135);
	color: #ffffff;
	padding: 10px;
	box-sizing: border-box;
	border-radius: 8px;
	border: 1px solid rgb(177, 55, 55);
	margin-bottom: 20px;
}

/**
* =====================================
* Redirect / success screen
* =====================================
*/

.redirect-screen {
	max-width: 520px;
	width: 30rem;
	margin: 20px 0;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
	padding: 40px 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	box-sizing: border-box;
}

.redirect-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--color-main);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 6px;
}

.redirect-title {
	margin: 0;
	font-family: var(--theme-font-family-bold, sans-serif);
	font-size: 20px;
	color: var(--color-main);
}

.redirect-text {
	margin: 0;
	font-size: 14px;
	color: var(--color-dark-grey);
	line-height: 1.5;
}

.redirect-coupon {
	font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--color-main);
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	padding: 6px 16px;
}

.redirect-countdown {
	margin: 0;
	font-size: 13px;
	color: var(--color-dark-grey);
	font-variant-numeric: tabular-nums;
}

.results-screen {
	align-items: stretch;
	text-align: left;
}

.results-screen .redirect-title,
.results-screen .redirect-text {
	text-align: center;
}

.results-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin-top: 10px;
}

.results-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
}

.results-list__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.results-list__room {
	font-weight: 700;
	color: var(--color-main);
}

.results-list__occupancy {
	font-size: 13px;
	color: var(--color-dark-grey);
}

.results-list__coupon {
	font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
	font-size: 13px;
	color: var(--color-dark-grey);
}

/**
* =====================================
* Invalid link page
* =====================================
*/

.invalid-link-page {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.invalid-link-card {
	max-width: 420px;
	text-align: center;
	padding: 40px 30px;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
}

.invalid-link-card h1 {
	font-family: var(--theme-font-family-bold, sans-serif);
	font-size: 20px;
	color: var(--color-main);
	margin: 0 0 10px;
}

.invalid-link-card p {
	margin: 0;
	color: var(--color-dark-grey);
	font-size: 14px;
	line-height: 1.5;
}

/**
* =====================================
* Footer
* =====================================
*/

#footer {
	margin: auto;
	width: 55vw;
	color: var(--color-dark-grey);
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	font-size: var(--font-size-14);
	line-height: var(--line-spacing-20);
	margin-bottom: 20px;
	padding-top: 30px;
	padding-bottom: 30px;
}

#footer-copyright {
	text-align: center;
}
