/**
 * Contact page v2 — on the Oplus Design System (oplus-ds.css tokens).
 *
 * One bold element: the "desk" — a deep brand-ink panel holding the live
 * office status and the numbers set as type, like a business card. Every
 * other surface is quiet: white page, hairlines, no decorative icons.
 */

.ct {
	--ct-desk: #13241a;
	--ct-desk-line: rgba(255, 255, 255, 0.12);
	--ct-desk-muted: rgba(255, 255, 255, 0.66);
	--ct-wa: #1a7a45;
	--ct-wa-hover: #146439;
	--ct-open: #4fd48a;
	--ct-closed: #e6a23c;

	color: var(--o-text);
	font-family: var(--o-font);
	font-size: var(--o-fs-md);
	line-height: var(--o-lh-body);
	background: var(--o-surface);
}

.rtl .ct { font-family: var(--o-font-ar); }

.ct h1, .ct h2, .ct h3, .ct p, .ct dl, .ct dd, .ct address { margin: 0; }
.ct h1, .ct h2, .ct h3 { color: var(--o-ink); font-family: inherit; }
.ct address { font-style: normal; }

.ct-h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.ct-h3 { font-size: var(--o-fs-lg); font-weight: 700; line-height: 1.3; }
.rtl .ct-h2, .rtl .ct-title { letter-spacing: 0; }

/* ---- intro + desk -------------------------------------------------------- */

.ct-intro { padding-block: var(--o-s-6) clamp(3rem, 2rem + 4vw, 5rem); }

.ct-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: end;
}

.ct-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(2rem, 1rem + 4vw, 4.5rem); padding: 0; list-style: none; font-size: var(--o-fs-sm); color: var(--o-muted); }
.ct-crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--o-line-strong); }
.ct-crumbs a { color: var(--o-muted); text-decoration: none; }
.ct-crumbs a:hover { color: var(--o-brand-600); text-decoration: underline; }
.ct-crumbs [aria-current] { color: var(--o-ink); font-weight: 600; }

.ct-title {
	max-width: 13ch;
	font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.rtl .ct-title { line-height: 1.25; font-weight: 700; }

.ct .ct-lede { max-width: 54ch; margin-top: var(--o-s-6); font-size: var(--o-fs-lg); line-height: 1.6; color: var(--o-text); }
.ct .ct-licence { margin-top: var(--o-s-4); padding-inline-start: 12px; border-inline-start: 2px solid var(--o-brand-600); color: var(--o-muted); font-size: var(--o-fs-sm); font-weight: 600; }

.ct-desk {
	padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
	border-radius: var(--o-r-lg);
	background: var(--ct-desk);
	color: #fff;
}

.ct .ct-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-height: 24px;
	padding-bottom: var(--o-s-5);
	border-bottom: 1px solid var(--ct-desk-line);
	color: var(--ct-desk-muted);
	font-size: var(--o-fs-sm);
	font-weight: 600;
}
.ct-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ct-desk-muted); flex: none; }
.ct-status.is-open .ct-status__dot { background: var(--ct-open); box-shadow: 0 0 0 4px rgba(79, 212, 138, 0.18); }
.ct-status.is-closed .ct-status__dot { background: var(--ct-closed); }
.ct-status.is-open .ct-status__text, .ct-status.is-closed .ct-status__text { color: #fff; }
.ct-status__time { color: var(--ct-desk-muted); font-weight: 500; }
.ct-status__time:not(:empty)::before { content: "·"; margin-inline-end: 10px; }

.ct-line { display: block; padding-block: var(--o-s-5); border-bottom: 1px solid var(--ct-desk-line); color: #fff; text-decoration: none; }
.ct-line:last-child { border-bottom: 0; padding-bottom: 0; }
.ct .ct-line__k { display: block; color: var(--ct-desk-muted); font-size: var(--o-fs-sm); font-weight: 600; }
.ct .ct-line__v {
	display: block;
	margin-top: 2px;
	color: #fff;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	overflow-wrap: anywhere;
}
.ct .ct-line__v--sm { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
.ct-line--link { position: relative; padding-inline-end: 28px; transition: color var(--o-t-fast) ease; }
.ct-line--link::after {
	content: "";
	position: absolute;
	inset-inline-end: 4px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-inline-end: 2px solid #fff;
	transform: translateY(-50%) rotate(45deg);
	opacity: 0.5;
	transition: opacity var(--o-t-fast) ease;
}
.rtl .ct-line--link::after { transform: translateY(-50%) rotate(-45deg); }
.ct-line--link:hover .ct-line__v { color: #c9f2d7; }
.ct-line--link:hover::after { opacity: 1; }
.ct-line--link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* ---- buttons --------------------------------------------------------------- */

.ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--o-r-md);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color var(--o-t-fast) ease, border-color var(--o-t-fast) ease, color var(--o-t-fast) ease;
}
.ct-btn .o-i { width: 20px; height: 20px; }
.ct-btn--wa { width: 100%; margin-top: var(--o-s-4); background: var(--ct-wa); color: #fff !important; }
.ct-btn--wa:hover { background: var(--ct-wa-hover); }
.ct-btn--wa:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ct-btn--send { width: 100%; background: var(--o-brand-600); color: #fff !important; }
.ct-btn--send:hover { background: var(--o-brand-700); }
.ct-btn--send[disabled] { opacity: 0.7; cursor: progress; }
.ct-btn--ghost { border-color: var(--o-line-strong); background: var(--o-surface); color: var(--o-ink) !important; }
.ct-btn--ghost:hover { border-color: var(--o-ink); }
.ct-btn:focus-visible { outline: 2px solid var(--o-brand-600); outline-offset: 3px; }

/* ---- write + visit --------------------------------------------------------- */

.ct-write { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); border-top: 1px solid var(--o-line); }
.ct-write__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }

.ct-form-wrap { max-width: 640px; }
.ct .ct-note { margin-top: var(--o-s-2); color: var(--o-muted); }

.ct-form { display: grid; gap: var(--o-s-6); margin-top: var(--o-s-8); }
.ct-field { display: grid; gap: 8px; }
.ct-label { color: var(--o-ink); font-size: var(--o-fs-sm); font-weight: 700; }
.ct-opt { margin-inline-start: 4px; color: var(--o-muted); font-weight: 500; }
.ct .ct-hint { color: var(--o-muted); font-size: 0.8125rem; }

.ct-input {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--o-line-strong);
	border-radius: var(--o-r-md);
	background: var(--o-surface);
	color: var(--o-ink);
	font: inherit;
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color var(--o-t-fast) ease, box-shadow var(--o-t-fast) ease;
}
.ct-input:hover { border-color: var(--o-text); }
.ct-input:focus { outline: none; border-color: var(--o-brand-600); box-shadow: 0 0 0 3px rgba(36, 122, 59, 0.18); }
.ct-input[aria-invalid="true"] { border-color: var(--o-danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
textarea.ct-input { min-height: 120px; resize: vertical; line-height: 1.5; }
.ct-select {
	appearance: none;
	-webkit-appearance: none;
	padding-inline-end: 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='%2314261c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.rtl .ct-select { background-position: left 16px center; }

.ct-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--o-s-2); }
.ct-code { padding-inline-end: 8px; }

.ct-check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--o-text); font-size: var(--o-fs-sm); cursor: pointer; }
.ct-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--o-brand-600); flex: none; }

.ct .ct-err { color: var(--o-danger); font-size: var(--o-fs-sm); font-weight: 600; }

.ct-summary { padding: var(--o-s-4) var(--o-s-5); border: 1px solid var(--o-danger); border-inline-start-width: 4px; border-radius: var(--o-r-md); background: #fdf3f2; }
.ct-summary:focus { outline: 2px solid var(--o-danger); outline-offset: 2px; }
.ct .ct-summary__h { color: var(--o-ink); font-weight: 700; }
.ct-summary ul { margin: 6px 0 0; padding-inline-start: 18px; }
.ct-summary a { color: var(--o-danger); font-weight: 600; }

.ct-send { display: grid; gap: var(--o-s-3); }
.ct .ct-consent { color: var(--o-muted); font-size: 0.8125rem; }
.ct-consent a { color: var(--o-ink); text-decoration: underline; text-underline-offset: 2px; }
.ct .ct-fail { padding: 12px 14px; border-radius: var(--o-r-md); background: #fdf3f2; color: var(--o-danger); font-weight: 600; }

.ct-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ct-done { display: grid; justify-items: start; gap: var(--o-s-3); margin-top: var(--o-s-8); padding: var(--o-s-8); border-inline-start: 4px solid var(--o-brand-600); background: var(--o-brand-50); }
.ct-done:focus { outline: none; }
.ct .ct-done__k { color: var(--o-brand-700); font-size: var(--o-fs-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rtl .ct-done__k { letter-spacing: 0; }
.ct .ct-done__msg { color: var(--o-ink); font-size: var(--o-fs-lg); font-weight: 600; }

.ct-visit { padding-top: 6px; }
.ct .ct-address { margin-top: var(--o-s-4); color: var(--o-ink); font-size: var(--o-fs-lg); line-height: 1.55; }
.ct .ct-plus { margin-top: var(--o-s-2); color: var(--o-muted); font-size: var(--o-fs-sm); }
.ct-plus bdo { color: var(--o-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.ct-hours { width: 100%; margin-top: var(--o-s-6); border-collapse: collapse; font-size: var(--o-fs-sm); }
.ct-hours th, .ct-hours td { padding: 9px 0; border-bottom: 1px solid var(--o-line); text-align: start; font-weight: 500; }
.ct-hours th { color: var(--o-text); }
.ct-hours td { text-align: end; color: var(--o-ink); font-variant-numeric: tabular-nums; }
.ct-hours tr.is-off td, .ct-hours tr.is-off th { color: var(--o-muted); }
.ct-hours tr.is-today th, .ct-hours tr.is-today td { color: var(--o-ink); font-weight: 700; }
.ct-hours .ct-today { margin-inline-start: 8px; padding: 1px 7px; border-radius: 6px; background: var(--o-brand-50); color: var(--o-brand-700); font-size: 0.75rem; font-weight: 700; }
.ct .ct-tz { margin-top: 8px; color: var(--o-muted); font-size: 0.8125rem; }

.ct-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-s-3) var(--o-s-5); margin-top: var(--o-s-6); }
.ct-maplink { min-height: 44px; padding: 0; border: 0; background: none; color: var(--o-brand-700); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ct-maplink:focus-visible { outline: 2px solid var(--o-brand-600); outline-offset: 3px; }
.ct-map { margin-top: var(--o-s-5); overflow: hidden; border-radius: var(--o-r-md); background: var(--o-surface-2); aspect-ratio: 16 / 10; }
.ct-map[hidden] { display: none; }
.ct-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---- answers --------------------------------------------------------------- */

.ct-answers { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--o-surface-2); }
.ct .ct-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--o-s-8) clamp(2rem, 1rem + 4vw, 5rem); margin-top: var(--o-s-8); }
.ct-qa__item { padding-top: var(--o-s-4); border-top: 1px solid var(--o-line-strong); }
.ct-qa dt { color: var(--o-ink); font-weight: 700; line-height: 1.4; }
.ct .ct-qa dd { margin-top: 6px; max-width: 58ch; }

.ct .ct-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-top: var(--o-s-6); border-top: 1px solid var(--o-line); }
.ct-more span { color: var(--o-muted); font-weight: 600; }
.ct-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--o-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--o-line-strong); text-underline-offset: 4px; }
.ct-more a:hover { color: var(--o-brand-700); text-decoration-color: currentColor; }

/* ---- responsive ------------------------------------------------------------- */

@media (max-width: 1023px) {
	.ct-intro__grid, .ct-write__grid { grid-template-columns: minmax(0, 1fr); }
	.ct-form-wrap { max-width: none; }
}

@media (max-width: 767px) {
	.ct-intro { padding-block: var(--o-s-4) var(--o-s-10); }
	.ct-crumbs ol { margin-bottom: var(--o-s-6); }
	.ct .ct-qa { grid-template-columns: minmax(0, 1fr); gap: var(--o-s-6); }
	.ct-phone { grid-template-columns: 100px minmax(0, 1fr); }
	.ct .ct-more { gap: 0 16px; }
	.ct-more span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ct * { transition: none !important; }
}

/* Email: one or more addresses, each its own link. */
.ct .ct-mail { display: block; width: fit-content; margin-top: 4px; color: #fff; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ct .ct-mail:hover { color: #c9f2d7; text-decoration: underline; text-underline-offset: 3px; }
.ct .ct-mail:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* The live status is longer than the server-rendered hours line and can wrap:
   reserve two lines so the panel does not grow when it updates (CLS). */
.ct .ct-status { min-height: calc(2 * 1.5em + var(--o-s-5)); align-content: flex-start; }

@media (max-width: 767px) {
	.ct-status__time { flex-basis: 100%; padding-inline-start: 18px; }
	.ct-status__time:not(:empty)::before { content: none; }
}
