/* El Gravo 2.0 — «Улыбка».
   Base layer: tokens, typography, links, buttons, forms, header and footer.
   Components and inner pages live in design-system.css, the home page in home.css. */

:root {
  /* Colour — taken from the logo and the clinic uniform: plum ink and apricot. */
  --eg-ink: #2d2a47;
  --eg-ink-soft: #625f7c;
  --eg-ink-faint: #8e8ba6;      /* decoration only, never body text */
  --eg-paper: #fff;
  --eg-lilac: #efecf8;          /* portraits, quiet surfaces */
  --eg-lilac-strong: #e3dff1;   /* hover, chips */
  --eg-line: #e5e2ef;
  --eg-line-strong: #cfcbe2;
  --eg-apricot: #f2a65a;        /* the one action colour */
  --eg-apricot-hover: #ec9443;
  --eg-link-hover: #a35522;
  --eg-apricot-wash: #fdf0e3;
  --eg-on-ink: #fff;
  --eg-on-ink-soft: #c9c5e0;
  --eg-error: #b23a3a;
  --eg-error-wash: #fdf0ef;
  --eg-success: #2f7a55;
  --eg-success-wash: #eef7f1;

  /* Type */
  --eg-font: Geologica, "Helvetica Neue", Arial, sans-serif;
  --eg-fs-display: clamp(46px, 6.5vw, 100px);
  --eg-fs-h1: clamp(31px, 3.2vw + 18px, 64px);
  --eg-fs-h2: clamp(27px, 2.4vw + 14px, 48px);
  --eg-fs-h3: 21px;
  --eg-fs-lead: clamp(17px, 1.3vw, 19px);
  --eg-fs-body: 16px;
  --eg-fs-small: 14px;
  --eg-fs-micro: 13px;

  /* Space and shape */
  --eg-gutter: clamp(20px, 5vw, 72px);
  --eg-max: 1296px;
  --eg-section: clamp(72px, 9vw, 136px);
  --eg-r-s: 12px;
  --eg-r-m: 20px;
  --eg-r-l: 32px;
  --eg-r-pill: 999px;
  --eg-control: 52px;
  --eg-shadow-pop: 0 18px 40px -12px rgba(45, 42, 71, .22);

  /* Aliases kept for blocks and plugins that still read the v1 names. */
  --eg-navy: var(--eg-ink);
  --eg-peach: var(--eg-apricot);
  --eg-cream: var(--eg-apricot-wash);
  --eg-border: var(--eg-line);
  --eg-space: var(--eg-gutter);
  --eg-text-primary: var(--eg-ink);
  --eg-text-secondary: var(--eg-ink-soft);
  --eg-text-inverse: var(--eg-on-ink);
  --eg-surface-white: var(--eg-paper);
  --eg-surface-subtle: var(--eg-lilac);
  --eg-surface-lavender: var(--eg-lilac-strong);
  --eg-surface-cream: var(--eg-apricot-wash);
  --eg-surface-brand: var(--eg-ink);
  --eg-border-subtle: var(--eg-line);
  --eg-border-control: var(--eg-line-strong);
  --eg-action-primary: var(--eg-ink);
  --eg-action-accent: var(--eg-apricot);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
/* The Food / KV98 script owns easing while active; avoid a second CSS animation. */
html.elgravo-smooth-scroll { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--eg-paper);
  color: var(--eg-ink);
  font-family: var(--eg-font);
  font-size: var(--eg-fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-variation-settings: "CRSV" 0;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--eg-apricot); color: var(--eg-ink); }

/* Headings: light, soft and large. The Cursive axis rounds the letterforms. */
h1, h2, h3, h4, h5, h6 { color: var(--eg-ink); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-weight: 340; font-variation-settings: "CRSV" 1; letter-spacing: -.032em; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; hyphenate-limit-chars: 13 5 5; }
h1 { font-size: var(--eg-fs-h1); line-height: 1.04; }
h2 { font-size: var(--eg-fs-h2); line-height: 1.08; }
h3, h4, h5, h6 { font-weight: 500; letter-spacing: -.012em; line-height: 1.3; }
h3 { font-size: var(--eg-fs-h3); }
h4 { font-size: 18px; }
h5, h6 { font-size: var(--eg-fs-body); }

a { color: var(--eg-ink); text-decoration: none; transition: color .22s ease .04s; }
a:is(:hover, :focus-visible) { color: var(--eg-link-hover); }
:focus-visible { outline: 3px solid var(--eg-ink); outline-offset: 3px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }

/* Layout shell */
.wp-site-blocks { padding: 0; }
.site-main { width: 100%; max-width: calc(var(--eg-max) + 2 * var(--eg-gutter)); margin: 0 auto; padding: clamp(24px, 3.2vw, 48px) var(--eg-gutter) var(--eg-section); }
.home-main { max-width: none; padding: 0; }
.entry-content > .wp-block-group { margin-block: 0; }
.wp-block-columns { gap: clamp(24px, 3vw, 48px); margin-bottom: 0; }
.wp-block-column { min-width: 0; }
.elgravo-section { padding: 0; margin: 0 !important; }

/* Buttons: one apricot action, one quiet outline. */
.wp-block-button__link, .wp-element-button, .eg-button, .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--eg-control); padding: 0 28px;
  border: 0; border-radius: var(--eg-r-pill);
  background: var(--eg-apricot); color: var(--eg-ink);
  font: 500 16px/1.2 var(--eg-font); letter-spacing: -.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s, box-shadow .18s, transform .18s;
}
.wp-block-button__link:hover, .eg-button:hover, .wpcf7-submit:hover { background: var(--eg-apricot-hover); color: var(--eg-ink); text-decoration: none; }
.wp-block-button__link:active, .eg-button:active, .wpcf7-submit:active { transform: translateY(1px); }
.is-style-outline .wp-block-button__link, .eg-button-secondary {
  background: transparent; color: var(--eg-ink);
  box-shadow: inset 0 0 0 1.5px var(--eg-line-strong);
  padding: 0 26px; border: 0;
}
.is-style-outline .wp-block-button__link:hover, .eg-button-secondary:hover { background: var(--eg-lilac); box-shadow: inset 0 0 0 1.5px var(--eg-ink); color: var(--eg-ink); }
.wp-block-buttons { gap: 12px; }

/* ——— Header ——— */
.wp-site-blocks > .wp-block-template-part:has(> .elgravo-header) { position: sticky; top: 0; z-index: 60; }
.elgravo-header { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.elgravo-header-inner { position: relative; display: flex; align-items: center; gap: 28px; max-width: calc(var(--eg-max) + 2 * var(--eg-gutter)); min-height: 80px; margin: 0 auto; padding: 12px var(--eg-gutter); }
.elgravo-logo { flex-shrink: 0; display: block; line-height: 0; border-radius: 8px; }
.elgravo-logo img { display: block; width: 132px; height: auto; }
.elgravo-desktop-nav { margin-left: auto; }
.elgravo-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.elgravo-menu li { position: relative; }
.elgravo-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--eg-r-pill); color: var(--eg-ink); font-size: 15px; font-weight: 450; text-decoration: none; transition: color .22s ease .04s, background-color .22s ease .04s; }
.elgravo-menu a:is(:hover, :focus-visible) { color: var(--eg-link-hover); }
.elgravo-menu a:hover { background: var(--eg-lilac); }
.elgravo-menu .current-menu-item > a, .elgravo-menu .current-menu-ancestor > a { background: var(--eg-lilac); }
.elgravo-desktop-nav .elgravo-menu > li:has(> a[href^="tel:"]) { order: 1; margin-left: 12px; }
.elgravo-desktop-nav .elgravo-menu > li:has(> a[href^="tel:"]) > a { font-weight: 500; font-variant-numeric: tabular-nums; padding: 0 8px; }
.elgravo-desktop-nav .elgravo-menu > li:has(> a[href^="tel:"]) > a:hover { background: transparent; color: var(--eg-link-hover); }
.elgravo-desktop-nav .elgravo-menu > li.menu-item-846 { order: 2; margin-left: 8px; }
.elgravo-desktop-nav .elgravo-menu > li.menu-item-846 > a { background: var(--eg-apricot); padding: 0 22px; font-weight: 500; }
.elgravo-desktop-nav .elgravo-menu > li.menu-item-846 > a:hover { background: var(--eg-apricot-hover); }
.elgravo-menu .sub-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(-4px); position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--eg-paper); border: 1px solid var(--eg-line); border-radius: var(--eg-r-m); box-shadow: var(--eg-shadow-pop); z-index: 5; transition: opacity .15s, transform .15s, visibility 0s .15s; }
.elgravo-menu li:hover > .sub-menu, .elgravo-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.elgravo-menu .sub-menu a { display: flex; width: 100%; border-radius: var(--eg-r-s); }
.elgravo-menu > li.menu-item-has-children > a::after { content: ''; width: 6px; height: 6px; margin: -3px 0 0 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }

.elgravo-search-toggle { flex-shrink: 0; }
.elgravo-search-toggle > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; list-style: none; cursor: pointer; color: var(--eg-ink); transition: background-color .15s; }
.elgravo-search-toggle > summary::-webkit-details-marker { display: none; }
.elgravo-search-toggle > summary:hover, .elgravo-search-toggle[open] > summary { background: var(--eg-lilac); }
.elgravo-search-toggle .elgravo-search { position: absolute; right: var(--eg-gutter); top: calc(100% - 4px); width: min(380px, calc(100vw - 2 * var(--eg-gutter))); padding: 10px; background: var(--eg-paper); border: 1px solid var(--eg-line); border-radius: var(--eg-r-m); box-shadow: var(--eg-shadow-pop); z-index: 20; }
.elgravo-search { display: flex; gap: 8px; }
.elgravo-search label { flex: 1; min-width: 0; }
.elgravo-search input { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--eg-line-strong); border-radius: var(--eg-r-pill); background: var(--eg-paper); font-size: 16px; }
.elgravo-search input:focus { outline: none; border-color: var(--eg-ink); box-shadow: 0 0 0 3px rgba(242, 166, 90, .45); }
.elgravo-search button { min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--eg-r-pill); background: var(--eg-apricot); color: var(--eg-ink); font-weight: 500; cursor: pointer; }
.elgravo-search button:hover { background: var(--eg-apricot-hover); }

.skip-link.screen-reader-text:focus { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; white-space: nowrap; z-index: 100; top: 12px; left: 12px; padding: 12px 22px; background: var(--eg-apricot); color: var(--eg-ink); border-radius: var(--eg-r-pill); font: 500 15px/1.2 var(--eg-font); box-shadow: var(--eg-shadow-pop); }
.elgravo-call { display: none; }
.elgravo-mobile-nav { display: none; }
.elgravo-mobile-nav > summary { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; list-style: none; cursor: pointer; background: var(--eg-lilac); }
.elgravo-mobile-nav > summary::-webkit-details-marker { display: none; }
.elgravo-mobile-nav > summary img { width: 22px; height: 22px; max-width: none; }

@media (max-width: 1080px) {
  .elgravo-desktop-nav, .elgravo-search-toggle { display: none; }
  .elgravo-header-inner { gap: 10px; }
  .elgravo-call { display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border-radius: 50%; background: var(--eg-apricot); color: var(--eg-ink); }
  .elgravo-call:hover { background: var(--eg-apricot-hover); }
  .elgravo-mobile-nav { display: block; margin-left: auto; }
  .elgravo-call + .elgravo-mobile-nav { margin-left: 0; }
  .elgravo-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 8px var(--eg-gutter) 28px; background: var(--eg-paper); border-bottom: 1px solid var(--eg-line); box-shadow: 0 24px 40px -24px rgba(45, 42, 71, .25); z-index: 20; }
  .elgravo-mobile-panel .elgravo-menu { display: flex; flex-direction: column; align-items: stretch; }
  .elgravo-mobile-panel .elgravo-menu > li.menu-item-846 { order: 10; margin-top: 20px; border-bottom: 0; }
  .elgravo-mobile-panel .elgravo-menu > li.menu-item-846 > a { display: flex; width: 100%; padding: 0 24px; justify-content: center; min-height: 56px; border-radius: var(--eg-r-pill); background: var(--eg-apricot); color: var(--eg-ink); font-size: 17px; font-weight: 500; font-variation-settings: "CRSV" 0; letter-spacing: 0; }
  .elgravo-mobile-panel .elgravo-menu > li.menu-item-846 > a:hover { background: var(--eg-apricot-hover); color: var(--eg-ink); }
  .elgravo-mobile-panel .elgravo-menu > li { border-bottom: 1px solid var(--eg-line); }
  .elgravo-mobile-panel .elgravo-menu a { min-height: 56px; padding: 0; border-radius: 0; font-size: 22px; font-weight: 340; font-variation-settings: "CRSV" 1; letter-spacing: -.02em; }
  .elgravo-mobile-panel .elgravo-menu a:hover { background: transparent; color: var(--eg-ink-soft); }
  .elgravo-mobile-panel .elgravo-menu > li.menu-item-has-children > a::after { display: none; }
  .elgravo-mobile-panel .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; min-width: 0; padding: 0 0 12px 16px; border: 0; box-shadow: none; background: transparent; }
  .elgravo-mobile-panel .sub-menu a { min-height: 40px; font-size: 17px; font-weight: 400; font-variation-settings: "CRSV" 0; color: var(--eg-ink-soft); }
  .elgravo-mobile-panel .elgravo-menu > li:has(> a[href^="tel:"]) > a { font-size: 22px; font-variant-numeric: tabular-nums; }
  .elgravo-mobile-panel .elgravo-search { margin-top: 20px; }
}
@media (max-width: 760px) {
  .elgravo-header-inner { min-height: 68px; padding-block: 10px; }
  .elgravo-logo img { width: 116px; }
}

/* ——— Footer ——— */
/* The footer answers the first screen: the same bounded width, and a curve on
   top that is bent while the footer is far and straightens as it comes closer
   (assets/footer-motion.js drives --eg-footer-progress, 1 → .12). */
.elgravo-footer {
  --eg-footer-smile: clamp(92px, 13vw, 226px);   /* = --eg-smile of the first screen */
  --eg-footer-curve: calc(var(--eg-footer-smile) * var(--eg-footer-progress, 1));
  position: relative; width: calc(100% - 32px); max-width: 1600px; margin: 0 auto 16px;
  background: var(--eg-ink); color: var(--eg-on-ink);
  border-radius: 50% 50% 32px 32px / var(--eg-footer-curve) var(--eg-footer-curve) 32px 32px;
  overflow: hidden;
}
.elgravo-footer > .wp-block-block, .elgravo-footer > div { margin: 0; }
.eg-footer-cta, .eg-footer-content { max-width: calc(var(--eg-max) + 2 * var(--eg-gutter)); margin: 0 auto !important; padding-inline: var(--eg-gutter); }
.eg-footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; padding-block: calc(clamp(56px, 7vw, 104px) + var(--eg-footer-smile) * .24) clamp(40px, 5vw, 64px); }
.eg-footer-cta > * { margin: 0 !important; }
.eg-footer-cta h2 { margin: 0 0 14px; color: var(--eg-on-ink); font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; }
.eg-footer-cta p { margin: 0; max-width: 46ch; color: var(--eg-on-ink-soft); font-size: var(--eg-fs-lead); line-height: 1.5; }
.eg-footer-cta .wp-block-buttons { flex-shrink: 0; }
.eg-footer-cta .wp-block-button__link { min-height: 60px; padding: 0 34px; font-size: 17px; }
.eg-footer-content { padding-block: 40px 48px; border-top: 1px solid rgba(255, 255, 255, .12); }
.eg-footer-content > .wp-block-columns > .wp-block-column:first-child::before { content: ''; display: block; width: 148px; height: 44px; margin: 0 0 36px; background: url(design-system/logo-inverse.svg) left center / contain no-repeat; }
.eg-footer-content > .wp-block-columns { display: grid; grid-template-columns: 1.4fr .7fr 1.3fr; gap: 32px 48px; }
.eg-footer-content h3 { margin: 0 0 16px; color: var(--eg-on-ink-soft); font-size: var(--eg-fs-small); font-weight: 400; letter-spacing: 0; }
.eg-footer-content p, .eg-footer-content li { margin: 0 0 10px; color: var(--eg-on-ink); font-size: 15px; line-height: 1.55; }
.eg-footer-content .wp-block-column:first-child p { margin-bottom: 14px; line-height: 1.9; }
.eg-footer-content .wp-block-column:last-child p { color: var(--eg-on-ink-soft); font-size: var(--eg-fs-micro); }
.eg-footer-content a { color: var(--eg-on-ink); text-decoration: none; }
.eg-footer-content a:is(:hover, :focus-visible) { color: var(--eg-apricot); }
.eg-footer-content a[href^="tel:"] { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 2; }
.eg-footer-content ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.elgravo-footer :focus-visible { outline-color: var(--eg-apricot); }
@media (max-width: 760px) {
  .elgravo-footer {
    --eg-footer-smile: 92px; width: calc(100% - 16px); margin-bottom: 8px;
    border-radius: 50% 50% 24px 24px / var(--eg-footer-curve) var(--eg-footer-curve) 24px 24px;
  }
}
@media (max-width: 900px) {
  .eg-footer-content > .wp-block-columns { grid-template-columns: 1fr 1fr; }
  .eg-footer-content .wp-block-column:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .eg-footer-content li a, .eg-footer-content p a { display: inline-block; padding-block: 5px; }
  .eg-footer-cta { flex-direction: column; align-items: flex-start; }
  .eg-footer-cta .wp-block-buttons, .eg-footer-cta .wp-block-button, .eg-footer-cta .wp-block-button__link { width: 100%; }
  .eg-footer-content > .wp-block-columns { grid-template-columns: 1fr; gap: 28px; }
}

/* ——— Appointment form (Contact Form 7 #128), shared by every page ——— */
.wpcf7 { position: relative; padding: clamp(22px, 2.4vw, 32px); background: var(--eg-paper); border: 1px solid var(--eg-line); border-radius: 28px; }
.wpcf7 form > p, .wpcf7 .eg-form-fields > p { margin: 0; }
.wpcf7 .eg-form-title { margin: 0 0 6px; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; font-weight: 340; font-variation-settings: "CRSV" 1; letter-spacing: -.028em; }
.wpcf7 .eg-form-intro { margin: 0 0 22px; color: var(--eg-ink-soft); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.wpcf7 .eg-form-fields { display: grid; gap: 14px; }
.wpcf7 label { display: block; color: var(--eg-ink); font-size: var(--eg-fs-small); font-weight: 500; line-height: 1.4; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input:not([type=checkbox]):not([type=submit]):not([type=radio]), .wpcf7 select, .wpcf7 textarea {
  display: block; width: 100%; min-height: var(--eg-control); margin: 0; padding: 12px 18px;
  background: var(--eg-paper); color: var(--eg-ink);
  border: 1px solid var(--eg-line-strong); border-radius: 16px;
  font-size: 16px; font-weight: 400; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--eg-ink-faint); opacity: 1; }
.wpcf7 input:hover:not([type=checkbox]):not([type=submit]), .wpcf7 select:hover, .wpcf7 textarea:hover { border-color: var(--eg-ink-faint); }
.wpcf7 input:focus:not([type=checkbox]):not([type=submit]), .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--eg-ink); box-shadow: 0 0 0 4px rgba(242, 166, 90, .4); }
.wpcf7 select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='m3 5.5 4 4 4-4' stroke='%232d2a47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.wpcf7 textarea { height: 96px; min-height: 96px; resize: vertical; }
.wpcf7 .eg-form-extra { margin: 0; padding: 0; border: 0; background: transparent; }
.wpcf7 .eg-form-extra > summary { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 12px 32px 12px 14px; background: var(--eg-lilac); border-radius: 12px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color .22s ease; }
.wpcf7 .eg-form-extra > summary:hover { background: var(--eg-lilac-strong); }
.wpcf7 .eg-form-extra > summary::-webkit-details-marker { display: none; }
.wpcf7 .eg-form-extra > summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .2s; }
.wpcf7 .eg-form-extra[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
.wpcf7 .eg-form-extra > summary span { color: var(--eg-ink-soft); font-weight: 400; }
.wpcf7 .eg-form-extra[open] > summary { margin-bottom: 10px; }
.wpcf7 .eg-form-extra p + p { margin-top: 14px; }
.wpcf7 .eg-form-consent .wpcf7-form-control-wrap { margin: 0; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .eg-form-consent label { display: flex; align-items: flex-start; gap: 12px; color: var(--eg-ink-soft); font-size: 12px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.wpcf7 .eg-form-consent a { color: var(--eg-ink); }
.wpcf7 .eg-form-privacy, .wpcf7 .eg-form-data-note { color: var(--eg-ink-soft); font-size: 12px; line-height: 1.5; }
.wpcf7 .eg-form-privacy { margin-top: -8px; padding-left: 32px; }
.wpcf7 .eg-form-privacy a { color: var(--eg-ink); }
.wpcf7 input[type=checkbox] { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--eg-ink); cursor: pointer; }
.wpcf7 .wpcf7-submit { width: 100%; min-height: 56px; margin-top: 4px; font-size: 17px; }
.wpcf7 .wpcf7-submit:disabled { background: var(--eg-lilac); color: var(--eg-ink-soft); cursor: not-allowed; transform: none; }
.wpcf7 .wpcf7-not-valid { border-color: var(--eg-error) !important; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; color: var(--eg-error); font-size: var(--eg-fs-micro); font-weight: 400; }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; margin: 12px 0 0; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 0; border-radius: var(--eg-r-s); font-size: var(--eg-fs-small); line-height: 1.5; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: var(--eg-error-wash); color: var(--eg-error); }
.wpcf7 form.sent .wpcf7-response-output { background: var(--eg-success-wash); color: var(--eg-success); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .wp-site-blocks > .wp-block-template-part:has(> .elgravo-header), .elgravo-header, .elgravo-footer, .elgravo-record-sidebar, .wpcf7, .dkpdf-button-container { display: none; }
  .site-main { max-width: none; padding: 0; }
  .elgravo-price-section:not([open]) > * { display: block; }
  .elgravo-record { display: block; }
  .elgravo-price-section { break-inside: avoid; }
}

/* The shared SmartCaptcha uses the form typography and fits the narrow column. */
.wpcf7 .wse-smartcaptcha[hidden] { display: none; }
.wpcf7 .wse-smartcaptcha { margin: 0 0 1rem; min-width: 0; }
.wpcf7 .wse-smartcaptcha__message { font-family: inherit; font-size: 12px; }
.wpcf7 .wse-smartcaptcha__widget { max-width: 100%; }
