/*
 * WordPress-specific additions. The original design stays in style.css (unchanged);
 * this file only adapts plugin/WordPress markup to it.
 */

/* Contact Form 7 inside the original form layouts. */
.nexevo .wpcf7 .hidden-fields-container,
.nexevo .wpcf7 fieldset.hidden-fields-container { display: none; }
.nexevo .wpcf7-form-control-wrap { display: block; position: relative; }
.nexevo .h-form .wpcf7-response-output,
.nexevo .ct-fields .wpcf7-response-output { grid-column: 1 / -1; }
.nexevo .wpcf7 form .wpcf7-response-output {
	width: 100%;
	margin: 6px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	border-width: 1px;
	font-size: var(--fs-14_5);
	font-weight: 600;
}
.nexevo .ct-form .wpcf7 form .wpcf7-response-output { margin-top: 18px; }
.nexevo .wpcf7 form.sent .wpcf7-response-output { border-color: var(--color-success); color: var(--color-success); }
.nexevo .wpcf7 form.invalid .wpcf7-response-output,
.nexevo .wpcf7 form.unaccepted .wpcf7-response-output,
.nexevo .wpcf7 form.failed .wpcf7-response-output,
.nexevo .wpcf7 form.aborted .wpcf7-response-output,
.nexevo .wpcf7 form.spam .wpcf7-response-output { border-color: var(--color-error); color: var(--color-error); }
.nexevo .wpcf7-not-valid-tip { margin-top: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--color-error); }
.nexevo .wpcf7 .wpcf7-not-valid { border-color: var(--color-error) !important; }
/* Spinner overlays the button instead of adding a line below it. */
.nexevo .wpcf7 form .full:has(> .wpcf7-submit),
.nexevo .wpcf7 form .ct-submit { position: relative; }
.nexevo .wpcf7 .wpcf7-spinner { position: absolute; right: 14px; top: 50%; margin: -12px 0 0; }
.nexevo .wpcf7 .ct-submit .wpcf7-spinner { right: auto; left: 190px; }
/* The original forms ended with an empty <p class="form-status"> (14px top margin). */
.nexevo .h-form .full:has(> .wpcf7-submit) { padding-bottom: 14px; }
.nexevo .h-form .full:has(> .wpcf7-submit) .wpcf7-spinner { margin-top: -19px; }
.nexevo .ct-form .ct-fields { margin-bottom: 0; }
.nexevo .ct-form .wpcf7 form.init .ct-fields::after { content: ""; grid-column: 1 / -1; height: 0; margin-top: 14px; }
.nexevo .h-form .wpcf7-submit,
.nexevo .ct-form .wpcf7-submit { border: 0; cursor: pointer; font-family: inherit; }
.nexevo .h-form .wpcf7-submit { width: 100%; }
.nexevo .wpcf7 .wpcf7-submit:disabled { opacity: .7; cursor: progress; }

/* Consent checkbox: same markup as the original; only the CF7 wrapper must stay inline. */
.nexevo .ct-consent .nx-consent-wrap { display: contents; }

/* Wrappers added around forms keep the original grid cell. */
.nexevo .nx-formwrap { min-width: 0; }
.nx-form-missing { padding: 16px; border: 1px dashed currentColor; border-radius: 12px; opacity: .8; }

/* Optional image logo. */
.nx-logo-img { display: block; max-height: 44px; width: auto; }

/* Blog pagination. */
.nexevo .navigation.pagination { margin-top: 40px; }
.nexevo .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nexevo .nav-links .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--color-border); border-radius: 12px;
	background: var(--color-white); color: var(--color-ink); font-weight: 600; text-decoration: none;
}
.nexevo .nav-links .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

/* Editor-added images inside posts / legal pages. */
.nexevo .h-article img, .nexevo .nexevo-tnc img { max-width: 100%; height: auto; }
.nexevo .alignleft { float: left; margin: 0 24px 16px 0; }
.nexevo .alignright { float: right; margin: 0 0 16px 24px; }
.nexevo .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Editable background images (set by nx_bg() as custom properties).
   Specificity (0,2,0) + loaded after style.css, so they beat the original !important rules. */
.nexevo [style*="--nx-bg:"],
.nexevo[style*="--nx-bg:"] { background-image: var(--nx-bg) !important; }
@media (max-width: 700px) {
	.nexevo [style*="--nx-bg-m:"],
	.nexevo[style*="--nx-bg-m:"] { background-image: var(--nx-bg-m) !important; }
}

/* Packages template: price reveal for any page using it (the original rules are scoped to the two original slugs). */
:where(.tpl-packages) .pval { display: none; }
:where(.tpl-packages) .pstripe { display: none !important; }
body:where(.tpl-packages):has(#nexevo-pv:checked) .pval { display: block; }
body:where(.tpl-packages):has(#nexevo-pv:checked) .pmask { display: none; }
body:where(.tpl-packages):has(#nexevo-pv:checked) .pstripe { display: inline-flex !important; }
body:where(.tpl-packages):has(#nexevo-pv:checked) .pcontact { display: none !important; }
:where(.tpl-packages) .pveil { text-decoration: underline; cursor: pointer; }
