/* GENEL YAPI
   ------------------------------------------------------------------ */
/* İş başvuru sayfası — arka plan */
body {
  background: #f4f5f7 !important;
}
.page-main.page-main--job-application {
  max-width: 1000px;
  margin: 2rem auto 3rem auto;
  padding: 0 1.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #3a3a3a;
}
/* Başlık ve giriş kısmı
   ------------------------------------------------------------------ */

.job-intro h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-main--job-application {
  margin-top: 120px;
}
.job-intro > p {
  margin-bottom: 1.5rem;
  color: #555;
}

.job-positions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.job-position {
  border: 1px solid #111111;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  background: #fafafa;
}

.job-position h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.job-position ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.job-position li {
  font-size: 0.93rem;
  margin-bottom: 0.25rem;
}

/* FORM BÖLÜMÜ
   ------------------------------------------------------------------ */

.job-form-section {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.job-form-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.job-form-section p small {
  color: #777;
}

.required {
  color: #d00000;
}

/* Form genel
   ------------------------------------------------------------------ */

.job-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  border: 1px solid #ececec;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem 1.1rem;
  background: #fcfcfc;
}

.form-group legend {
  padding: 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
}

/* Satır yapısı (iki kolon, tek kolon)
   ------------------------------------------------------------------ */

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-row--two-cols .form-field {
  flex: 1 1 calc(50% - 0.5rem);
}

/* Alanlar
   ------------------------------------------------------------------ */

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

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

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="file"],
.form-field select,
.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: 80px;
}

.form-field small {
  font-size: 0.78rem;
  color: #777;
}

.form-field input:focus,
.form-field select: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;
}

/* Radio / checkbox alanları
   ------------------------------------------------------------------ */

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.2rem;
}

.form-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-field--checkbox {
  display: flex;
  align-items: center;
}

.form-field--checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Gönderme alanı
   ------------------------------------------------------------------ */

.form-group--submit {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Buton
   ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  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: #2563eb;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

/* Hata / başarı mesajları için (JS’de kullanırız)
   ------------------------------------------------------------------ */

.form-message {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

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

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

/* Responsive
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .page-main.page-main--job-application {
    margin-top: 1.5rem;
  }

  .job-positions {
    grid-template-columns: 1fr;
  }

  .form-row--two-cols .form-field {
    flex: 1 1 100%;
  }

    .form-row--two-cols .form-field {
    flex: 1 1 100%;
  }

  .job-intro h1 {
    font-size: 1.6rem;
  }

  .job-form-section {
    padding: 1.25rem 0.9rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}

/* Header fixed olduğu için sayfa içeriğini aşağı kaydır */
body.is-basvuru-page .page-main--job-application {
  margin-top: 100px !important;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #b91c1c;
}

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

/* ✅ Sadece MOBİLDE taşmayı engelle */
@media (max-width: 768px) {

  .page-main.page-main--job-application,
  .job-form-section,
  .form-group,
  .form-row,
  .form-field {
    max-width: 100%;
    min-width: 0;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
    max-width: 100%;
  }

  /* file input mobilde taşma yapar */
  .form-field input[type="file"] {
    width: 100%;
    max-width: 100%;
  }

  /* son çare: 1-2px taşma */
  html, body {
    overflow-x: hidden;
  }
}
@media (max-width: 768px){
  .ti-nav{ display:none; }
  .ti-nav.open{ display:block; }
}

@media (max-width: 768px){

  /* hamburger görünsün */
  .ti-nav-toggle{ display:inline-flex; }

  /* menü kapalı */
  .ti-nav{
    display:none;
    position: fixed;
    left: 0;
    right: 0;

    /* header yüksekliğin 80px ise */
    top: 80px;

    background: #0b1022;           /* koyu panel */
    z-index: 9999;                 /* her şeyin üstüne */
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,.15);

    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  /* JS open ekleyince aç */
  .ti-nav.open{ display:block; }

  /* dikey liste */
  .ti-nav ul{
    flex-direction: column;
    gap: 10px;
  }

  .ti-nav a{
    display:block;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
  }

  /* dropdown mobilde akışta */
  .ti-dropdown{
    position: static;
    display:none;
    opacity: 1;
    pointer-events:auto;
    transform:none;
    margin-top: 6px;
    padding: 6px 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
  }

  .ti-has-dropdown.is-open > .ti-dropdown{
    display:block;
  }
}