/* Financial Market Advisors – WordPress additions.
   1. Contact Form 7: makes CF7's markup look exactly like the static site's forms (components.css).
   2. Generic WordPress content (new pages, blog posts) using the site's type and spacing. */

/* ---------- 1. Contact Form 7 ---------- */

/* CF7 wraps each control in a span; let the control sit directly in the .field grid, as in the static form. */
.wpcf7 .field .wpcf7-form-control-wrap { display: contents; }

/* Radio / exclusive-checkbox groups -> the static .choice buttons. */
.wpcf7 .choices .wpcf7-form-control,
.wpcf7 .choices .wpcf7-list-item { display: contents; margin: 0; }
.wpcf7 .choices label { position: relative; display: inline-flex; }
.wpcf7 .choices label input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wpcf7 .choices .wpcf7-list-item-label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px 10px 14px; border: 1.5px solid var(--control); background: var(--white); font-weight: 600; cursor: pointer; }
.wpcf7 .choices .wpcf7-list-item-label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--control); flex: none; }
.wpcf7 .choices .wpcf7-list-item-label::after { content: none; }
.wpcf7 .choices input:checked + .wpcf7-list-item-label { border-color: var(--carbon); box-shadow: inset 0 0 0 1px var(--carbon); }
.wpcf7 .choices input:checked + .wpcf7-list-item-label::before { border: 5px solid var(--carbon); }
.wpcf7 .choices input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--carbon); outline-offset: 2px; }

/* Field errors -> .field-error */
.wpcf7 .wpcf7-not-valid-tip { display: block; margin: 0; font-size: .9688rem; font-weight: 700; color: var(--error); }
.wpcf7 .wpcf7-not-valid-tip::before { content: "Error: "; }
.wpcf7 .choices .wpcf7-not-valid-tip { flex-basis: 100%; }

/* Form message -> .form-status .notice (error by default, success once sent) */
.wpcf7 form .wpcf7-response-output { margin: 0 0 24px; padding: 16px 20px; background: var(--white); border: 0; border-left: 4px solid var(--error); color: var(--error); font-weight: 600; line-height: 1.5; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { color: var(--error); border-color: var(--error); }
.wpcf7 form.sent .wpcf7-response-output { color: var(--text); border-color: var(--carbon); }
.wpcf7 form.sent .wpcf7-response-output::before { content: "Received. "; font-weight: 800; }
.wpcf7 form.cert-form.sent .wpcf7-response-output::before { content: none; }

.wpcf7 .btn--submit[disabled] { cursor: progress; }

/* ---------- 2. Generic WordPress content ---------- */

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; font-family: var(--serif); line-height: 1.2; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--carbon); }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, figure { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .9375rem; color: var(--text-2); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li + li { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-list h2 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); line-height: 1.2; }
.post-meta { margin: 0 0 12px; color: var(--text-2); font-size: .9375rem; }
.pagination-nav { margin-top: 48px; display: flex; gap: 16px; justify-content: space-between; }
