/**
 * Crescita Studio — Contact page.
 *
 * Built on tokens.css/components.css. Only the form controls and status
 * region are page-specific; everything else (hero, section, grid, buttons)
 * reuses the shared editorial components already defined there.
 */

/* Hero centred 2026-09-22 (founder direction, same as the Risorse hub):
   the shared .crescita-hero is left-aligned by default, scoped centring
   here via the crescita-page-contact body class (crescita_body_class()) so
   diagnosi/prenota are untouched. The form grid below is left as-is —
   centring form field labels/inputs is not what was asked and would hurt
   usability. */
.crescita-page-contact .crescita-hero {
  text-align: center;
}

.crescita-page-contact .crescita-hero__title,
.crescita-page-contact .crescita-hero__lede {
  margin-inline: auto;
}

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

.crescita-contact-field {
  display: grid;
  gap: var(--space-2xs);
}

.crescita-contact-field label {
  font-size: var(--text-small);
  font-weight: var(--weight-heading);
  color: var(--color-heading);
}

.crescita-contact-optional {
  font-weight: var(--weight-body);
  color: var(--color-text-secondary);
}

.crescita-contact-field input[type="text"],
.crescita-contact-field input[type="email"],
.crescita-contact-field textarea {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  color: var(--color-body);
  background-color: var(--crescita-sand);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  width: 100%;
}

.crescita-contact-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.crescita-contact-field input[type="text"]:focus,
.crescita-contact-field input[type="email"]:focus,
.crescita-contact-field textarea:focus {
  border-color: var(--crescita-ocean);
}

.crescita-contact-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-small);
  font-weight: var(--weight-body);
  color: var(--color-text-secondary);
}

.crescita-contact-field--checkbox input[type="checkbox"] {
  margin-top: 0.2em;
  flex-shrink: 0;
}

/* Honeypot — hidden from sighted and keyboard users; left in the DOM (not
   display:none) so simple bots that skip hidden fields still fill it in. */
.crescita-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.crescita-contact-privacy {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.crescita-contact-status {
  margin: 0;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
}

.crescita-contact-status[data-state="success"] {
  background-color: var(--crescita-stone);
  color: var(--color-heading);
}

.crescita-contact-status[data-state="error"] {
  background-color: var(--crescita-sand);
  border: var(--border-hairline);
  color: var(--color-heading);
}

.crescita-contact-info {
  padding-top: var(--space-lg);
  border-top: var(--border-hairline);
}

@media (min-width: 768px) {
  .crescita-contact-info {
    padding-top: 0;
    border-top: 0;
    padding-left: var(--space-xl);
    border-left: var(--border-hairline);
  }
}

.crescita-contact-info__title {
  font-size: var(--text-h3);
  margin: 0 0 var(--space-md);
}

.crescita-contact-info address {
  font-style: normal;
  color: var(--color-text-secondary);
  margin: var(--space-sm) 0 var(--space-lg);
}
