/*! ==========================================================================
 * Saransh Dainik — Public Contact page (page-scoped; /contact only)
 * Loaded via _header when $contact_page is set. Does not restyle the rest of
 * the site. Accent uses the existing site brand red (--sd-header-red).
 * ========================================================================== */

.sd-contact-page {
	background: #f2f3f5;
	padding: 18px 0 32px;
}
/* page-scoped box-sizing reset: keeps width:100% + padding from overflowing
   inside cards without changing the rest of the site */
.sd-contact-page,
.sd-contact-page *,
.sd-contact-page *::before,
.sd-contact-page *::after { box-sizing: border-box; }

.sd-contact-page .container {
	max-width: 1080px;
}

/* Page-scoped footer spacing (this page only). The theme footer has a default
   margin-top of 100px; we tighten it so the footer follows the Contact content
   naturally (~48px). Does not affect other pages. */
body.sdm-contact-page #footer { margin-top: 48px; }

/* ---- breadcrumb ---- */
.sd-contact-breadcrumb { margin: 0 0 14px; }
.sd-contact-breadcrumb .breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 13px;
}
.sd-contact-breadcrumb-spacer { height: 8px; }

/* ---- compact page header ---- */
.sd-contact-header {
	background: #ffffff;
	border-top: 3px solid var(--sd-header-red, #b6090f);
	border-radius: 12px;
	padding: 26px 28px 22px;
	margin-bottom: 26px;
	box-shadow: 0 1px 2px rgba(7, 21, 47, .06);
}
.sd-contact-title {
	margin: 0 0 6px;
	font-size: 31px;
	font-weight: 800;
	line-height: 1.25;
	color: #0f172a;
}
.sd-contact-title-hi,
.sd-hi {
	font-weight: 600;
	color: #6b7280;
}
.sd-contact-title-hi { font-size: 22px; }
.sd-contact-intro {
	color: #475569;
	font-size: 15.5px;
	line-height: 1.6;
	margin-top: 8px;
	max-width: 720px;
}
.sd-contact-intro p { margin: 0 0 8px; }
.sd-contact-intro p:last-child { margin-bottom: 0; }

/* ---- two-column layout ---- */
/* Desktop: left form ~56-60%, right information ~40-44%, stable at 992px+ */
.sd-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
	gap: 28px;
	align-items: start;
}
.sd-contact-form-column,
.sd-contact-info-column {
	min-width: 0;   /* allow long content to wrap, never overflow the column */
}
/* desktop: form column first (left), info column second (right) */
.sd-contact-grid .sd-contact-form-column { order: 1; }
.sd-contact-grid .sd-contact-info-column { order: 2; }

/* empty-state: no contact info -> form uses the full width */
.sd-contact-grid-empty { grid-template-columns: 1fr; }

.sd-contact-form-card {
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 12px;
	padding: 26px 28px;
	box-shadow: 0 1px 2px rgba(7, 21, 47, .05);
}
.sd-contact-card-title {
	margin: 0 0 18px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	color: #0f172a;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}
.sd-contact-card-title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 19px;
	background: var(--sd-header-red, #b6090f);
	border-radius: 2px;
	align-self: center;
	flex: 0 0 auto;
}

/* form reassurance note */
.sd-contact-form-note {
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	margin: -8px 0 18px;
}

/* ---- contact information card (right column, premium white) ---- */
.sd-contact-panel {
	position: relative;
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 14px;
	padding: 26px 26px 22px;
	color: #1f2937;
	box-shadow: 0 1px 3px rgba(7, 21, 47, .08), 0 8px 24px rgba(7, 21, 47, .05);
	overflow: hidden;
}
.sd-contact-panel-head {
	padding-bottom: 16px;
	margin-bottom: 4px;
	border-bottom: 1px solid #eef0f3;
}
.sd-contact-panel-head::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	background: var(--sd-header-red, #b6090f);
	border-radius: 2px;
	margin-top: 12px;
}
.sd-contact-panel-title {
	margin: 0 0 4px;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	color: #0f172a;
}
.sd-contact-panel-title-hi {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sd-header-red, #b6090f);
	margin-bottom: 10px;
}
.sd-contact-panel-sub {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #64748b;
}
.sd-contact-panel-body {
	font-style: normal;
	margin: 0;
}
.sd-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid #eef0f3;
}
.sd-info-item:last-child { border-bottom: 0; }
.sd-info-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(182, 9, 15, .08);
	color: var(--sd-header-red, #b6090f);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	margin-top: 1px;
}
.sd-info-label {
	flex: 0 0 auto;
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: #94a3b8;
	margin-bottom: 3px;
}
.sd-info-value {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	font-size: 15px;
	line-height: 1.6;
	color: #1f2937;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.sd-info-value a {
	color: #0f2a5e;
	text-decoration: none;
	font-weight: 600;
}
.sd-info-value a:hover,
.sd-info-value a:focus {
	color: var(--sd-header-red, #b6090f);
	text-decoration: underline;
}

/* enquiries block (Admin → Pages → Contact page_content) */
.sd-contact-panel .sd-contact-enquiries {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #eef0f3;
}
.sd-contact-enquiries-title {
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #0f172a;
}
.sd-contact-panel .sd-contact-enquiries .text-style {
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}
.sd-contact-panel .sd-contact-enquiries .text-style p { margin: 0 0 8px; }
.sd-contact-panel .sd-contact-enquiries .text-style p:last-child { margin-bottom: 0; }
.sd-contact-panel .sd-contact-enquiries .text-style ul { margin: 6px 0 0; padding-left: 20px; }
.sd-contact-panel .sd-contact-enquiries .text-style li { margin-bottom: 4px; }

/* ---- action buttons (compact two-column grid) ---- */
.sd-contact-panel .sd-contact-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}
.sd-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	transition: filter .15s ease;
	border: 0;
}
.sd-action-btn:hover,
.sd-action-btn:focus {
	color: #ffffff;
	text-decoration: none;
	filter: brightness(.94);
}
.sd-action-call { background: #16a34a; }
.sd-action-email { background: #2563eb; }
.sd-action-whatsapp { background: #1faa53; }
.sd-action-directions { background: var(--sd-header-red, #b6090f); }

/* ---- message form ---- */
.sd-contact-form .sd-field { margin-bottom: 16px; }
.sd-contact-form .sd-field:last-child { margin-bottom: 0; }
.sd-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}
.sd-req { color: var(--sd-header-red, #b6090f); }
.sd-contact-form .form-control {
	font-size: 16px;                 /* >= 16px prevents mobile zoom */
	line-height: 1.5;
	border: 1px solid #d3d7dd;
	border-radius: 8px;
	height: 48px;
	padding: 10px 14px;
	background: #fff;
	color: #111827;
}
.sd-contact-form textarea.form-control {
	height: 150px;
	min-height: 140px;
	max-height: 220px;
	resize: vertical;
}
.sd-contact-form .form-control:focus {
	border-color: var(--sd-header-red, #b6090f);
	box-shadow: 0 0 0 3px rgba(182, 9, 15, .12);
	outline: none;
}

/* consent */
.sd-field-consent .custom-checkbox { display: flex; align-items: flex-start; }
.sd-consent-text {
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	display: inline-block;
}
.sd-consent-text .link-terms { color: var(--sd-header-red, #b6090f); }

/* honeypot (hidden from real users) */
.sd-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* submit — desktop: fixed 210px, left-aligned, not full-width */
.sd-field-submit { margin-top: 4px; }
.sd-contact-submit,
.sd-contact-form button[type="submit"] {
	display: inline-flex;
	width: 210px;
	max-width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 700;
	background: var(--sd-header-red, #b6090f);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	transition: filter .15s ease;
}
.sd-contact-submit:hover,
.sd-contact-submit:focus { filter: brightness(.94); color: #fff; }
.sd-contact-submit:disabled { opacity: .7; cursor: wait; }
.sd-submit-icon { font-size: 17px; }

/* recaptcha — never overflow at 320px */
.sd-contact-form .g-recaptcha { transform-origin: left top; }
@media (max-width: 380px) {
	.sd-contact-form .g-recaptcha { transform: scale(.78); margin-bottom: -18px; }
}
.sd-contact-form .g-recaptcha iframe { max-width: 100%; }

/* ---- map (responsive, under the card rows) ---- */
.sd-contact-panel .sd-contact-map {
	margin-top: 18px;
}
.sd-contact-map-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #0f172a;
}
.sd-contact-map-title-hi {
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #64748b;
}
.sd-contact-panel .sd-contact-map-frame {
	position: relative;
	width: 100%;
	height: 240px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e6e8eb;
	box-shadow: 0 2px 10px rgba(7, 21, 47, .08);
	background: #eef0f2;
}
.sd-contact-map-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ==========================================================================
 * Mobile / tablet (single column; info card before the form)
 * ========================================================================== */
@media (max-width: 991px) {
	.sd-contact-grid { grid-template-columns: 1fr; }
	/* mobile order: contact-information column first, then the form */
	.sd-contact-grid .sd-contact-form-column { order: 2; }
	.sd-contact-grid .sd-contact-info-column { order: 1; }
}

@media (max-width: 767px) {
	.sd-contact-page { padding: 12px 0 120px; } /* clear floating radio launcher */
	.sd-contact-header { padding: 20px 18px 18px; }
	.sd-contact-panel,
	.sd-contact-form-card { padding: 22px 18px; }
	.sd-contact-title { font-size: 26px; }
	.sd-contact-title-hi { font-size: 18px; }
	.sd-contact-panel .sd-contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sd-contact-panel-title { font-size: 19px; }
	/* full width submit on mobile (specificity must match the base
	   `.sd-contact-form button[type="submit"]` selector) */
	.sd-contact-form button[type="submit"],
	.sd-contact-submit { width: 100%; max-width: 100%; }
	.sd-contact-panel .sd-contact-map-frame { height: 220px; }
}

@media (max-width: 349px) {
	.sd-contact-title { font-size: 24px; }
	.sd-contact-title-hi { font-size: 16px; display: block; margin-top: 2px; }
	.sd-info-icon { width: 38px; height: 38px; font-size: 17px; }
	.sd-contact-panel .sd-contact-actions { grid-template-columns: 1fr; } /* single column at 320px */
}

/* ---- accessibility: visible focus + reduced motion ---- */
.sd-contact-page a:focus-visible,
.sd-contact-page button:focus-visible,
.sd-contact-page input:focus-visible,
.sd-contact-page textarea:focus-visible {
	outline: 2px solid var(--sd-header-red, #b6090f);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.sd-action-btn,
	.sd-contact-submit { transition: none; }
}

