.contact-section {
  background: var(--cream);
  padding-block: clamp(4rem, 7vw, 6.5rem);
  overflow-x: hidden;
  overflow-x: clip;
}

.contact-section .eyebrow {
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-title {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 14ch;
}

.contact-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 32px;
}

.contact-social .footer-social {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-social .footer-social span::after {
  content: ":";
}

.contact-social .footer-social ul {
  gap: 16px;
}

.contact-social .footer-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) opacity(0.75);
  transition: opacity 0.2s ease;
}

.contact-social .footer-social li:is(:hover, :focus-within) img {
  opacity: 0;
}

/* Decorative yellow dot-grid accents behind the form card */
.contact-card-wrap {
  position: relative;
  z-index: 1;
}

.contact-card-wrap::before,
.contact-card-wrap::after {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  background-image: radial-gradient(var(--yellow) 1.75px, transparent 1.75px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: -1;
}

.contact-card-wrap::before {
  top: -28px;
  right: -28px;
}

.contact-card-wrap::after {
  bottom: -28px;
  left: -28px;
}

.contact-card {
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 20px 50px rgba(16, 22, 37, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9375rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(49, 141, 255, 0.15);
}

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

.contact-actions {
  margin-top: 4px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact-submit:hover:not(:disabled) {
  background: var(--yellow-hover);
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form .hiup-form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form .hiup-form-status.success {
  color: var(--teal);
}

.contact-form .hiup-form-status.error {
  color: #c92a2a;
}

@media (max-width: 767.98px) {
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-card-wrap::before {
    top: -18px;
    right: -12px;
  }

  .contact-card-wrap::after {
    bottom: -18px;
    left: -12px;
  }
}
