/* =======================================================
   İLETİŞİM FORMU - CYBERPUNK / IDE TEMASI (FINAL V4)
   ======================================================= */

/* --- EVRENSEL SIFIRLAMA (SCROLL SORUNUNU ÇÖZEN KISIM) --- */
/* Bu kısım, paddinglerin genişliğe dahil edilmesini sağlar */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #0b0f1a;
  --form-bg: rgba(30, 41, 59, 0.4);
  --accent: #2dd4bf; /* Utku Turkuazı */
  --accent-glow: rgba(45, 212, 191, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  --text-muted: #94a3b8;
  --text-white: #e2e8f0;

  --font-mono: "Ubuntu Mono", monospace;
}

/* --- ANA KAPSAYICI (CONTAINER) --- */
.iletisim-form-container {
  width: 100%;
  max-width: 100%; /* Genişliğin ekranı aşmasını engeller */
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  overflow-x: hidden; /* Yatay taşmayı kesin olarak gizler */
}

/* --- BAŞLIK ALANI (HEADER) --- */
.form-header {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%; /* Hizalama garantisi */
}

.form-header h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin: 0; /* Varsayılan marginleri sıfırla */
}

/* Başlık Altına Neon Çizgi */
.form-header h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  border-radius: 2px;
}

/* Terminal İmleci Efekti */
.form-header h1::before {
  content: ">_ ";
  color: var(--accent);
  margin-right: 10px;
  opacity: 0.8;
}

/* --- FORM WRAPPER (Sarmalayıcı) --- */
.form-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 10px; /* Kenarlardan hafif güvenlik boşluğu */
}

/* --- FORM KUTUSU (ANA TASARIM) --- */
.iletisimformu {
  width: 100%;
  max-width: 600px; /* Formun maksimum genişliği */

  padding: 3rem;
  background: var(--form-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden; /* Taşmaları gizle */
}

/* Üst Tarafa İnce Neon Çizgi */
.iletisimformu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 15px var(--accent);
}

/* --- ETİKETLER (LABELS) --- */
.iletisimformu label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

/* Etiket Başına Nokta */
.iletisimformu label::before {
  content: "• ";
  color: var(--accent);
  margin-right: 5px;
}

/* --- INPUT VE TEXTAREA --- */
.iletisimformu input,
.iletisimformu textarea {
  width: 100%; /* Container içinde tam genişlik */
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 15px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.iletisimformu input::placeholder,
.iletisimformu textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
  font-style: italic;
}

/* Focus (Odaklanma) Efekti */
.iletisimformu input:focus,
.iletisimformu textarea:focus {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* Textarea Ayarları */
.iletisimformu textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Scrollbar */
.iletisimformu textarea::-webkit-scrollbar {
  width: 8px;
}
.iletisimformu textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.iletisimformu textarea::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* --- GÖNDER BUTONU --- */
.send-btn {
  margin-top: 0.5rem;
  padding: 14px 20px;
  background-color: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.send-btn::after {
  content: "\f1d8"; /* FontAwesome Icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.send-btn:hover {
  background-color: #fff;
  box-shadow: 0 0 25px var(--accent);
  transform: translateY(-3px);
}

.send-btn:hover::after {
  transform: translateX(5px) rotate(-10deg);
  color: var(--accent);
}

.send-btn:active {
  transform: translateY(-1px);
}

/* =======================================================
   MEDYA SORGULARI (RESPONSIVE)
   ======================================================= */

/* Tablet (1024px altı) */
@media (max-width: 1024px) {
  .iletisim-form-container {
    padding: 3rem 1.5rem;
  }
}

/* Mobil (768px altı) */
@media (max-width: 768px) {
  .iletisimformu {
    padding: 2rem;
    width: 95%; /* Mobilde hafif kenar boşluğu bırak */
    max-width: 100%;
  }

  .form-header h1 {
    font-size: 1.6rem;
  }

  .iletisimformu label {
    font-size: 0.9rem;
  }

  .send-btn {
    width: 100%;
    font-size: 1rem;
  }
}

/* Küçük Mobil (480px altı) */
@media (max-width: 480px) {
  .iletisim-form-container {
    padding: 2rem 0.5rem; /* Kenar boşluklarını iyice azalt */
  }

  .iletisimformu {
    padding: 1.5rem 1rem;
    width: 100%;
    border-radius: 12px;
    border-left: none; /* Mobilde sınırları yumuşat */
    border-right: none;
  }

  .form-header h1 {
    font-size: 1.4rem;
  }

  .iletisimformu input,
  .iletisimformu textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}
