/*
 * Asha Clinic Child — custom CSS.
 * Loaded after the parent theme, so these rules win by cascade order.
 * The design's CSS variables (--teal, --brand, --ink, etc.) are all available.
 */

/* =========================================================================
 *  FIX 1 — Footer "Book a consultation" button
 *  The parent's `.foot-col a { display:block }` rule was flattening the button
 *  into a full-width block and stripping its pill shape. Restore it to a proper
 *  inline button that sizes to its content.
 * ====================================================================== */
.foot-col a.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin-bottom: 0;
	color: #fff;               /* keep label white on the teal pill */
}

.foot-col a.btn:hover {
	color: #fff;               /* override the .foot-col a:hover blue */
}

/* Give the footer contact column's button a little breathing room */
.foot-col a.btn.btn-primary {
	display: inline-flex;
	color: #FFF;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
	font-size: .98rem;
	margin-top: 14px;
	padding: 14px 26px;
}

/* =========================================================================
 *  FIX 2 — Header mobile menu (hamburger) + close buttons
 *  Enlarge tap targets to the 44px accessibility minimum, vertically centre
 *  the icons, and add a subtle pressed/hover state so the buttons feel solid.
 * ====================================================================== */
.menu-btn {
	display: none;                 /* stays hidden on desktop (parent shows it < 960px) */
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 12px;
	transition: background .25s var(--ease), transform .15s var(--ease);
}

.menu-btn:hover {
	background: var(--mist-2);
}

.menu-btn:active {
	transform: scale(.94);
}

/* Ensure it actually shows as a flex box on mobile (parent uses display:block) */
@media (max-width: 960px) {
	.menu-btn {
		display: inline-flex;
	}
}

/* Mobile panel close (X) button — same enlarged, centred tap target */
.mobile-panel .close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	transition: background .25s var(--ease), transform .15s var(--ease);
}

.mobile-panel .close:hover {
	background: var(--mist-2);
}

.mobile-panel .close:active {
	transform: scale(.94);
}

/* Mobile panel "Book a consultation" — full-width, clearly tappable pill */
.mobile-panel > a.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 14px;
}

/* Auth pair (Log in / Sign up) — equal height, aligned with the book button */
.m-auth .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
}

/* Mobile "Call …" link — comfortable tap height */
.mobile-panel a.m-phone {
	min-height: 44px;
}

/* =========================================================================
 *  FIX 3 — Contact Form 7 layout (Contact page)
 *  Lives in the child so it applies with the child theme active, regardless of
 *  the parent version. Requires the CF7 form to wrap paired fields like:
 *      <div class="cf-row"> [field] [field] </div>
 * ====================================================================== */

/* Two-up rows. CF7 wraps the paired fields in a <p> (with a <br> between them),
 * so target that <p> as the grid and hide the break. The .cf-row itself keeps
 * the bottom spacing; the inner <p> has none (avoids a double gap). */
.contact-page .wpcf7-form .cf-row {
	margin: 0 0 22px;
}
.contact-page .wpcf7-form .cf-row > p {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
	margin: 0;
}

/* Remove the <br> CF7 inserts between the two fields (it forces a line break). */
.contact-page .wpcf7-form .cf-row br { display: none; }

.contact-page .wpcf7-form .cf-row > *,
.contact-page .wpcf7-form .cf-row > p > * { margin: 0; }
.contact-page .wpcf7-form .cf-row .wpcf7-form-control-wrap,
.contact-page .wpcf7-form .cf-row input,
.contact-page .wpcf7-form .cf-row label { width: 100%; display: block; }

/* Full-width single fields (textarea etc.) get their own spacing. */
.contact-page .wpcf7-form > p,
.contact-page .wpcf7-form > .wpcf7-form-control-wrap { margin: 0 0 22px; display: block; }

/* Field theming (mirrors the parent, but guaranteed via the child). */
.contact-page .wpcf7-form .wpcf7-form-control-wrap { display: block; }
.contact-page .wpcf7-form input[type="text"],
.contact-page .wpcf7-form input[type="email"],
.contact-page .wpcf7-form input[type="tel"],
.contact-page .wpcf7-form input[type="url"],
.contact-page .wpcf7-form input[type="number"],
.contact-page .wpcf7-form input[type="date"],
.contact-page .wpcf7-form select,
.contact-page .wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color .25s, box-shadow .25s;
}
.contact-page .wpcf7-form input:focus,
.contact-page .wpcf7-form select:focus,
.contact-page .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 4px rgba(37, 169, 188, .14);
}
.contact-page .wpcf7-form textarea { min-height: 150px; resize: vertical; }

/* Submit → teal pill */
.contact-page .wpcf7-form input[type="submit"],
.contact-page .wpcf7-form button[type="submit"] {
	margin-top: 4px;
	background: var(--teal);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 15px 34px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .3s var(--ease), transform .2s var(--ease), box-shadow .3s;
}
.contact-page .wpcf7-form input[type="submit"]:hover,
.contact-page .wpcf7-form button[type="submit"]:hover {
	background: var(--teal-deep);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Stack the rows on small screens. */
@media (max-width: 900px) {
	.contact-page .wpcf7-form .cf-row { grid-template-columns: 1fr; gap: 0; }
	.contact-page .wpcf7-form .cf-row > * { margin-bottom: 22px; }
}

/* =========================================================================
 *  YOUR CUSTOM TWEAKS
 * ====================================================================== */

/* Footer logo — smaller, proportional */
.foot-brand img {
	height: auto;
	margin-bottom: 16px;
	width: 30%;
}

/* Hero lede — tighter measure for readability */
.hero p.lede {
	max-width: 48ch;
}

/* FAQ page — spread the category tabs edge-to-edge */
.faq-page .faq-tabs {
	justify-content: space-between;
}

/* FAQ page — let the accordion grid use the full width */
.faq-page .faq-grid {
	max-width: 100%;
}

.contact-page .wpcf7-form .cf-row{
	display: block;
}