/* New feature: the legacy static site had no contact form (only static info cards), but the
   spec requires POST /api/contact to be reachable from the public site. No prior CSS exists for
   this, so these rules are new — built from the same tokens (style.css --color-*) and reuse the
   existing .button/.button--primary classes for the submit action to stay visually consistent. */

.contact-form {
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: clamp(50px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-form__heading {
  margin-bottom: 30px;
}

.contact-form__heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-form__heading p {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.contact-form__field {
  display: grid;
  gap: 8px;
}

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

.contact-form__field label {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-form__required {
  color: var(--color-accent);
}

.contact-form__field input,
.contact-form__field textarea {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background-color: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  padding: 14px 16px;
  transition: border-color 180ms ease;
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__field-error {
  color: #e2777c;
  font-size: 0.74rem;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.contact-form__actions button {
  border: none;
  cursor: pointer;
}

.contact-form__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.contact-form__status {
  font-size: 0.82rem;
}

.contact-form__status--success {
  color: #7fd28a;
}

.contact-form__status--error {
  color: #e2777c;
}

@media (max-width: 720px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

/* KVKK consent (Razor port). */
.contact-form__consent {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.contact-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
}

.contact-form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #a7262c;
}

.contact-form__consent a {
  color: inherit;
  text-decoration: underline;
}
