html { scroll-padding-top: 24px; }
body.admin-bar .site-header { margin-top: 32px; }
.open-form-site .wp-site-blocks,
.open-form-site .wp-block-post-content { margin: 0; padding: 0; }
.open-form-site main > .wp-block-two2code-locked-section { display: contents; }
.open-form-site script[data-open-form-state],
.open-form-site template[data-pcsd-chapter] { display: none !important; }
.menu-open { overflow: hidden; }

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(560px, calc(100% - 36px));
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #55554f;
  box-shadow: 0 18px 48px rgb(0 0 0 / .2);
}
.cookie-banner p { font-size: 14px; line-height: 1.5; }
.cookie-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner button { flex: 0 0 auto; min-height: 44px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); font-weight: 650; }

.two2code-provider-form .wpcf7-form { display: grid; gap: 20px; }
.two2code-provider-form .wpcf7-form-control-wrap { display: block; }
.two2code-provider-form label { display: grid; gap: 9px; font-size: 13px; line-height: 1.4; }
.two2code-provider-form input:not([type="submit"]):not([type="checkbox"]),
.two2code-provider-form select,
.two2code-provider-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #8d8c84;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
}
.two2code-provider-form textarea { min-height: 160px; resize: vertical; }
.two2code-provider-form input:focus-visible,
.two2code-provider-form select:focus-visible,
.two2code-provider-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.two2code-provider-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.two2code-provider-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}
.two2code-provider-form .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.two2code-provider-form .wpcf7-acceptance .wpcf7-list-item-label { flex: 1; min-width: 0; line-height: 1.55; }
.two2code-provider-form p:has(> .wpcf7-submit) { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0; }
.two2code-provider-form p:has(> .wpcf7-submit) > .wpcf7-form-control-wrap { flex-basis: 100%; }
.two2code-provider-form p:has(> .wpcf7-submit) > br { display: none; }
.two2code-provider-form input[type="submit"] {
  appearance: none;
  min-height: 60px;
  max-width: 100%;
  padding: 17px 24px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 18px;
  font-weight: 570;
  cursor: pointer;
  transition: background .2s ease;
}
.two2code-provider-form input[type="submit"]:hover:not(:disabled) { background: var(--accent-hover); }
.two2code-provider-form input[type="submit"]:disabled { cursor: not-allowed; opacity: .65; }
.two2code-provider-form .wpcf7-spinner { margin: 0; }
.support-provider-form .wpcf7-form { display: block; }
.support-provider-form .contact-field > label {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 520;
}
.two2code-provider-form.support-provider-form .contact-field .wpcf7-form-control {
  display: block;
  width: 100%;
  min-height: 55px;
  border-color: #a6a39b;
  background: #faf9f5;
  padding: 15px 16px;
  line-height: 1.4;
}
.support-provider-form .contact-field select { padding-right: 30px; }
.two2code-provider-form.support-provider-form .contact-field textarea.wpcf7-form-control { min-height: 190px; max-height: 500px; }
.support-provider-form [hidden] { display: none !important; }
.support-provider-form .support-consent { margin-top: 22px; }
.support-provider-form .support-consent p { margin: 0; }
.support-provider-form .support-submit-control { position: relative; }
.support-provider-form .support-submit-control .wpcf7-spinner { position: absolute; left: 100%; top: 18px; margin-left: 12px; }
.support-provider-form .contact-submit:disabled { cursor: not-allowed; }
.support-provider-form .contact-submit:hover:disabled { background: var(--accent); }
.contact-provider-form .wpcf7-form { display: block; }
.contact-provider-form .contact-field > label { display: block; font-size: 14px; line-height: 1.5; font-weight: 520; }
.two2code-provider-form.contact-provider-form .contact-field .wpcf7-form-control {
  display: block;
  width: 100%;
  min-height: 55px;
  border-color: #a6a39b;
  background: #faf9f5;
  padding: 15px 16px;
  line-height: 1.4;
}
.contact-provider-form .contact-field select { padding-right: 30px; }
.two2code-provider-form.contact-provider-form .contact-field textarea.wpcf7-form-control { min-height: 155px; max-height: 500px; }
.contact-provider-form .contact-topics label { display: flex; gap: 13px; font-size: 16px; line-height: 1.3; }
.two2code-provider-form.contact-provider-form .contact-topics input[type="radio"] { width: 1px; min-height: 0; height: 1px; padding: 0; border: 0; }
.contact-provider-form .contact-submit-control { position: relative; }
.contact-provider-form .contact-submit-control .wpcf7-spinner { position: absolute; left: 100%; top: 18px; margin-left: 12px; }
.contact-provider-form .contact-submit:disabled { cursor: not-allowed; }
.contact-provider-form .contact-submit:hover:disabled { background: var(--accent); }
.contact-provider-form .contact-consent { margin-top: 22px; }
.contact-provider-form .contact-consent a { text-decoration: underline; text-underline-offset: 3px; }
.two2code-provider-form .wpcf7-response-output { margin: 0 !important; padding: 14px !important; border: 1px solid currentColor !important; }
.two2code-provider-form .wpcf7-not-valid-tip { margin-top: 7px; font-size: 13px; }
.two2code-form-fallback { border-top: 1px solid #8d8c84; padding-top: 22px; }

@media (max-width: 782px) { body.admin-bar .site-header { margin-top: 46px; } }
@media (max-width: 1050px) { .contact-provider-form .contact-topics label { gap: 9px; font-size: 14px; } }
@media (max-width: 760px) { .contact-provider-form .contact-topics label { gap: 10px; font-size: 15px; } }
@media (max-width: 700px) {
  .cookie-banner { align-items: flex-start; flex-direction: column; gap: 14px; right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .cookie-banner button { width: 100%; }
}
@media (max-width: 480px) {
  .two2code-provider-form input[type="submit"] { width: 100%; }
  .support-provider-form .contact-submit { width: 100%; }
  .support-provider-form .support-submit-control .wpcf7-spinner { left: auto; right: 10px; }
  .contact-provider-form .contact-topics label { gap: 8px; font-size: 14px; }
  .contact-provider-form .contact-submit { width: 100%; }
  .contact-provider-form .contact-submit-control .wpcf7-spinner { left: auto; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
.two2code-anchor-alias {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: 96px;
}
