.consult-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(10, 29, 39, 0.35);
}

.consult-dialog::backdrop {
  background: rgba(12, 30, 40, 0.68);
}

.consult-dialog-card {
  position: relative;
  padding: 30px;
}

.consult-dialog-card .section-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.consult-dialog-card h2 {
  margin: 7px 52px 10px 0;
  font-size: 1.65rem;
  line-height: 1.35;
}

.consult-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.schedule-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.consult-form {
  display: grid;
  margin: 22px 0 12px;
}

.consult-form .field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.consult-form label {
  font-weight: 700;
}

.consult-form input,
.consult-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.consult-form input:focus,
.consult-form select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(215, 118, 50, 0.18);
}

.required-label,
.optional-label {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.4;
  vertical-align: 1px;
}

.required-label {
  color: #fff;
  background: var(--accent);
}

.optional-label {
  color: var(--muted);
  background: #edf1f2;
}

.field-help,
.consult-dialog .muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.consult-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  margin: 2px 0 4px;
  font-weight: 400 !important;
}

.consult-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.consult-dialog .button {
  display: inline-flex;
  min-width: 44px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.consult-dialog .button-primary {
  background: var(--brand);
  color: #fff;
}

.consult-dialog .button-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.consult-submit,
.consult-later {
  width: 100%;
  margin-top: 4px;
}

.consult-success {
  margin: 20px 0 12px;
  padding: 18px;
  border: 1px solid #b9d9c5;
  border-radius: 14px;
  background: #edf6f1;
}

.consult-success h3 {
  margin: 0 0 6px;
}

.consult-test-note {
  min-height: 1.7em;
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.field-error {
  margin: 0 0 8px;
  color: #9f1239;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .consult-dialog-card {
    padding: 24px 20px;
  }

  .consult-dialog-card h2 {
    margin-right: 42px;
    font-size: 1.45rem;
  }
}
