/**
 * Contact page (screens 48-49, TASK-028).
 * Mobile-first and logical-direction only. The shared zahra-shell/zahra-section layout
 * remains owned by layout.css. Values are transcribed from the approved bundled screens -
 * mobile values as the base rule, desktop values under the shared 1024px breakpoint, matching
 * the Categories/Brands index convention already in this stylesheet layer.
 */

.zahra-contact__breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	block-size: 36px;
	border-block-end: 1px solid var(--zahra-color-line);
	color: var(--zahra-color-muted);
	font-size: 11px;
	text-decoration: none;
}

.zahra-contact__breadcrumb a {
	color: var(--zahra-color-muted);
	text-decoration: none;
}

.zahra-contact__breadcrumb [aria-current="page"] {
	color: var(--zahra-color-ink);
	font-weight: 600;
}

.zahra-contact__hero {
	padding-block: 32px 34px;
	border-block-end: 1px solid var(--zahra-color-line);
}

.zahra-contact__eyebrow {
	display: block;
	margin-block-end: 14px;
	color: var(--zahra-color-brand);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .08em;
}

.zahra-contact__title {
	margin-block: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.35;
}

.zahra-contact__lead {
	margin-block: 16px 0;
	color: var(--zahra-color-ink-2);
	font-size: 15px;
	line-height: 2;
	text-wrap: pretty;
}

.zahra-contact__hero-quick {
	display: none;
}

.zahra-contact__quick-row {
	padding-block: 18px;
	border-block-end: 1px solid var(--zahra-color-line-2);
}

.zahra-contact__quick-row--compact {
	padding-block: 0;
	border-block-end: 0;
}

.zahra-contact__quick-label {
	display: block;
	margin-block-end: 6px;
	color: var(--zahra-color-muted);
	font-size: 11.5px;
}

.zahra-contact__quick-value {
	display: block;
	font-family: var(--zahra-font-mono);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.6;
}

.zahra-contact__quick-value--compact {
	font-size: 14.5px;
}

.zahra-contact__h2 {
	margin-block: 0 20px;
	font-size: 23px;
	font-weight: 700;
}

.zahra-contact__h2--invert {
	color: var(--zahra-color-surface);
	font-size: 25px;
	line-height: 1.45;
	text-wrap: pretty;
}

.zahra-contact__channels-section {
	padding-block: 32px;
	border-block-end: 1px solid var(--zahra-color-line);
}

.zahra-contact__channels {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--zahra-color-line);
	border: 1px solid var(--zahra-color-line);
}

.zahra-contact__channel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 18px;
	background: var(--zahra-color-surface);
}

.zahra-contact__channel-n {
	font-family: var(--zahra-font-mono);
	color: var(--zahra-color-brand);
	font-size: 11.5px;
}

.zahra-contact__channel-title {
	margin-block: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
}

.zahra-contact__channel-body {
	margin-block: 0;
	color: var(--zahra-color-ink-2);
	font-size: 14.5px;
	line-height: 2;
	text-wrap: pretty;
}

.zahra-contact__channel-value {
	display: block;
	padding: 14px 16px;
	background: var(--zahra-color-surface);
	border: 1px solid var(--zahra-color-line);
	font-family: var(--zahra-font-mono);
	font-size: 16px;
	font-weight: 500;
}

.zahra-contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 48px;
	background: var(--zahra-color-brand);
	color: var(--zahra-color-surface);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.zahra-contact-btn:hover {
	background: var(--zahra-color-brand-dark);
}

.zahra-contact-btn--invert {
	background: var(--zahra-color-brand);
}

.zahra-contact__form-section {
	padding-block: 32px;
	border-block-end: 1px solid var(--zahra-color-line);
}

/*
 * Overrides the shared .zahra-section--sand utility (layout.css) for this one usage only
 * (owner instruction, chat) - that utility class is applied nowhere else in the theme, but
 * scoping the override to this compound selector rather than editing the shared utility keeps
 * its general-purpose meaning intact for any future use.
 */
.zahra-contact__form-section.zahra-section--sand {
	background-color: var(--zahra-color-surface);
}

.zahra-contact__form-intro-text {
	margin-block: 14px 0;
	color: var(--zahra-color-ink-2);
	font-size: 14.5px;
	line-height: 2;
	text-wrap: pretty;
}

.zahra-contact__form-intro-quick {
	display: none;
}

.zahra-contact-form {
	margin-block-start: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px 18px;
	background: var(--zahra-color-surface);
	border: 1px solid var(--zahra-color-line);
}

/*
 * Contact Form 7 wraps its own output in `.wpcf7` and `<form class="wpcf7-form">`, and
 * auto-wraps each field's markup in a `<p>` (wpautop) with a `<br>` between the label and the
 * control, plus a `.wpcf7-form-control-wrap` span around each input/select/textarea. None of
 * that is CF7 plugin source being modified - it is CF7's own documented rendering shape, and
 * `display: contents` un-boxes those wrapper levels so `.zahra-contact-form__field`'s
 * label/control/hint stay direct flex items, matching the approved screens' spacing exactly.
 * `.screen-reader-response` (visually hidden, CF7's own CSS) and `.hidden-fields-container`
 * (`display: none`, CF7's own CSS) are unaffected - both fall outside grid/flex placement.
 */
.zahra-contact-form > .wpcf7,
.zahra-contact-form .wpcf7-form,
.zahra-contact-form .wpcf7-form-control-wrap,
.zahra-contact-form__field p,
.zahra-contact-form__footer p {
	display: contents;
}

.zahra-contact-form__field br,
.zahra-contact-form__footer br {
	display: none;
}

.zahra-contact-form .wpcf7-response-output {
	margin: 0;
	border-radius: 0;
}

.zahra-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.zahra-contact-form__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--zahra-color-ink);
}

.zahra-contact-form__field input,
.zahra-contact-form__field select {
	/*
	 * CF7 renders text/email/tel inputs with a `size="40"` HTML attribute, which sets an
	 * intrinsic content width that `inline-size: 100%` must explicitly override - otherwise
	 * the grid column shrinks to fit that intrinsic size and overflows its container.
	 */
	inline-size: 100%;
	block-size: 48px;
	box-sizing: border-box;
	padding-inline: 14px;
	border: 1px solid var(--zahra-color-field);
	background: var(--zahra-color-surface);
	font-size: 15px;
	color: var(--zahra-color-ink);
	border-radius: 0;
	font-family: inherit;
}

.zahra-contact-form__field select {
	padding-inline: 12px;
}

.zahra-contact-form__field textarea {
	/* CF7 renders textarea with a `cols="40"` attribute - see the input rule above. */
	inline-size: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--zahra-color-field);
	background: var(--zahra-color-surface);
	font-size: 15px;
	line-height: 1.9;
	color: var(--zahra-color-ink);
	resize: vertical;
	border-radius: 0;
	font-family: inherit;
}

.zahra-contact-form__field input:focus-visible,
.zahra-contact-form__field select:focus-visible,
.zahra-contact-form__field textarea:focus-visible {
	border-color: var(--zahra-color-brand);
	outline: var(--zahra-focus-ring-width) solid var(--zahra-focus-ring-color);
	outline-offset: var(--zahra-focus-ring-offset);
}

.zahra-contact-form__hint {
	font-size: 11px;
	color: var(--zahra-color-muted);
}

.zahra-contact-form__footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.zahra-contact-form__privacy {
	font-size: 12px;
	line-height: 1.85;
	color: var(--zahra-color-muted);
}

.zahra-contact-form__footer .zahra-contact-btn,
.zahra-contact-form .wpcf7-submit {
	min-block-size: 50px;
	border: 0;
	cursor: pointer;
}

/*
 * CF7's own submit control (`.wpcf7-submit`) restyled to match `.zahra-contact-btn--primary`
 * declaration-for-declaration, since a CF7 form-tag has no way to reuse a theme button class
 * directly. `.wpcf7-spinner` is CF7's own AJAX-submission indicator, left untouched.
 */
.zahra-contact-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 32px;
	background: var(--zahra-color-brand);
	color: var(--zahra-color-surface);
	font-size: 14.5px;
	font-weight: 600;
	font-family: inherit;
}

.zahra-contact-form .wpcf7-submit:hover {
	background: var(--zahra-color-brand-dark);
}

.zahra-contact-form .wpcf7-not-valid-tip {
	display: block;
	margin-block-start: 6px;
	color: var(--zahra-color-brand);
	font-size: 12px;
}

.zahra-contact__sales {
	background: var(--zahra-color-ink);
	color: var(--zahra-color-on-dark);
	padding-block: 38px;
}

.zahra-contact__sales-body {
	margin-block: 18px 0;
	color: var(--zahra-color-on-dark);
	font-size: 14.5px;
	line-height: 2;
	text-wrap: pretty;
}

.zahra-contact__sales-actions {
	margin-block-start: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

.zahra-contact__sales-actions .zahra-contact-btn {
	inline-size: 100%;
}

.zahra-contact__sales-email {
	display: block;
	font-family: var(--zahra-font-mono);
	font-size: 13px;
	color: var(--zahra-color-on-dark-muted);
}

.zahra-contact__closing {
	padding-block: 32px;
}

.zahra-contact__closing-body {
	margin-block: 14px 0;
	color: var(--zahra-color-ink-2);
	font-size: 14.5px;
	line-height: 2;
	text-wrap: pretty;
}

.zahra-contact__closing .zahra-contact-btn {
	margin-block-start: 22px;
}

.zahra-contact__closing-card {
	margin-block-start: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px;
	background: var(--zahra-color-surface);
	border: 1px solid var(--zahra-color-line);
}

.zahra-contact__closing-card .zahra-contact__quick-value {
	font-size: 14.5px;
}

/* -----------------------------------------------------------------------
 * Desktop - screen 48. Shared provisional breakpoint (layout.css, Q-013/Q-014).
 * --------------------------------------------------------------------- */
@media (min-width: 1024px) {

	.zahra-contact__breadcrumb {
		gap: 8px;
		block-size: 38px;
		font-size: 11.5px;
	}

	.zahra-contact__hero {
		padding-block: 70px 72px;
		display: grid;
		grid-template-columns: 1.1fr .9fr;
		gap: 64px;
		align-items: end;
	}

	.zahra-contact__title {
		font-size: 54px;
		line-height: 1.28;
		letter-spacing: -.01em;
	}

	.zahra-contact__lead {
		margin-block-start: 26px;
		max-inline-size: 620px;
		font-size: 16.5px;
	}

	.zahra-contact__hero-quick {
		display: block;
		border-inline-start: 1px solid var(--zahra-color-line);
		padding-inline-start: 40px;
	}

	.zahra-contact__h2 {
		font-size: 32px;
		margin-block-end: 34px;
	}

	.zahra-contact__h2--invert {
		font-size: 38px;
		line-height: 1.4;
	}

	.zahra-contact__channels-section {
		padding-block: 76px;
	}

	.zahra-contact__channels {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.zahra-contact__channel {
		padding: 40px 36px;
		gap: 16px;
	}

	.zahra-contact__channel-title {
		font-size: 24px;
	}

	.zahra-contact__channel-body {
		max-inline-size: 420px;
		font-size: 15px;
	}

	.zahra-contact__channel-value {
		font-size: 18px;
	}

	.zahra-contact-btn {
		display: inline-flex;
		min-block-size: 0;
		padding: 14px 26px;
	}

	.zahra-contact__channel .zahra-contact-btn {
		align-self: flex-start;
		margin-block-start: 8px;
	}

	.zahra-contact__form-section {
		padding-block: 76px;
	}

	.zahra-contact__form-grid {
		display: grid;
		grid-template-columns: .85fr 1.15fr;
		gap: 64px;
		align-items: start;
	}

	.zahra-contact__form-intro-text {
		max-inline-size: 420px;
		font-size: 15.5px;
		line-height: 2.05;
	}

	.zahra-contact__form-intro-quick {
		display: flex;
		flex-direction: column;
		gap: 16px;
		margin-block-start: 28px;
		padding-block-start: 22px;
		border-block-start: 1px solid var(--zahra-color-line);
	}

	.zahra-contact-form {
		margin-block-start: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 22px 20px;
		padding: 36px 34px;
	}

	.zahra-contact-form__field--full,
	.zahra-contact-form .wpcf7-response-output {
		grid-column: span 2;
	}

	.zahra-contact-form__field input,
	.zahra-contact-form__field select {
		block-size: 46px;
		font-size: 14.5px;
	}

	.zahra-contact-form__field textarea {
		font-size: 14.5px;
	}

	.zahra-contact-form__hint {
		font-size: 11.5px;
	}

	.zahra-contact-form__footer {
		grid-column: span 2;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		padding-block-start: 6px;
		border-block-start: 1px solid var(--zahra-color-line-2);
		margin-block-start: 4px;
	}

	.zahra-contact-form__privacy {
		max-inline-size: 420px;
		font-size: 12.5px;
	}

	.zahra-contact-form__footer .zahra-contact-btn {
		min-block-size: 0;
		padding: 15px 32px;
	}

	.zahra-contact__sales {
		padding-block: 80px;
	}

	.zahra-contact__sales-grid {
		display: grid;
		grid-template-columns: 1fr .9fr;
		gap: 64px;
		align-items: center;
	}

	.zahra-contact__sales-body {
		max-inline-size: 560px;
		font-size: 16px;
	}

	.zahra-contact__sales-actions {
		align-items: flex-start;
	}

	.zahra-contact__sales-actions .zahra-contact-btn {
		inline-size: auto;
	}

	.zahra-contact__sales-email {
		font-size: 13.5px;
	}

	.zahra-contact__closing {
		padding-block: 80px;
		display: grid;
		grid-template-columns: 1.1fr .9fr;
		gap: 64px;
		align-items: start;
	}

	.zahra-contact__closing-text .zahra-contact__h2 {
		font-size: 34px;
		line-height: 1.45;
	}

	.zahra-contact__closing-body {
		max-inline-size: 600px;
		font-size: 15.5px;
	}

	.zahra-contact__closing-card {
		margin-block-start: 0;
		padding: 30px 32px;
		gap: 22px;
	}

	.zahra-contact__closing-card .zahra-contact__quick-value {
		font-size: 15px;
	}
}
