/* Xirvy Contact Page */

.contact-hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(180deg, var(--volt-wash) 0%, #fff 100%);
}

.contact-hero .section-header {
  margin-bottom: 0;
  text-align: left;
  max-width: 560px;
}

.contact-hero h1 {
  margin-bottom: 0.85rem;
}

.contact-section {
  padding: 0 0 5rem;
}

.contact-form-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrap h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.contact-form-wrap > p {
  color: var(--muted);
  font-size: 0.975rem;
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
}

.form-row {
  display: grid;
  gap: 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
}

.form-field .optional {
  font-weight: 500;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8A97AB;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--border-strong);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--volt);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.cf-turnstile {
  margin: 0.15rem 0 0.25rem;
  min-height: 65px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 1rem 1.25rem;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.form-status.is-success {
  color: var(--volt-dark);
}

.form-status.is-error {
  color: #B42318;
}

.form-note {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* Turnstile needs JS to mint a token, so submitting would always fail */
html:not(.js) .contact-form .cf-turnstile,
html:not(.js) .contact-form button[type="submit"] {
  display: none;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .contact-hero {
    padding: 5rem 0 3.5rem;
  }

  .contact-form-wrap {
    padding: 2.25rem;
  }

  .contact-form .btn {
    width: auto;
    align-self: flex-start;
  }

  .form-note,
  .form-status {
    text-align: left;
  }
}
