.contact-main {
  min-height: calc(100vh - var(--header-h));
  background:
    radial-gradient(circle at 12% 8%, rgba(93, 195, 186, .18), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(248, 199, 148, .18), transparent 28rem),
    var(--bg);
}

.contact-section {
  padding: clamp(48px, 6vw, 76px) 0 clamp(64px, 8vw, 96px);
}

.contact-shell {
  max-width: 680px;
  display: grid;
  gap: clamp(32px, 5vw, 44px);
}

.contact-intro {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

.contact-intro .t-body-lg {
  max-width: 620px;
  color: var(--text-body);
}

.contact-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--primary-soft-border);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-xl);
}

.contact-card-head {
  margin-bottom: var(--space-6);
}

.contact-form {
  display: grid;
  gap: var(--space-5);
}

.contact-message {
  min-height: 152px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.55;
  resize: vertical;
}

.contact-error {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--error-border);
  border-radius: var(--r-md);
  background: var(--error-bg);
  color: var(--error-text);
  font: 600 .8125rem/1.4 var(--font-sans);
}

.contact-error:empty,
.contact-status:empty {
  display: none;
}

.contact-form .input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 72, 59, .16);
}

.contact-security {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid rgba(11, 111, 103, .25);
  border-radius: var(--r-xl);
  background:
    linear-gradient(145deg, rgba(233, 247, 245, .92), rgba(255, 255, 255, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.contact-security-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
}

.contact-security-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-soft-border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.contact-security-icon svg {
  width: 22px;
  height: 22px;
}

.contact-security h3 {
  margin: 0 0 3px;
  color: var(--text);
  font: 700 1rem/1.35 var(--font-display);
}

.contact-security-head p {
  margin: 0;
  color: var(--text-muted);
  font: var(--helper);
}

.contact-turnstile-frame {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.contact-turnstile {
  min-height: 65px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-turnstile > div,
.contact-turnstile iframe {
  max-width: 100%;
}

.contact-turnstile-loading {
  color: var(--text-muted);
  font: var(--helper);
}

.contact-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--error-border);
  border-radius: var(--r-md);
  background: var(--error-bg);
  color: var(--error-text);
  font: 600 .875rem/1.45 var(--font-sans);
}

.contact-success {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: clamp(36px, 7vw, 56px) 0;
  text-align: center;
}

.contact-success[hidden] {
  display: none;
}

.contact-success-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--success-border);
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-text);
}

.contact-success-icon svg {
  width: 28px;
  height: 28px;
}

.contact-success p {
  margin: 0;
  color: var(--text-body);
  font: var(--body);
}

@media (max-width: 640px) {
  .contact-section {
    padding-top: 40px;
  }

  .contact-shell {
    width: min(100%, calc(100% - 2 * var(--space-4)));
  }

  .contact-card {
    padding: 22px 18px;
    border-radius: var(--r-xl);
  }

  .contact-security {
    padding: var(--space-4);
  }

  .contact-turnstile-frame {
    padding: 8px;
  }
}
