/* =====================================================================
   Vanaswara contact / enquiry form (pages/contact.html)
   Loaded after custom.css and enrich.css; uses the --vs-* tokens.
   All classes are prefixed cf- so nothing leaks into other pages.
   ===================================================================== */

.cf-section {
	--cf-radius: 10px;
	--cf-border: rgba(45, 69, 44, 0.22);
	--cf-error: #a3341f;
	--cf-error-bg: #fbefeb;
	--cf-focus: 0 0 0 3px rgba(184, 134, 59, 0.35);
	padding: 64px 0 56px;
	background: #fff;
}

/* ---------- Intro ---------- */
.cf-intro { max-width: 640px; margin-bottom: 28px; }
.cf-intro__title { margin: 0 0 12px; color: var(--vs-green-800); font-weight: 600; }
.cf-intro__lead { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--vs-ink); }

/* ---------- Card ---------- */
.cf-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--vs-line);
	border-radius: 14px;
	padding: 36px 36px 30px;
	box-shadow: 0 24px 48px -36px rgba(31, 51, 32, 0.45);
}
.cf-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(90deg, var(--vs-green-800), var(--vs-green-600) 60%, var(--vs-ochre));
}

.cf-noscript p {
	margin: 0 0 24px;
	padding: 14px 16px;
	border-radius: var(--cf-radius);
	background: var(--vs-cream);
	border: 1px solid var(--vs-line);
}

/* ---------- Fieldsets ---------- */
.cf-fieldset { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.cf-legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin: 0 0 16px;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid var(--vs-line);
	font-family: var(--vs-font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--vs-ink);
}
.cf-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--vs-green-800);
	color: #fff;
	font-family: var(--vs-font-body);
	font-size: 13px;
	font-weight: 500;
}
.cf-optional {
	font-family: var(--vs-font-body);
	font-size: 14px;
	font-weight: 300;
	color: var(--vs-muted);
}
.cf-legend .cf-optional { margin-left: 2px; }

/* ---------- Topic cards (radio group) ---------- */
.cf-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-topic { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
/* style.css hides every radio with display:none, which also removes it from the
   keyboard order; keep these focusable but visually hidden. */
.cf-section .cf-topic input[type="radio"] {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.cf-topic__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 16px 14px;
	border-radius: var(--cf-radius);
	border: 1px solid var(--cf-border);
	background: #fff;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.cf-topic__icon { width: 24px; height: 24px; margin-bottom: 6px; color: var(--vs-green-600); }
.cf-topic__title { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--vs-ink); }
.cf-topic__desc { font-size: 14px; font-weight: 300; line-height: 1.4; color: var(--vs-muted); }
.cf-topic:hover .cf-topic__body { border-color: var(--vs-green-600); background: #fbfaf6; }
.cf-topic input:checked + .cf-topic__body {
	border-color: var(--vs-green-800);
	background: var(--vs-cream);
	box-shadow: inset 0 0 0 1px var(--vs-green-800);
}
.cf-topic input:checked + .cf-topic__body .cf-topic__icon { color: var(--vs-ochre-dark); }
.cf-topic input:checked + .cf-topic__body::after {
	content: "";
	position: absolute;
	top: 12px;
	right: 12px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--vs-green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cf-topic input:focus-visible + .cf-topic__body { box-shadow: var(--cf-focus), inset 0 0 0 1px var(--vs-green-800); }

/* ---------- Conditional sections ---------- */
.cf-reveal[hidden] { display: none; }
.cf-reveal { animation: cf-in 260ms var(--vs-ease-out, ease-out); }
@keyframes cf-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Fields ---------- */
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
#cf-trip .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-field--wide, #cf-trip .cf-field--wide { grid-column: 1 / -1; }
.cf-field { min-width: 0; }
.cf-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--vs-ink);
}
.cf-label .cf-optional { margin-left: 4px; }
.cf-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cf-count { font-size: 13px; color: var(--vs-muted); font-variant-numeric: tabular-nums; }
.cf-count.is-low { color: var(--vs-label-ink); }
.cf-count.is-over { color: var(--cf-error); font-weight: 500; }

.cf-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--cf-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--vs-font-body);
	font-size: 16px; /* 16px avoids zoom-on-focus on iOS */
	line-height: 1.4;
	color: var(--vs-ink);
	box-shadow: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}
.cf-input::placeholder { color: #9a9e94; font-weight: 300; opacity: 1; }
.cf-input:hover { border-color: var(--vs-green-600); }
.cf-input:focus { outline: none; border-color: var(--vs-green-800); box-shadow: var(--cf-focus); }
select.cf-input {
	padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d452c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
	cursor: pointer;
}
input[type="date"].cf-input { min-height: 48px; }
input[type="date"].cf-input::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.cf-input--mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; text-transform: uppercase; }
.cf-input--mono::placeholder { text-transform: none; letter-spacing: 0.04em; }
.cf-textarea { min-height: 150px; resize: vertical; }

.cf-hint { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--vs-muted); }
.cf-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--cf-error);
}
.cf-error::before {
	content: "!";
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--cf-error);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.cf-error[hidden] { display: none; }
.cf-input[aria-invalid="true"] { border-color: var(--cf-error); background-color: #fffaf8; }
.cf-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 52, 31, 0.2); }

/* ---------- Honeypot ---------- */
.cf-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Consent checkbox ---------- */
.cf-consent { margin: 0 0 26px; }
.cf-check { position: relative; display: inline-flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 400; cursor: pointer; }
.cf-check input[type="checkbox"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.cf-check__box {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1.5px solid var(--cf-border);
	border-radius: 6px;
	background: #fff;
	color: transparent;
	transition: background-color 160ms ease, border-color 160ms ease;
}
.cf-check__box .vs-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.cf-check:hover .cf-check__box { border-color: var(--vs-green-600); }
.cf-check input:checked + .cf-check__box { background: var(--vs-green-800); border-color: var(--vs-green-800); color: #fff; }
.cf-check input:focus-visible + .cf-check__box { box-shadow: var(--cf-focus); }
.cf-check input[aria-invalid="true"] + .cf-check__box { border-color: var(--cf-error); }
.cf-check__text { font-size: 15px; line-height: 24px; color: var(--vs-ink); }

/* ---------- Submit ---------- */
.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.cf-submit.btn_1 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 30px;
	border: 0;
	border-radius: 999px;
	font-size: 15px;
	letter-spacing: 0.02em;
	cursor: pointer;
}
.cf-submit__arrow { transition: transform 200ms ease; }
.cf-submit:hover .cf-submit__arrow { transform: translateX(3px); }
.cf-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cf-spin 800ms linear infinite;
}
.cf-submit.is-loading { cursor: progress; opacity: 0.92; }
.cf-submit.is-loading .cf-spinner { display: inline-block; }
.cf-submit.is-loading .cf-submit__arrow { display: none; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf-privacy { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--vs-muted); }
.cf-privacy .vs-icon { color: var(--vs-green-600); }

/* ---------- Summary / failure alert ---------- */
.cf-summary {
	margin: 0 0 26px;
	padding: 16px 18px;
	border-radius: var(--cf-radius);
	border: 1px solid rgba(163, 52, 31, 0.3);
	border-left: 4px solid var(--cf-error);
	background: var(--cf-error-bg);
	color: var(--vs-ink);
	font-size: 14.5px;
	line-height: 1.55;
}
.cf-summary:focus { outline: none; box-shadow: var(--cf-focus); }
.cf-summary[hidden] { display: none; }
.cf-summary__title { margin: 0 0 6px; font-family: var(--vs-font-body); font-size: 15px; font-weight: 600; color: var(--cf-error); }
.cf-summary p { margin: 0 0 8px; }
.cf-summary p:last-child, .cf-summary ul:last-child { margin-bottom: 0; }
.cf-summary ul { margin: 0; padding-left: 20px; }
.cf-summary a { color: var(--vs-green-800); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cf-summary__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cf-summary__actions a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--vs-line);
	text-decoration: none;
	font-size: 14px;
}

/* ---------- Success panel ---------- */
.cf-panel { text-align: center; padding: 12px 4px 4px; }
.cf-panel:focus { outline: none; }
.cf-panel[hidden] { display: none; }
.cf-panel__badge { margin: 4px auto 18px; animation: cf-pop 420ms var(--vs-ease-out, ease-out); }
@keyframes cf-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-panel .cf-panel__title { margin: 0 0 10px; font-size: clamp(26px, 22px + 1vw, 32px); color: var(--vs-green-800); font-weight: 600; }
.cf-panel__lead { max-width: 520px; margin: 0 auto 18px; font-size: 16.5px; font-weight: 300; color: var(--vs-ink); }
.cf-ref {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 26px;
	padding: 10px 12px 10px 18px;
	border-radius: 999px;
	background: var(--vs-cream);
	border: 1px dashed rgba(148, 105, 42, 0.55);
}
.cf-ref[hidden] { display: none; }
.cf-ref__label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vs-label-ink); }
.cf-ref__code {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--vs-green-800);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}
.cf-panel__sub {
	margin: 4px 0 12px;
	font-family: var(--vs-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vs-label-ink);
}
.cf-next { list-style: none; max-width: 520px; margin: 0 auto 26px; padding: 0; text-align: left; }
.cf-next li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--vs-line);
	font-size: 15px;
	line-height: 1.55;
}
.cf-next li:last-child { border-bottom: 1px solid var(--vs-line); }
.cf-next .vs-icon { margin-top: 2px; color: var(--vs-green-600); }
.cf-next a { color: var(--vs-green-800); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cf-panel__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
.cf-panel__actions .btn_1 { border-radius: 999px; padding: 12px 26px; }
.cf-link-btn {
	padding: 6px 2px;
	border: 0;
	background: none;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--vs-green-800);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.cf-link-btn:hover { color: var(--vs-ochre-dark); }

/* ---------- Side panel ---------- */
.cf-aside { padding-top: 6px; }
.cf-side-card {
	margin-bottom: 18px;
	padding: 24px 22px;
	border-radius: 14px;
	background: var(--vs-cream);
	border: 1px solid var(--vs-line);
}
.cf-side-card__title { margin: 0 0 16px; font-size: 20px; font-weight: 500; color: var(--vs-green-800); }
.cf-methods { list-style: none; margin: 0 0 8px; padding: 0; }
.cf-methods li + li { margin-top: 4px; }
.cf-method {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px;
	margin: 0 -10px;
	border-radius: 10px;
	color: var(--vs-ink);
	text-decoration: none;
	transition: background-color 160ms ease;
}
.cf-method:hover, .cf-method:focus-visible { background: rgba(255, 255, 255, 0.75); color: var(--vs-ink); text-decoration: none; }
.cf-method .vs-icon-badge { background: #fff; }
.cf-method:hover .vs-icon-badge { background: var(--vs-green-800); color: #fff; }
.cf-method__text { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.cf-method__label { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vs-label-ink); }
.cf-method__value { font-size: 15px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.cf-method__value--addr { font-size: 14px; font-weight: 400; color: var(--vs-text); }
.cf-method__cta { margin-top: 4px; font-size: 14px; color: var(--vs-green-600); text-decoration: underline; text-underline-offset: 3px; }
.cf-side-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--vs-green-800);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cf-side-link:hover { color: var(--vs-ochre-dark); }

.cf-side-card--times { background: var(--vs-green-800); border-color: var(--vs-green-800); color: #fff; }
.cf-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-time { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cf-time + .cf-time { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.cf-time .vs-icon { width: 26px; height: 26px; margin-bottom: 6px; color: #e3c48f; }
.cf-time__label { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.cf-time__value { font-family: var(--vs-font-display); font-size: 28px; font-weight: 500; line-height: 1.15; color: #fff; }
.cf-times__note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }

.cf-steps { list-style: none; counter-reset: cf-step; margin: 0; padding: 0; }
.cf-steps li {
	position: relative;
	counter-increment: cf-step;
	padding: 0 0 16px 42px;
}
.cf-steps li:last-child { padding-bottom: 0; }
.cf-steps li::before {
	content: counter(cf-step);
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--vs-line);
	font-size: 13px;
	font-weight: 500;
	color: var(--vs-green-800);
}
.cf-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 13.5px;
	top: 32px;
	bottom: 4px;
	width: 1px;
	background: var(--vs-line);
}
.cf-steps__title { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--vs-ink); }
.cf-steps__text { display: block; font-size: 14px; line-height: 1.55; color: var(--vs-muted); }

/* Quick call and WhatsApp row under the intro: phones only (the side card has them on wider screens). */
.cf-quick { display: none; list-style: none; margin: 18px 0 0; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.cf-card { padding: 30px 26px 26px; }
}
@media (max-width: 991px) {
	.cf-section { padding: 48px 0 40px; }
	.cf-aside { margin-top: 30px; padding-top: 0; }
	.cf-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.cf-section { padding: 36px 0 32px; }
	.cf-card { padding: 26px 18px 22px; border-radius: 12px; }
	.cf-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cf-topic__body { padding: 14px 12px 12px; }
	.cf-topic__desc { display: none; }
	.cf-grid, #cf-trip .cf-grid { grid-template-columns: 1fr; gap: 16px; }
	.cf-legend { font-size: 19px; }
	.cf-actions { flex-direction: column; align-items: stretch; }
	.cf-submit.btn_1 { width: 100%; }
	.cf-privacy { justify-content: center; }
	.cf-ref { flex-direction: column; gap: 6px; padding: 12px 18px; border-radius: 14px; }
	.cf-quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.cf-quick .cf-method { margin: 0; align-items: center; gap: 10px; background: var(--vs-cream); border: 1px solid var(--vs-line); }
	.cf-quick .cf-method__value { font-size: 14px; line-height: 1.35; }
	#map_contact { height: 320px; }
}
@media (max-height: 500px) {
	#map_contact { height: 260px; }
}
@media (min-width: 480px) and (max-width: 767px) {
	.cf-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#cf-trip .cf-grid { grid-template-columns: 1fr 1fr; }
	#cf-trip .cf-field--wide { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.cf-reveal, .cf-panel__badge { animation: none; }
	.cf-spinner { animation-duration: 2s; }
	.cf-topic__body, .cf-input, .cf-submit__arrow { transition: none; }
}
