/* Arka plan ve genel yapı */
body {
  background: #f4f5f7;
}

/* İletişim sayfası arka planı */
body.contact-page {
  background: #ffffff !important;
}

.page-main.page-main--contact {
  max-width: 700px;
  margin: 120px auto 3rem auto;
  /* header sabit olduğu için üstten boşluk */
  padding: 0 1.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #222;
  background: #ffffff;
}

/* Başlık */
.contact-section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-section .contact-intro {
  text-align: center;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Form kutusu */
.contact-form-wrapper {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.8rem 1.5rem 1.6rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* Form alanları */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  font: inherit;
  border-radius: 0.5rem;
  border: 1px solid #d4d4d4;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
  background: #fff;
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background-color: #f9fbff;
}

/* Zorunlu alan yıldızı */
.required {
  color: #d00000;
}

/* Hata gösterimi */
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #b91c1c;
}

.field-error {
  font-size: 0.8rem;
  color: #b91c1c;
}

/* Form genel mesaj alanı */
.form-message {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.form-message--error {
  color: #b91c1c;
}

.form-message--success {
  color: #15803d;
}

/* Buton */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.15s ease;
}

.btn-primary {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

/* Responsive */
@media (max-width: 600px) {
  .page-main.page-main--contact {
    margin-top: 100px;
  }

  .contact-form-wrapper {
    padding: 1.4rem 1.1rem 1.4rem;
  }

  .btn {
    width: 100%;
  }
}