/* Elevate BioWellness ADM Theme: WordPress adapter.
   site.css, pages.css and adm.css are the design. This file fits Contact Form 7's markup into that design, keeps the
   sticky header clear of the WordPress admin bar, and gives the skip link its hidden state. */

/* Skip link: hidden until it has keyboard focus. */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; background: #fff; color: #071528; font-weight: bold; }
.skip:focus { left: 8px; top: 8px; }

/* Contact Form 7 wraps each control in a span. Let it fill the field like the control did in the design. */
.ebw-form .wpcf7-form-control-wrap { display: block; position: relative; min-width: 0; }
.ebw-form .wpcf7 form { margin: 0; }
.ebw-form .wpcf7-submit { font: inherit; cursor: pointer; }
.ebw-form .wpcf7-spinner { display: none; }
.ebw-form form.submitting .wpcf7-submit { opacity: .7; cursor: progress; }
/* Contact Form 7's field errors and form message, in the design's colours. */
.ebw-form .wpcf7-not-valid { border-color: #c0392b; }
.ebw-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #c0392b; }
.ebw-form .wpcf7-response-output { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #d3e0ed; border-radius: 6px; background: #eef3f8; color: #10345b; }
.ebw-form .wpcf7-response-output:empty { display: none; }
.ebw-form form.sent .wpcf7-response-output { border-color: #9bb8d1; }
.ebw-form form.invalid .wpcf7-response-output, .ebw-form form.failed .wpcf7-response-output { border-color: #c0392b; color: #c0392b; background: #fff5f5; }
/* hCaptcha, when the plugin adds itself to the form, sits above the send button. */
.ebw-form .h-captcha { margin: 12px 0; }

/* Admin bar: only seen by signed-in staff. The header is sticky at the top of the page. */
.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }
@media (max-width: 600px) { .admin-bar header { top: 0; } }

/* Pagination on the blog list. */
.adm-page .navigation.pagination { margin: 36px auto 0; max-width: 1140px; }
.adm-page .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.adm-page .nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #cad8e5; border-radius: 8px; background: #fff; color: #123451; text-decoration: none; font-weight: 600; }
.adm-page .nav-links .page-numbers.current { background: #123451; color: #fff; }
.adm-page .screen-reader-text { position: absolute; left: -9999px; }

/* A plain page (legal text, Thank You) shown under the design's banner: the banner rules apply, the content keeps its
   own styling and stays inside a readable column. */
.adm-page-plain .banner { padding: 85px 6%; background: #0a1b31; color: #fff; }
.adm-page-plain .banner h1 { font: normal clamp(32px, 4vw, 53px) Georgia, 'Times New Roman', serif; margin: 12px 0 20px; }
.adm-page-plain .section { padding: 75px 6%; }
.adm-plain-content { max-width: 860px; margin: 0 auto; line-height: 1.8; }
.adm-plain-content img { max-width: 100%; height: auto; }

/* Post content inside the article layout: WordPress figures and images stay inside the column. */
.adm-page .ebw-post-body img { max-width: 100%; height: auto; }
.adm-page .ebw-post-body figure { margin: 16px 0; }
