/* ==========================================================================
   CONTACT PAGE STYLES (SoC)
   Reuses main.css tokens/components (glass-card, form-*, btn, section-*).
   ========================================================================== */

.contact-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  position: relative;
}

.contact-shell {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

/* Floating theme toggle (mirrors the social page) */
.contact-actions-bar {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: 10;
}

/* Trim the shared section header's default bottom margin on this focused page */
.contact-shell .section-header {
  margin-bottom: var(--space-xl);
}

/* Thank-you state */
.contact-thankyou {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
}

.contact-thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-glow);
}

.contact-thankyou-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.contact-thankyou-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 380px;
}

/* Back link */
.contact-back {
  margin-top: var(--space-lg);
  text-align: center;
}

.contact-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-back-link:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .contact-actions-bar {
    top: var(--space-md);
    right: var(--space-md);
  }

  /* Keep the fixed-width reCAPTCHA widget within the card */
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}
