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

.contact-intro {
  padding-bottom: 28px;
}

.contact-card {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--yellow);
  color: #11151a;
  box-shadow:
    0 10px 22px rgba(244, 207, 44, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon-spark {
  stroke-width: 2.1;
  transform-origin: 18.5px 4.5px;
  animation: contactSpark 2.4s ease-in-out infinite;
}

@keyframes contactSpark {
  0%, 65%, 100% { opacity: 0.55; transform: scale(0.82) rotate(0); }
  78% { opacity: 1; transform: scale(1.12) rotate(8deg); }
}

.contact-card h2 {
  margin: 0 0 5px;
  font-size: clamp(20px, 4vw, 26px);
}

.contact-card-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

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

#contact-form label:not(.contact-honeypot) {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

#contact-form label > span {
  font-size: 13px;
  font-weight: 800;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--panel-light);
  color: var(--text);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

#contact-form textarea {
  min-height: 160px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244, 207, 44, 0.14);
}

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

.contact-submit-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-status.is-success { color: var(--green); }
.contact-status.is-error { color: #ff6868; }

.contact-submit {
  min-height: 48px;
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: var(--yellow);
  color: #11151a;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.contact-submit:hover { transform: translateY(-1px); }
.contact-submit:disabled { cursor: wait; opacity: 0.65; transform: none; }

@media (max-width: 640px) {
  .contact-main { padding-bottom: 44px; }
  .contact-intro { padding-top: 42px; }
  .contact-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { border-radius: 19px; }
  .contact-card-heading { align-items: flex-start; }
  .contact-submit-row { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
}

@media (orientation: landscape) and (max-height: 500px) and (min-width: 500px) {
  .contact-intro { padding-top: 22px; padding-bottom: 16px; }
}
