.contact-us-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 58px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.contact-us-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-us-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.84), 0 0 0 6px rgba(31, 111, 216, 0.9);
}

#contact-modal-root:empty {
  display: none;
}

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(15, 38, 56, 0.42), rgba(15, 38, 56, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-modal-shell {
  width: min(100%, 1040px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 28, 42, 0.98), rgba(22, 54, 79, 0.94));
  box-shadow: 0 38px 90px rgba(5, 20, 32, 0.45);
  color: #ffffff;
}

.contact-modal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.contact-modal-aside {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 100%;
  padding: clamp(28px, 4vw, 40px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(15, 38, 56, 0.4), rgba(15, 38, 56, 0.18));
}

.contact-modal-aside::after {
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.contact-modal-brand {
  display: grid;
  gap: 14px;
}

.contact-modal-brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(280px, 48vw);
  object-fit: contain;
}

.contact-modal-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-modal-heading {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.contact-modal-copy {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-modal-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-modal-points li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-modal-points strong {
  font-size: 0.9rem;
}

.contact-modal-points span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.4;
}

.contact-modal-panel {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
  color: var(--ink);
}

.contact-modal-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.contact-modal-header h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.contact-modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.contact-modal-close {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
}

.contact-modal-close:hover {
  background: var(--soft-card);
}

.contact-modal-form {
  display: grid;
  gap: 14px;
}

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

.contact-modal-field {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
}

.contact-modal-field.span-2 {
  grid-column: 1 / -1;
}

.contact-modal-field input,
.contact-modal-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.contact-modal-field textarea {
  min-height: 188px;
  resize: vertical;
}

.contact-modal-field input:focus,
.contact-modal-field textarea:focus {
  outline: none;
  border-color: rgba(31, 111, 216, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 111, 216, 0.12);
}

.contact-modal-field.has-error input,
.contact-modal-field.has-error textarea {
  border-color: rgba(201, 33, 47, 0.36);
  background: #fff8f8;
}

.contact-modal-error {
  min-height: 18px;
  color: var(--red-dark);
  font-size: 0.84rem;
  line-height: 1.35;
}

.contact-modal-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-modal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-grey);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.contact-modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-modal-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-modal-status.is-success {
  border-color: rgba(27, 120, 76, 0.22);
  background: #eef9f3;
  color: #12623d;
}

.contact-modal-status.is-error {
  border-color: rgba(201, 33, 47, 0.2);
  background: #fff3f4;
  color: var(--red-dark);
}

.contact-modal-submit {
  min-width: 176px;
}

.contact-modal-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.contact-modal-success {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-modal-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1f7a55, #37a271);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
}

.contact-modal-success h3 {
  margin: 0;
  font-size: 1.9rem;
}

.contact-modal-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

body.has-contact-modal {
  overflow: hidden;
}

@media (max-width: 940px) {
  .contact-modal-layout {
    grid-template-columns: 1fr;
  }

  .contact-modal-aside {
    gap: 16px;
  }

  .contact-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-modal-overlay {
    padding: 14px;
  }

  .contact-us-trigger {
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
  }

  .contact-modal-panel,
  .contact-modal-aside {
    padding: 22px;
  }

  .contact-modal-header {
    gap: 12px;
  }

  .contact-modal-header h3 {
    font-size: 1.45rem;
  }

  .contact-modal-actions {
    align-items: stretch;
  }

  .contact-modal-submit,
  .contact-modal-actions .secondary-button {
    width: 100%;
  }
}
