:root {
	--albizia-contact-surface: #ffffff;
	--albizia-contact-card: #ffffff;
	--albizia-contact-text: #1f1f1f;
	--albizia-contact-muted: rgba(31, 31, 31, 0.7);
	--albizia-contact-border: rgba(0, 0, 0, 0.08);
	--albizia-contact-highlight: #f08c00;
	--albizia-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body.albizia-contact-body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	background: var(--albizia-contact-surface);
	color: var(--albizia-contact-text);
	margin: 0;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.albizia-contact-page,
.albizia-contact-page *,
.albizia-contact-page *::before,
.albizia-contact-page *::after,
.albizia-footer,
.albizia-footer *,
.albizia-contact__top-bar,
.albizia-contact__top-bar * {
	box-sizing: border-box;
}

/* Shared chrome: top bar */
.albizia-top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 76px;
	padding: 0 16px;
	background: transparent;
	box-shadow: none;
	transition:
		box-shadow 0.4s var(--albizia-ease),
		background 0.4s var(--albizia-ease);
	z-index: 999998;
}

/* Default (Desktop): Hide mobile image */
.albizia-contact-mobile-image {
	display: none;
}

.albizia-top-bar--visible {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 12px 32px rgba(33, 33, 33, 0.08);
}

.albizia-top-bar__inner {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.albizia-top-bar__logo {
	text-decoration: none;
}

.albizia-top-bar__logo-picture {
	display: flex;
}

.albizia-top-bar__logo-image {
	display: block;
	height: 84px;
	width: auto;
	margin-top: 6px;
	transition: opacity 0.3s var(--albizia-ease);
}

/* Language Switcher Styles */
.albizia-language-switcher {
	position: absolute;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	z-index: 20;
}

.albizia-language-switcher__toggle {
	appearance: none;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(33, 33, 33, 0.08);
	border-radius: 999px;
	padding: 8px 18px;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	cursor: pointer;
	color: #212121;
	box-shadow: 0 12px 30px rgba(33, 33, 33, 0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition: all 0.3s var(--albizia-ease);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

.albizia-language-switcher:hover .albizia-language-switcher__toggle,
.albizia-language-switcher.is-open .albizia-language-switcher__toggle {
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.albizia-language-switcher__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.albizia-language-switcher__flag svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.albizia-language-switcher__arrow {
	margin-left: 2px;
	opacity: 0.6;
	transition: transform 0.3s var(--albizia-ease);
}

.albizia-language-switcher.is-open .albizia-language-switcher__arrow {
	transform: rotate(180deg);
}

/* Dropdown Menu */
.albizia-language-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 8px;
	min-width: 150px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s var(--albizia-ease);
	border: 1px solid rgba(0, 0, 0, 0.05);
	pointer-events: none;
}

.albizia-language-switcher.is-open .albizia-language-switcher__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.albizia-language-switcher__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 8px;
	text-decoration: none;
	color: #212121;
	transition: background 0.2s var(--albizia-ease);
	font-size: 0.9rem;
}

.albizia-language-switcher__item:hover {
	background: rgba(0, 0, 0, 0.04);
}

.albizia-language-switcher__item.is-active {
	background: rgba(0, 0, 0, 0.04);
	font-weight: 700;
}

.albizia-top-bar--visible .albizia-language-switcher__toggle {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.albizia-top-bar--visible .albizia-language-switcher:hover .albizia-language-switcher__toggle,
.albizia-top-bar--visible .albizia-language-switcher.is-open .albizia-language-switcher__toggle {
	background: rgba(0,0,0,0.03);
}

.admin-bar .albizia-top-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .albizia-top-bar {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.albizia-top-bar {
		padding: 0 12px;
		height: 72px;
	}

	.albizia-top-bar__logo-image {
		height: 72px;
	}

	.albizia-language-switcher {
		left: 12px;
	}

	.albizia-language-switcher__toggle {
		padding: 6px 14px;
		font-size: 0.8rem;
	}

	.albizia-language-switcher__menu {
		min-width: 130px;
	}

	.albizia-language-switcher__item {
		font-size: 0.8rem;
		padding: 8px 12px;
	}
}

.albizia-contact__top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 76px;
	padding: 0 16px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 18px 40px rgba(41, 23, 8, 0.08);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	z-index: 99999;
}

.albizia-contact__top-bar .albizia-top-bar__inner {
	justify-content: center;
}

.albizia-contact__top-bar .albizia-top-bar__logo-image {
	height: 82px;
	margin-top: 4px;
}

.admin-bar .albizia-contact__top-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .albizia-contact__top-bar {
		top: 46px;
	}
}

.albizia-contact-body p {
	margin: 0 0 0.85rem;
	line-height: 1.65;
}

.albizia-contact-page {
	padding: clamp(5.5rem, 8vw, 6.8rem)
			clamp(0.8rem, 2.1vw, 2.1rem)
			clamp(2rem, 3.2vw, 2.7rem);
	background: var(--albizia-contact-surface);
	color: var(--albizia-contact-text);
	min-height: 100vh;
}

.albizia-contact-wrapper {
	display: flex;
	flex-direction: column;
	gap: clamp(0.85rem, 1.6vw, 1.6rem);
	max-width: 980px;
	margin: 0 auto clamp(1.25rem, 2.6vw, 2.2rem);
}

.albizia-contact-main {
	display: grid;
	gap: clamp(0.65rem, 1.4vw, 1.3rem);
	grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.4fr);
	align-items: stretch;
}

.albizia-contact-portrait {
	margin: 0;
	border-radius: 32px;
	overflow: hidden;
	border: 1px solid var(--albizia-contact-border);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
	background: #fff;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
}

.albizia-contact-portrait img {
	position: static;
	inset: auto;
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	object-position: bottom center;
}

.albizia-contact-brand {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.12rem;
	letter-spacing: 0.02em;
}

.albizia-contact-hosts {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.albizia-contact-channels a {
	color: var(--albizia-contact-highlight);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.albizia-contact-form-area {
	background: var(--albizia-contact-card);
	border-radius: 24px;
	padding: clamp(0.95rem, 2.2vw, 1.4rem);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--albizia-contact-border);
}

.albizia-contact-info-card {
	background: var(--albizia-contact-card);
	border-radius: 20px;
	padding: clamp(0.8rem, 1.9vw, 1.2rem);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--albizia-contact-border);
	line-height: 1.3;
}

.albizia-contact-info-grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.45rem, 1vw, 0.8rem);
	align-items: flex-start;
}

.albizia-contact-info-block {
	flex: 1 1 260px;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
}

.albizia-contact-meta-title {
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	margin: 0;
	color: var(--albizia-contact-muted);
}

.albizia-contact-channel-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0.2rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.92rem;
}

.albizia-contact-channel-row:first-of-type {
	border-top: none;
	padding-top: 0;
}

.albizia-contact-channel-row span {
	color: var(--albizia-contact-muted);
	font-weight: 600;
	white-space: nowrap;
}

.albizia-contact-channel-row a {
	color: var(--albizia-contact-highlight);
	text-decoration: none;
	font-weight: 600;
	word-break: break-word;
}

.albizia-contact-copy p {
	margin-top: 0;
	font-size: 0.94rem;
	color: var(--albizia-contact-muted);
}

.albizia-contact-copy a {
	color: var(--albizia-contact-highlight);
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.albizia-contact-notice {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.albizia-contact-notice--success {
	background: #e9f9f1;
	color: #0b6b3a;
}

.albizia-contact-notice--error {
	background: #fef2f2;
	color: #991b1b;
}

.albizia-contact-notice strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 1rem;
	letter-spacing: 0.01em;
}

.albizia-contact-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.albizia-contact-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.85rem;
}

.albizia-contact-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.93rem;
	color: var(--albizia-contact-muted);
}

.albizia-contact-field--full {
	width: 100%;
}

.albizia-contact-field input,
.albizia-contact-field textarea {
	border-radius: 14px;
	border: 1px solid var(--albizia-contact-border);
	padding: 0.7rem 0.85rem;
	font-size: 0.94rem;
	background: #f9f9f9;
	font-family: inherit;
	color: var(--albizia-contact-text);
	transition:
		border-color 0.2s var(--albizia-ease),
		background 0.2s var(--albizia-ease),
		box-shadow 0.2s var(--albizia-ease);
}

.albizia-contact-field textarea {
	min-height: 160px; /* taller message box for multi-line input */
}

.albizia-contact-field input:focus,
.albizia-contact-field textarea:focus {
	outline: none;
	border-color: var(--albizia-contact-highlight);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(240, 140, 0, 0.15);
}

.albizia-contact-field.has-error input,
.albizia-contact-field.has-error textarea,
.albizia-contact-checkbox.has-error input {
	border-color: #d92c2c;
}

.albizia-contact-field em,
.albizia-contact-checkbox em {
	color: #b42323;
	font-size: 0.85rem;
}

.albizia-contact-checkbox {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.9rem;
	color: var(--albizia-contact-muted);
	line-height: 1.4;
}

.albizia-contact-checkbox input {
	margin-top: 0.2rem;
	width: 1.1rem;
	height: 1.1rem;
}

.albizia-contact-checkbox a {
	color: var(--albizia-contact-highlight);
	text-decoration: underline;
}

.albizia-contact-checkbox input:focus-visible {
	outline: 2px solid var(--albizia-contact-highlight);
	outline-offset: 2px;
}

.albizia-contact-submit {
	align-self: flex-start;
	background: linear-gradient(135deg, #ffa62b, var(--albizia-contact-highlight));
	color: #fff;
	border: none;
	border-radius: 16px;
	padding: 0.75rem 1.7rem;
	font-size: 0.93rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 15px 35px rgba(240, 140, 0, 0.25);
	transition:
		transform 0.2s var(--albizia-ease),
		box-shadow 0.2s var(--albizia-ease);
	font-family: inherit;
}

.albizia-contact-submit:disabled {
	background: #ccc;
	color: #666;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.albizia-contact-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 35px rgba(240, 140, 0, 0.3);
}

.albizia-contact-submit:disabled:hover {
	transform: none;
	box-shadow: none;
}

.albizia-contact-submit--success {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	cursor: default;
	box-shadow: 0 15px 35px rgba(34, 197, 94, 0.25);
}

.albizia-contact-submit--success svg {
	flex-shrink: 0;
}

.albizia-contact-map-section {
	max-width: 1200px;
	margin: 0;
	background: #fff;
	border-radius: 24px;
	padding: clamp(0.95rem, 2.7vw, 1.6rem);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.albizia-contact-map-header h2 {
	margin-top: 0;
	margin-bottom: 0.35rem;
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	letter-spacing: 0.01em;
	color: var(--albizia-contact-text);
}

.albizia-contact-map-header p {
	margin-top: 0;
	max-width: 680px;
	color: var(--albizia-contact-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.albizia-contact-map-frame {
	margin-top: 0.65rem;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.albizia-contact-map-frame iframe {
	display: block;
	width: 100%;
	min-height: 310px;
}

@media (max-width: 900px) {
	.albizia-contact-main {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	/* Hide the main sidebar portrait on mobile */
	.albizia-contact-portrait {
		display: none;
	}

	/* Show and style the mobile image inside the form area */
	.albizia-contact-mobile-image {
		display: block;
		width: 120px;
		min-width: 120px;
		height: auto;
		object-fit: contain;
		border-radius: 0;
		margin: 0;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	}

	/* Flex container for the image + text row */
	.albizia-contact-copy {
		display: flex;
		align-items: flex-start;
		gap: 1rem;
		margin-bottom: 1.5rem;
	}

	.albizia-contact-copy p {
		margin: 0;
		font-size: 0.95rem;
		line-height: 1.5;
	}

	.albizia-contact-form-area,
	.albizia-contact-info-card {
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	}

	.albizia-contact__top-bar {
		padding: 0 12px;
	}
}

@media (max-width: 600px) {
	.albizia-contact-page {
		padding: 5.5rem 1rem 3rem;
	}

	.albizia-contact-submit {
		width: 100%;
		text-align: center;
	}

	.albizia-contact-map-frame iframe {
		min-height: 320px;
	}
}

.albizia-footer {
	width: 100%;
	padding: 2rem 1rem;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	border-top: 1px solid rgba(0, 0, 0, 0.04);
	margin-top: auto;
	position: relative;
	z-index: 10;
}

.albizia-footer-content {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.albizia-footer-row {
	margin: 0.25rem 0;
	font-size: 0.875rem;
}

.albizia-footer-row:last-child {
	font-weight: 600;
}

.albizia-footer-address {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	flex-wrap: nowrap;
}

.albizia-footer-address-line {
	white-space: nowrap;
}

.albizia-footer-link {
	color: inherit;
	text-decoration: none;
	margin: 0 0.75rem;
}

.albizia-footer-link:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.albizia-footer-link {
		margin: 0 0.5rem;
	}

	.albizia-footer-address {
		gap: 0.4rem;
	}
}
/* === Equal height with form, image never cropped === */

/* Desktop / large screens */
@media (min-width: 901px) {
	.albizia-contact-main {
		align-items: stretch; /* both columns use the same row height */
	}

	.albizia-contact-portrait {
		position: relative;
		margin: 0;
		border-radius: 32px;
		overflow: hidden;
		border: 1px solid var(--albizia-contact-border);
		box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
		background: #fff;

		display: flex;
		align-items: flex-end;
		justify-content: center;
		height: 100%;
	}

	.albizia-contact-portrait img {
		position: static;   /* no absolute positioning */
		inset: auto;

		/* fit inside the card, never cropped */
		width: 100%;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: bottom center;
	}
}

/* On tablet/phone, let the image behave naturally (stacked layout) */
@media (max-width: 900px) {
	.albizia-contact-portrait {
		display: none;
	}

	.albizia-contact-portrait img {
		display: none;
	}
}
