/* cotraxai — WordPress-only additions.
   style.css is kept identical to html/assets/css/style.css; anything the HTML
   didn't need (uploaded logo images, admin bar, CF7 output) goes here. */

/* Uploaded SVG logo (Theme Settings → Header / Footer) */
.logo--img img { display: block; height: 38px; width: auto; }

/* Logged-in admin bar: keep the sticky header and mobile menu below it */
.admin-bar .header { top: 32px; }
.admin-bar .mobile-nav { inset: 108px 0 0 0; }
@media (max-width: 782px) {
	.admin-bar .header { top: 46px; }
	.admin-bar .mobile-nav { inset: 122px 0 0 0; }
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens */
	.admin-bar .header { top: 0; }
}

/* ── Contact Form 7 inside the HTML's newsletter row (.nl-form) ───────────── */
.nl-form { flex-wrap: wrap; position: relative; }
.nl-form .wpcf7-form-control-wrap { flex: 1; min-width: 0; display: flex; }
.nl-form .wpcf7-form-control-wrap input { width: 100%; }
.nl-form .wpcf7-not-valid-tip { position: absolute; left: 14px; top: calc(100% + 6px); font-size: 13px; color: #fecaca; }
.nl-form .wpcf7-spinner { position: absolute; right: -36px; top: 50%; margin: -12px 0 0; }
.wpcf7 form.nl-form .wpcf7-response-output { flex-basis: 100%; margin: 4px 0 0; padding: 8px 14px; border-radius: 12px; border: 0; font-size: 14px; font-weight: 600; color: #fff; }
.wpcf7 form.nl-form.sent .wpcf7-response-output { color: #a7f3d0; }
.wpcf7 form.nl-form.invalid .wpcf7-response-output,
.wpcf7 form.nl-form.failed .wpcf7-response-output { color: #fecaca; }

/* ── Contact Form 7 in the sidebar signup box (.widget--cta) ───────────────── */
.widget--cta .wpcf7-form-control-wrap { display: block; }
.widget--cta .btn svg { display: none; } /* HTML sidebar button has no arrow */
.widget--cta .wpcf7-spinner { display: none; }
.widget--cta .wpcf7-not-valid-tip { color: #fff; font-size: 13px; margin: -4px 0 8px; }
.wpcf7 form.widget-form .wpcf7-response-output { margin: 10px 0 0; padding: 0; border: 0; color: #fff; font-size: 14px; font-weight: 600; }

/* CF7 prints rows="10" on every textarea; the HTML has none, so it sits at style.css's 150px min-height. */
.field textarea.wpcf7-textarea { height: 150px; }

/* Logged-in admin bar: sticky sub-topic bar on category pages */
.admin-bar .subnav { top: 108px; }
@media (max-width: 782px) { .admin-bar .subnav { top: 122px; } }
@media (max-width: 600px) { .admin-bar .subnav { top: 76px; } }

/* ── Contact Form 7 in form cards (Contact, Write for Us — .form-grid) ──────── */
.form-grid .wpcf7-form-control-wrap { display: block; }
.check .wpcf7-form-control-wrap,
.check .wpcf7-list-item { display: block; margin: 0; }
.check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check label a { color: var(--blue-600); }
.form-grid .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #dc2626; }
.form-grid .wpcf7-spinner { vertical-align: middle; margin: 0 0 0 12px; }
/* Response message styled like the HTML's .form-success */
.wpcf7 form .form-grid ~ .wpcf7-response-output { margin: 18px 0 0; padding: 16px 18px; border: 0; border-radius: 12px; font-weight: 600; font-size: 15px; background: #fef2f2; color: #991b1b; }
.wpcf7 form.sent .form-grid ~ .wpcf7-response-output { background: #ecfdf5; color: #065f46; }

/* FAQ answers: links keep the HTML's blue (inline styles are stripped from ACF answers) */
.faq details a { color: var(--blue-600); }
/* FAQ toggle: the box (::before) stays still; only the CSS-drawn "+" (::after) rotates into "×",
   so the open icon keeps the same size/position and the glyph is truly centred */
.faq summary::before { content: ""; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; background: var(--blue-100); transition: background .3s; }
.faq summary::after { content: ""; right: 28px; width: 12px; height: 12px; border-radius: 0; font-size: 0; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq details[open] summary::before { background: var(--blue-600); }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
