.contact-shell {
  width: min(900px, 100%);
}

.contact-lead {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
}

.contact-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 32px;
}

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

.contact-field {
  margin-bottom: 18px;
}

.contact-field label {
  text-align: left;
  text-transform: none;
}

.contact-field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: #eaf7ff;
  border: 1px solid rgba(155, 227, 255, 0.28);
  border-radius: 10px;
  outline: 0;
  background: rgba(0, 5, 12, 0.66);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #637587;
}

.contact-field input:focus {
  border-color: rgba(155, 227, 255, 0.7);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(91, 214, 255, 0.06),
    0 0 22px rgba(0, 174, 255, 0.11);
  transform: translateY(-1px);
}

.message-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(155, 227, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 5, 12, 0.66);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.5);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.message-frame:focus-within {
  border-color: rgba(155, 227, 255, 0.7);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(91, 214, 255, 0.06),
    0 0 22px rgba(0, 174, 255, 0.11);
  transform: translateY(-1px);
}

.message-frame textarea {
  display: block;
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 16px 17px 16px 48px;
  color: #eaf7ff;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  caret-color: var(--accent);
}

.contact-card.is-sending .input-scan {
  opacity: 1;
  animation: inputScan 1.15s linear infinite;
}

.support-response {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(155, 227, 255, 0.18);
  border-radius: 9px;
  background: rgba(0, 8, 17, 0.66);
  color: #cceeff;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.support-response.success {
  border-color: rgba(81, 236, 174, 0.34);
  color: #9ff3ca;
  box-shadow: 0 0 22px rgba(81, 236, 174, 0.08);
}

.support-response.error {
  border-color: rgba(255, 64, 93, 0.35);
  color: #ffd1d9;
  box-shadow: 0 0 22px rgba(255, 64, 93, 0.08);
}

.contact-return {
  display: block;
  width: max-content;
  margin: 18px auto 0;
  color: #8ea2b3;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-return:hover,
.contact-return:focus-visible {
  color: var(--accent);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .contact-card {
    padding: 25px 18px;
  }

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

.email-icon {
  position: relative;
  width: 19px;
  height: 14px;
  border: 2px solid #05202d;
  border-radius: 3px;
}

.email-icon::before,
.email-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 10px;
  height: 2px;
  background: #05202d;
}

.email-icon::before {
  left: 0;
  transform: rotate(35deg);
  transform-origin: left center;
}

.email-icon::after {
  right: 0;
  transform: rotate(-35deg);
  transform-origin: right center;
}
