.theme-data-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.theme-data-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.theme-data-heading h2,
.theme-data-section h2,
.theme-data-section h3 {
  text-wrap: balance;
}

.theme-data-section h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.theme-data-section h3 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.theme-data-section p {
  max-width: 72ch;
}

.theme-contact-lines {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.theme-contact-lines p {
  margin: 0;
}

.theme-contact-lines a {
  color: inherit;
}

.theme-contact-notice {
  margin-top: 18px;
  font-size: 0.95rem;
}

.theme-attorney-card {
  min-width: 0;
}

.theme-section-builder {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 74px) 0;
}

.theme-builder-section {
  min-width: 0;
  border: 1px solid rgba(143, 156, 172, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(22px, 4vw, 40px);
}

.theme-builder-section h2 {
  max-width: 820px;
  margin: 8px 0 14px;
  font-size: clamp(1.8rem, 3.8vw, 3.35rem);
  line-height: 1.08;
}

.theme-builder-section .theme-cta {
  margin-top: 18px;
}

.theme-builder-body {
  max-width: 76ch;
}

.theme-builder-image {
  margin: clamp(16px, 2.5vw, 26px) 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(143, 156, 172, 0.26);
  box-shadow: 0 18px 40px rgba(16, 31, 42, 0.12);
  background: #f5f7f7;
}

.theme-builder-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.theme-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 18px;
  min-width: 0;
}

.theme-card-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.theme-faq-list details {
  border: 1px solid rgba(143, 156, 172, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 16px 18px;
}

.theme-faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.theme-legal-notice {
  max-width: 78ch;
  margin-top: 18px;
  border-left: 4px solid currentColor;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.theme-practice-rows {
  display: grid;
  border-top: 1px solid rgba(143, 156, 172, 0.32);
}

.theme-practice-rows article {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.34fr) minmax(260px, 1fr);
  gap: clamp(14px, 3vw, 28px);
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(143, 156, 172, 0.32);
}

.theme-practice-rows span {
  font-weight: 900;
  opacity: 0.62;
}

.theme-practice-rows h3,
.theme-practice-rows p {
  margin: 0;
}

.theme-header nav {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.theme-header nav a,
.firm-mark {
  white-space: nowrap;
}

.theme-menu-toggle {
  display: none;
}

.firm-mark {
  min-width: 0;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firm-mark.has-uploaded-logo {
  --tenant-logo-max-width: 190px;
  --tenant-logo-max-height: 52px;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  width: min(var(--tenant-logo-max-width), 34vw);
  max-width: min(var(--tenant-logo-max-width), 34vw);
  min-height: 0;
  overflow: visible;
  line-height: 0;
  text-overflow: clip;
}

.firm-mark.logo-size-small {
  --tenant-logo-max-width: 150px;
  --tenant-logo-max-height: 42px;
}

.firm-mark.logo-size-medium {
  --tenant-logo-max-width: 190px;
  --tenant-logo-max-height: 52px;
}

.firm-mark.logo-size-large {
  --tenant-logo-max-width: 250px;
  --tenant-logo-max-height: 64px;
}

.firm-mark.has-uploaded-logo::before {
  display: none !important;
}

.firm-mark img {
  width: auto;
  height: auto;
  max-width: min(220px, 100%);
  max-height: 56px;
  object-fit: contain;
}

.firm-mark.has-uploaded-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--tenant-logo-max-height);
  object-fit: contain;
  object-position: left center;
}

.theme-hero-photo {
  min-width: 0;
  margin: 0;
}

.theme-hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(143, 156, 172, 0.32);
  border-radius: 10px;
  box-shadow: 0 22px 56px rgba(18, 27, 36, 0.16);
}

@media (max-width: 860px) {
  .theme-header [class$="-nav-shell"],
  .theme-header [class$="-header-inner"],
  .theme-header [class$="-bar-inner"],
  .theme-header [class$="-nav-frame"],
  .theme-header [class$="-command-shell"] {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .theme-menu-toggle {
    position: relative;
    display: inline-flex;
    order: 1;
    min-width: 46px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid rgba(143, 156, 172, 0.36);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: currentColor;
    cursor: pointer;
    font: 900 0.78rem/1 Inter, Arial, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .theme-menu-toggle::before {
    content: "";
    width: 19px;
    height: 13px;
    display: block;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .theme-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body .theme-header:not(.is-menu-open) nav[aria-label="Firm navigation"] {
    display: none !important;
  }

  body .theme-header:not(.is-menu-open) [class*="header-actions"],
  body .theme-header:not(.is-menu-open) [class*="bar-actions"],
  body .theme-header:not(.is-menu-open) [class*="nav-actions"],
  body .theme-header:not(.is-menu-open) [class*="command-actions"] {
    display: none !important;
  }

  .theme-header nav[aria-label="Firm navigation"] {
    order: 2 !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 8px;
    padding: 8px !important;
    border: 1px solid rgba(143, 156, 172, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(18, 27, 36, 0.12);
    overflow: hidden !important;
    white-space: normal !important;
  }

  .theme-header.is-menu-open nav[aria-label="Firm navigation"] {
    display: grid !important;
  }

  .theme-header.is-menu-open [class*="header-actions"],
  .theme-header.is-menu-open [class*="bar-actions"],
  .theme-header.is-menu-open [class*="nav-actions"],
  .theme-header.is-menu-open [class*="command-actions"] {
    display: flex !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 4px;
  }

  .theme-header.is-menu-open [class*="header-actions"] a,
  .theme-header.is-menu-open [class*="bar-actions"] a,
  .theme-header.is-menu-open [class*="nav-actions"] a,
  .theme-header.is-menu-open [class*="command-actions"] a {
    width: 100% !important;
    min-height: 44px;
    justify-content: center !important;
    text-align: center;
  }

  .theme-header nav[aria-label="Firm navigation"] a {
    min-height: 44px;
    width: 100%;
    justify-content: center !important;
    border-radius: 8px;
    padding: 0 12px !important;
    text-align: center;
    white-space: normal !important;
  }

  .theme-header [class*="header-cta"] {
    display: none !important;
    order: 3 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
    margin-top: 4px;
  }

  .theme-header.is-menu-open [class*="header-cta"] {
    display: inline-flex !important;
  }

  .theme-header [class$="header-note"] {
    display: none !important;
  }

  .firm-mark {
    max-width: 100%;
    white-space: nowrap;
  }

  .firm-mark.has-uploaded-logo {
    width: min(var(--tenant-logo-max-width), 72vw);
    max-width: min(var(--tenant-logo-max-width), 72vw);
  }

  .theme-hero-photo {
    width: 100%;
  }

  .theme-practice-rows article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .theme-practice-rows p {
    grid-column: 2;
  }
}

.public-booking-page h1 {
  max-width: 900px;
  margin: 8px 0 14px;
  font-size: clamp(2.12rem, 4.5vw, 4.05rem);
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
  min-width: 0;
}

.booking-notice,
.booking-panel {
  min-width: 0;
  border: 1px solid rgba(143, 156, 172, 0.24);
  border-radius: 10px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 54px rgba(26, 36, 48, 0.08);
}

.booking-notice ul {
  padding-left: 18px;
}

.booking-notice h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.08;
}

.public-booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.public-booking-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  min-width: 0;
}

.public-booking-form .booking-field-wide,
.public-booking-form .booking-errors,
.public-booking-form .public-intake-fieldset,
.public-booking-form .public-checkbox,
.public-booking-form .recaptcha-field,
.public-booking-form button.theme-cta {
  grid-column: 1 / -1;
}

.recaptcha-field {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.public-booking-form label > span,
.public-intake-fieldset legend {
  color: #243242;
  font-size: 0.94rem;
  line-height: 1.25;
}

.public-booking-form input:not([type="checkbox"]),
.public-booking-form select,
.public-booking-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(92, 108, 124, 0.34);
  border-radius: 10px;
  padding: 12px 14px;
  color: inherit;
  background: #ffffff;
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 1px 2px rgba(18, 31, 46, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.public-booking-form select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #40546a 50%),
    linear-gradient(135deg, #40546a 50%, transparent 50%),
    linear-gradient(180deg, rgba(245, 248, 251, 0.98), rgba(255, 255, 255, 0.98));
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 17px) 50%,
    0 0;
  background-size:
    7px 7px,
    7px 7px,
    100% 100%;
  background-repeat: no-repeat;
}

.public-booking-form input:not([type="checkbox"]):hover,
.public-booking-form select:hover,
.public-booking-form textarea:hover {
  border-color: rgba(64, 84, 106, 0.58);
}

.public-booking-form input:not([type="checkbox"]):focus,
.public-booking-form select:focus,
.public-booking-form textarea:focus {
  border-color: #26756f;
  box-shadow: 0 0 0 4px rgba(38, 117, 111, 0.14), inset 0 1px 2px rgba(18, 31, 46, 0.04);
  outline: 0;
}

.public-booking-form textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

.public-intake-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  border: 1px solid rgba(38, 117, 111, 0.18);
  border-radius: 12px;
  margin: 4px 0;
  padding: 20px;
  background: linear-gradient(180deg, rgba(248, 252, 251, 0.96), rgba(255, 255, 255, 0.96));
}

.public-intake-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
}

.public-intake-fieldset p,
.public-intake-fieldset small {
  margin: 0;
  color: inherit;
  opacity: 0.76;
}

.public-intake-fieldset p {
  grid-column: 1 / -1;
  max-width: 70ch;
  font-size: 0.98rem;
  line-height: 1.55;
}

.public-intake-fieldset .booking-field {
  grid-column: 1 / -1;
}

.public-intake-fieldset textarea {
  min-height: 132px;
}

.public-intake-fieldset select {
  align-self: start;
  min-height: 52px;
  height: 52px;
}

.public-intake-fieldset small {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
}

.public-booking-form button.theme-cta {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  min-height: 56px;
  justify-self: start;
  padding-inline: 24px;
  box-shadow: 0 16px 34px rgba(26, 36, 48, 0.14);
}

.public-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(112, 128, 144, 0.24);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(248, 250, 252, 0.9);
  font-weight: 700;
}

.public-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #26756f;
}

.public-checkbox span {
  color: #2f4052;
  line-height: 1.48;
}

.booking-errors,
.public-booking-form .errorlist {
  color: #8b2f27;
  font-weight: 800;
}

.public-booking-form .errorlist {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .theme-data-section,
  .theme-section-builder {
    width: min(1180px, calc(100% - 28px));
  }

  .theme-builder-section {
    padding: 20px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .public-booking-form,
  .public-intake-fieldset {
    grid-template-columns: 1fr;
  }

  .public-booking-page h1 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .booking-notice,
  .booking-panel {
    padding: 20px;
    overflow: hidden;
  }
}
