.lymix-dialog {
  position: fixed;
  inset: 0;
  width: min(700px, calc(100% - 28px));
  max-height: min(88vh, 860px);
  max-height: min(88dvh, 860px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 18px;
  background: #f8f7f2;
  color: #101d23;
  box-shadow: 0 28px 100px #0a1a2770;
}

.lymix-dialog::backdrop {
  background: #0b2024a8;
  backdrop-filter: blur(3px);
}

.lymix-dialog--legal {
  width: min(555px, calc(100% - 28px));
}

.lymix-dialog [hidden] {
  display: none !important;
}

.lymix-dialog__inner {
  padding: clamp(22px, 4vw, 42px);
}

.lymix-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.lymix-dialog__header h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.lymix-dialog__close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid #acb9b5;
  border-radius: 50%;
  background: transparent;
  color: #101d23;
  font: 400 26px/1 sans-serif;
  cursor: pointer;
}

.lymix-dialog__close:hover {
  border-color: #006f71;
  background: #e2ebe7;
}

.lymix-dialog__intro,
.lymix-legal-copy {
  margin: 0 0 24px;
  color: #40524f;
  font-size: .975rem;
  line-height: 1.65;
}

.lymix-legal-copy {
  margin: 0;
}

.lymix-legal-copy p {
  margin: 0;
}

.lymix-legal-copy p + p {
  margin-top: .95rem;
}

.lymix-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.lymix-dialog label,
.lymix-dialog legend,
.lymix-form-more summary,
#inquiry-consent-label {
  color: #101d23;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
}

.lymix-dialog label span,
.lymix-form-more summary span,
#inquiry-consent-label > span {
  color: #526360;
  font-size: .72rem;
  font-weight: 400;
}

.lymix-form-grid label,
.lymix-form-message,
.lymix-draft-label {
  display: block;
}

.lymix-dialog input:not([type="checkbox"]),
.lymix-dialog select,
.lymix-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 5px 0 0;
  padding: 10px 11px;
  border: 1px solid #b7c4bf;
  border-radius: 8px;
  background: #fff;
  color: #101d23;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
}

.lymix-dialog textarea {
  resize: vertical;
}

.lymix-dialog ::placeholder {
  color: #5d6c69;
}

.lymix-dialog :focus-visible {
  outline: 2px solid #006f71;
  outline-offset: 3px;
}

.lymix-dialog fieldset {
  min-width: 0;
  margin: 21px 0 0;
  padding: 14px;
  border: 1px solid #b9c9c1;
  border-radius: 10px;
  background: #ebf0eb;
}

.lymix-dialog legend {
  padding: 0 4px;
}

.lymix-dialog fieldset .lymix-form-note {
  margin-top: 10px;
}

.lymix-form-message {
  margin-top: 17px;
}

.lymix-form-more {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #b7c4bf;
  border-radius: 8px;
}

.lymix-form-more summary {
  cursor: pointer;
}

.lymix-form-more[open] summary {
  margin-bottom: 14px;
}

.lymix-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
}

.lymix-consent input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 2px 0 0;
  accent-color: #006f71;
}

.lymix-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}

.lymix-dialog__primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: #dcf57a;
  color: #101d23;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.lymix-dialog__primary:hover {
  background: #cbeb54;
}

.lymix-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #006567;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.lymix-text-button:hover {
  color: #101d23;
}

.lymix-form-note {
  margin: 0;
  color: #4b605b;
  font-size: .8rem;
  line-height: 1.5;
}

#inquiry-review-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 650;
}

#inquiry-status:not(:empty) {
  margin-top: .5rem;
}

@media (max-width: 500px) {
  .lymix-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .lymix-dialog__actions {
    align-items: flex-start;
  }
}
