/* ------------------------------------------------------------------
   WordPress additions. styles.css is the original site stylesheet;
   this file only styles things WordPress and WPForms add.
   ------------------------------------------------------------------ */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.post-card[hidden] { display: none; }

/* Blog content: WordPress wraps quote text in <p>; keep the quote's own styling */
.article blockquote > p { font-size: inherit; color: inherit; }
.article blockquote > p:last-child { margin-bottom: 0; }
.article blockquote cite { display: block; margin-top: 8px; font-size: .9rem; font-style: normal; color: var(--muted); }

/* Blog content written in the block editor */
.article .wp-block-image, .article figure { margin: 28px 0; }
.article .wp-block-image img, .article figure img { height: auto; border-radius: 12px; }
.article figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.article .aligncenter { margin-left: auto; margin-right: auto; }
.article img { height: auto; }
.cw-pagination { margin-top: 40px; text-align: center; }
.cw-pagination .nav-links { display: inline-flex; gap: 8px; }
.cw-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); }
.cw-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- WPForms, laid out like the original forms ---------- */
.form-card .wpforms-container { margin: 0; }
.form-card .wpforms-field-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-card .wpforms-field { grid-column: 1 / -1; padding: 0; margin: 0; min-width: 0; }
.form-card .wpforms-field.cw-half { grid-column: auto; }
.form-card .wpforms-field-label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin: 0 0 6px; padding: 0; }
.form-card .wpforms-required-label { color: inherit; font-weight: inherit; }
.form-card .wpforms-field input:not([type=checkbox]):not([type=radio]),
.form-card .wpforms-field select,
.form-card .wpforms-field textarea { width: 100%; max-width: none; height: auto; padding: 12px 14px; border: 1px solid #cdd7e4; border-radius: 10px; font: inherit; font-size: .97rem; color: var(--ink); background: #fbfcfe; box-shadow: none; }
.form-card .wpforms-field input:focus, .form-card .wpforms-field select:focus, .form-card .wpforms-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,.15); background: #fff; }
.form-card .wpforms-field textarea { min-height: 120px; resize: vertical; }
.form-card .wpforms-field-checkbox ul { list-style: none; margin: 0; padding: 0; }
.form-card .wpforms-field-checkbox li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; }
.form-card .wpforms-field-checkbox input { width: auto; margin: 4px 0 0; flex: none; }
.form-card .wpforms-field-label-inline { display: inline; font-size: .9rem; font-weight: 400; color: var(--muted); margin: 0; }
.form-card ul.wpforms-field-required .wpforms-field-label-inline::after { content: " *"; }
.form-card .wpforms-label-hide, .form-card .wpforms-field-hp, .form-card .wpforms-hidden, .form-card .wpforms-screen-reader-element { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.form-card .wpforms-field-hp { display: none !important; }
.form-card .wpforms-field-description { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-card .wpforms-submit-container { margin: 16px 0 0; padding: 0; position: relative; }
.form-card .wpforms-submit.btn { font-family: inherit; height: auto; }
.form-card .cw-demo .wpforms-submit, .form-card .cw-demo.wpforms-form .wpforms-submit { width: 100%; justify-content: center; }
.form-card .wpforms-submit-spinner { margin-left: 10px; vertical-align: middle; }
.form-card label.wpforms-error, .form-card em.wpforms-error, .form-card .wpforms-error-container { display: block; color: #c62828; font-size: .85rem; font-style: normal; font-weight: 500; margin-top: 6px; }
.form-card .wpforms-field input.wpforms-error, .form-card .wpforms-field select.wpforms-error, .form-card .wpforms-field textarea.wpforms-error { border-color: #c62828; }
.form-card .wpforms-confirmation-container-full, .form-card div[submit-success] > .wpforms-confirmation-container-full { text-align: center; padding: 30px 10px; background: none; border: 0; color: var(--ink); margin: 0; }
.form-card .wpforms-confirmation-container-full p:last-child { margin: 0; }

/* Newsletter: email box and button on one line */
.form-card .cw-newsletter .wpforms-form, .form-card .cw-newsletter.wpforms-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.form-card .cw-newsletter .wpforms-field-container { flex: 1; min-width: 220px; display: block; }
.form-card .cw-newsletter .wpforms-submit-container { margin: 0; }

@media (max-width: 640px) {
  .form-card .wpforms-field-container { grid-template-columns: 1fr; }
}

.cw-form-missing { padding: 16px 18px; border: 1px dashed #cdd7e4; border-radius: 10px; color: var(--muted); font-size: .95rem; margin: 0; }
