.iv-contact {
  --iv-ink: #151515;
  --iv-line: #a3a3a3;
  --iv-paper: #fff;
  box-sizing: border-box;
  width: 100%;
  margin: 32px 0 48px;
  color: var(--iv-ink);
  font-size: 16px;
  line-height: 1.6;
}

.iv-contact .iv-contact-title {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.iv-contact .iv-contact-title::before,
.iv-contact .iv-contact-title::after {
  content: none;
}

.iv-contact .iv-contact-form {
  margin: 0;
}

.iv-contact .iv-contact-field {
  min-inline-size: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.iv-contact .iv-contact-field label,
.iv-contact .iv-contact-field legend {
  display: block;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.iv-contact .iv-contact-field legend {
  margin-bottom: 8px;
}

.iv-contact .iv-contact-badge {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 0 6px;
  border: 1px solid #c4c4c4;
  border-radius: 3px;
  background: var(--iv-paper);
  color: #414141;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 1px;
}

.iv-contact .iv-contact-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 7px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--iv-line);
  border-radius: 4px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  box-shadow: none;
  font: inherit;
  font-size: 16px;
}

.iv-contact .iv-contact-input::placeholder {
  color: #6d6d6d;
  opacity: 1;
}

.iv-contact textarea.iv-contact-input {
  min-height: 120px;
  resize: vertical;
}

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

.iv-contact .iv-contact-details {
  gap: 0 12px;
}

.iv-contact .iv-contact-wide {
  grid-column: 1 / -1;
}

.iv-contact .iv-contact-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.iv-contact .iv-contact-field .iv-contact-choice {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--iv-line);
  border-radius: 4px;
  background: var(--iv-paper);
  font-weight: 500;
  cursor: pointer;
}

.iv-contact .iv-contact-choice:hover,
.iv-contact .iv-contact-choice:has(:checked) {
  border-color: var(--iv-ink);
  background: #ededed;
}

.iv-contact .iv-contact-choice:has(:disabled) {
  opacity: .55;
  cursor: default;
}

.iv-contact .iv-contact-choice input {
  appearance: auto;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--iv-ink);
}

.iv-contact .iv-contact-submit {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 10px 40px;
  border: 1px solid var(--iv-ink);
  border-radius: 4px;
  background: var(--iv-ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.iv-contact .iv-contact-submit::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 20px;
  width: 7px;
  height: 7px;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.iv-contact .iv-contact-submit:hover:not(:disabled) {
  background: #333;
}

.iv-contact .iv-contact-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.iv-contact .iv-contact-status {
  margin-bottom: 12px;
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--iv-ink);
  font-size: 14px;
  font-weight: 650;
}

.iv-contact :focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.iv-contact [hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .iv-contact {
    margin: 24px 0 32px;
  }

  .iv-contact .iv-contact-details {
    grid-template-columns: minmax(0, 1fr);
  }

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