.menu {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 750;
  white-space: nowrap;
}

.consultation {
  background: var(--brand);
  color: white;
}

.consultation-wrap {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.consultation-intro {
  padding-block: 22px;
}

.consultation-intro .eyebrow {
  color: #e0e9ff;
}

.consultation-intro h2 {
  margin: .6rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.12;
}

.consultation-intro p {
  margin: 0;
  color: #e0e9ff;
}

.consultation-intro strong {
  color: white;
}

.consultation-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 18px 40px #0b173d40;
}

.consultation-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  gap: 6px;
  background: var(--panel);
}

.consultation-tabs button {
  min-height: 50px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
  font-size: .9375rem;
  font-weight: 750;
}

.consultation-tabs button:hover {
  background: var(--brand-soft);
}

.consultation-tabs button[aria-selected="true"] {
  background: var(--brand);
  color: white;
}

.consultation-panel {
  padding: clamp(18px, 4vw, 36px);
}

.consultation-title {
  margin: 0 0 22px;
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1.25;
}

#lead-form {
  display: grid;
  gap: 16px;
}

#lead-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

#lead-form legend,
#lead-form .form-field label {
  display: block;
  padding: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
}

#lead-form legend {
  margin-bottom: 5px;
}

#lead-form input:not([type="checkbox"]),
#lead-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #99a3b9;
  border-radius: 6px;
  background-color: white;
  color: var(--ink);
  font-size: 1rem;
}

#lead-form select {
  appearance: none;
  padding-inline-end: 32px;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' stroke='%230f2373' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center / 15px no-repeat;
}

#lead-form input[readonly] {
  background: var(--panel);
}

.phone-grid,
.visit-grid {
  display: grid;
  gap: 8px;
}

.phone-grid {
  grid-template-columns: .72fr 1fr 1fr;
}

.phone-grid input {
  text-align: center;
}

.visit-fields > legend {
  margin-bottom: 8px;
}

.visit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-box {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  font-size: .875rem;
}

.privacy-box h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: .9375rem;
}

.privacy-box dl,
.privacy-box dd {
  margin: 0;
}

.privacy-box dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.privacy-box dt {
  font-weight: 700;
}

.privacy-box p {
  margin: 8px 0 0;
}

.consent-row {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: .875rem;
  font-weight: 600;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.consultation-submit {
  min-height: 50px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 800;
}

.consultation-submit:hover {
  background: var(--brand-dark);
}

.consultation-submit:disabled {
  opacity: .6;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
}

.form-note a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

.form-note[data-state="success"],
.form-note[data-state="error"] {
  padding: 10px 12px;
  border-radius: 5px;
  font-weight: 700;
}

.form-note[data-state="success"] {
  background: #e8f5ee;
  color: #145338;
}

.form-note[data-state="error"] {
  background: #fceef0;
  color: #8c1929;
}

.consultation :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.footer {
  padding: 44px 0 calc(100px + env(safe-area-inset-bottom));
  background: #1c1f24;
  color: #c0c7d4;
  font-size: .875rem;
}

.footer-lockup {
  display: grid;
  gap: 3px;
  justify-items: start;
  color: white;
  line-height: 1.2;
}

.footer-logo {
  display: block;
  width: 100px;
  height: auto;
}

.footer-lockup::after {
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 9px;
  background: var(--gold);
  content: "";
}

.footer-info {
  margin: 14px 0 0;
}

.footer-info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-bottom: 3px;
}

.footer-info-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.footer-info dt {
  color: white;
  font-weight: 750;
}

.footer-info dd {
  margin: 0;
}

.footer-notices {
  margin-top: 24px;
  font-size: .8125rem;
}

.footer-notices p,
.footer-copyright {
  margin: 0 0 4px;
}

.footer-copyright {
  margin-top: 11px;
}

.footer-copyright small {
  font-size: .8125rem;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.fixedbar {
  position: fixed;
  z-index: 30;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  border-top: 1px solid rgb(255 255 255 / .22);
  background: var(--brand-dark);
  box-shadow: 0 -6px 25px #0b173d24;
}

.fixedbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: calc(var(--fixedbar-height) + env(safe-area-inset-bottom));
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  color: white;
  font-size: clamp(.875rem, 1.65vw, 1.0625rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  touch-action: manipulation;
}

.fixedbar a + a {
  border-left: 1px solid rgb(255 255 255 / .24);
}

.fixedbar svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fixedbar .fixed-call {
  background: var(--brand-red);
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
}

.fixedbar .fixed-interest {
  background: var(--gold);
  color: #161b2d;
}

.fixedbar .fixed-visit {
  background: var(--brand);
}

.fixedbar a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.fixedbar a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}

@media (max-width: 850px) {
  .consultation-wrap {
    max-width: 660px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .consultation-intro {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .fixedbar a {
    flex-direction: column;
    gap: 6px;
    padding-inline: 3px;
    font-size: clamp(.875rem, 4.4vw, 1rem);
  }

  .fixedbar svg {
    width: 25px;
    height: 25px;
  }

  .footer-info-line > div {
    column-gap: 6px;
  }
}

@media (max-width: 365px) {
  .consultation-panel {
    padding: 16px 12px;
  }

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

  #lead-form .phone-grid input {
    padding-inline: 4px;
  }
}
