/* =============================================================
 * apply.css — TANIŞMA FORMU çok adımlı akış (TANIŞMA FORMU/*)
 * ct.css (.ct-input/.ct-field/.ct-select/.ct__ill) + pd.css (.in-cta-btn) yüklü.
 * ============================================================= */
.ap { padding-top: 60px; padding-bottom: 90px; }
.ap__inner { position: relative; }
.ap-step[hidden], .ap-done[hidden] { display: none; }

/* Kapat butonu (ÇIKIŞ YAP: 46×46 kutu, 2px border, 2px gölge, 24px ✕ ikon).
   right: .ap__inner (.in-container) kutusunun kendi kenarına değil, GERÇEK İÇERİK
   sütununun (827px, .ap-bubble/.ap-table ile aynı hiza) sağ kenarına oturur — aksi halde
   .in-container'ın geniş padding'i yüzünden buton içerikten kopup "dışarıda" kalıyordu. */
.ap__close { position: absolute; right: clamp(24px, calc((100vw - 827px) / 2), 228px); top: 0; width: 46px; height: 46px; background: #fff;
  border: 2px solid var(--in-border); box-shadow: var(--in-shadow-sm); display: grid; place-items: center;
  z-index: 3; padding: 0; cursor: pointer; }
.ap__close span { font-size: 26px; line-height: 24px; font-weight: 400; color: var(--in-heading); display: block; }
.ap__close:hover { background: var(--in-lime); }

/* Başlık */
.ap-badge, .ap-badge2 { display: inline-flex; align-items: center; }
.ap-badge { padding: 8px 8px; background: var(--in-lime); border-bottom: 3px solid var(--in-border);
  font-family: var(--in-head); font-weight: 700; font-size: 32px; line-height: 40px; letter-spacing: -0.32px; color: var(--in-heading); }
.ap-badge2 { padding: 6px 10px; background: var(--in-lime); border-bottom: 2px solid var(--in-border);
  font-family: var(--in-head); font-weight: 500; font-size: 32px; line-height: 40px; letter-spacing: -0.32px; color: var(--in-heading); }
.ap-title { margin: 6px 0 0; font-family: var(--in-head); font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -0.6px; color: var(--in-heading); }
.ap-sub { margin: 14px 0 0; max-width: 640px; font-family: var(--in-text); font-weight: 400; font-size: 16px; line-height: 28px; color: var(--in-body); }

/* Progress bar (7 kare 32px) */
.ap-prog { display: flex; gap: 0; margin-top: 36px; }
.ap-prog__sq { width: 32px; height: 32px; border: 1px solid #E3DDD2; background: var(--in-card-fill); display: block; }
.ap-prog__sq.is-done { background: #E8FA8F; border-color: #A8C230; }
.ap-prog__sq.is-current { background: var(--in-orange); border: 1px solid var(--in-border); box-shadow: var(--in-shadow-sm); position: relative; z-index: 2; }
.ap-prog__label { margin: 10px 0 0; font-family: var(--in-text); font-weight: 400; font-size: 14px; line-height: 22px; color: var(--in-body); }

/* Soru balonu — Union SVG (bubble + AŞAĞI kuyruk + 2px sert alt gölge tek şekilde).
   SVG arka planda; metin üstteki 55px banda hizalı. width sabit 827 (tasarım). */
.ap-bubble { position: relative; margin-top: 40px; margin-bottom: 28px; width: 827px; max-width: 100%; }
.ap-bubble__bg { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; z-index: 0; }
.ap-bubble__q { position: relative; z-index: 1; display: flex; align-items: center; height: 55px; padding: 0 28px;
  font-family: var(--in-head); font-weight: 500; font-size: 16px; line-height: 28px; letter-spacing: -0.08px; color: var(--in-heading); }
.ap-help { margin: 22px 0 0; font-family: var(--in-text); font-weight: 400; font-size: 14px; line-height: 22px; color: var(--in-muted); }

/* Seçenekler (Tekli/Çoklu Seçim) */
.ap-opts { margin-top: 16px; max-width: 827px; display: flex; flex-direction: column; gap: 6px; }
.ap-opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 24px;
  background: var(--in-card-fill); border: 1px solid #E3DDD2; cursor: pointer; text-align: left;
  font-family: var(--in-text); font-weight: 400; font-size: 14px; line-height: 22px; color: var(--in-body);
  transition: background .1s, box-shadow .1s; }
.ap-opt:hover { background: var(--in-card-accent); }
.ap-opt.is-sel { background: #F8FFDC; border: 1px solid var(--in-border); box-shadow: var(--in-shadow-sm); color: var(--in-heading); padding-left: 25px; }
.ap-opt.is-sel::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 8px; background: var(--in-orange); }
/* Çoklu seçim kutusu */
.ap-opt__box { width: 18px; height: 18px; flex: 0 0 auto; background: #fff; border: 1px solid var(--in-border); display: inline-block; }
.ap-opt.is-sel .ap-opt__box { background: var(--in-orange); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--in-orange); }

/* Skills tablosu — sütun (seviye) sayısı admin panelden dinamik/sınırsız eklenebilir;
   grid-template-columns bu yüzden SABİT DEĞİL, --skill-cols custom property'sine göre
   üretilir (bkz. apply.php'de style="--skill-cols: N"). 3'ten fazla seviyede taşma
   olmaması için .ap-table-wrap yatay kaydırma sağlar. */
.ap-table-wrap { margin-top: 16px; max-width: 827px; overflow-x: auto; }
.ap-table { min-width: 100%; width: max-content; border: 1px solid var(--in-border); }
.ap-table__head, .ap-table__row { display: grid; grid-template-columns: minmax(160px,1.4fr) repeat(var(--skill-cols, 3), minmax(110px,1fr)); align-items: center; }
.ap-table__head { height: 42px; background: var(--in-card-accent); border-bottom: 1px solid var(--in-border); }
.ap-table__row { height: 54px; background: var(--in-card-accent); border-bottom: 1px solid #E3DDD2; }
.ap-table__row.is-alt { background: var(--in-card-fill); }
.ap-table__row:last-child { border-bottom: 0; }
.ap-table__skill { padding-left: 17px; font-family: var(--in-head); font-weight: 500; font-size: 14px; line-height: 28px; letter-spacing: -0.07px; color: var(--in-heading); }
.ap-table__col { text-align: center; font-family: var(--in-head); font-weight: 500; font-size: 14px; line-height: 28px; letter-spacing: -0.07px; color: var(--in-heading); border-left: 1px solid #E3DDD2; height: 42px; display: flex; align-items: center; justify-content: center; }
.ap-table__cell { display: flex; align-items: center; justify-content: center; }
.ap-radio { width: 16px; height: 16px; background: #fff; border: 1px solid var(--in-border); cursor: pointer; }
.ap-radio.is-on { background: var(--in-orange); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--in-orange); }

/* Açık uçlu */
.ap-open { margin-top: 16px; max-width: 827px; }
.ap-open__area { width: 100%; height: 131px; }
.ap-open__meta { display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--in-text); font-weight: 500; font-size: 12px; line-height: 18px; color: var(--in-muted); }

/* Kişisel bilgiler (2 kolon) */
.ap-personal { margin-top: 26px; max-width: 872px; display: grid; grid-template-columns: 404px 404px; gap: 64px; }
.ap-personal__group { display: block; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #E3DDD2;
  font-family: var(--in-head); font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: -0.1px; color: var(--in-heading); }
.ap-status { display: flex; gap: 24px; align-items: center; height: 48px; }
.ap-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--in-text); font-weight: 400; font-size: 14px; line-height: 22px; color: var(--in-body); }
.ap-check input { position: absolute; opacity: 0; pointer-events: none; }
.ap-check__box { width: 20px; height: 20px; background: #fff; border: 1px solid var(--in-border); display: inline-block; }
.ap-check input:checked + .ap-check__box { background: var(--in-orange); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--in-orange); }

/* Navigasyon (Back sol · Continue sağ) */
.ap-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; max-width: 872px; }
.ap-back { background: none; border: 0; cursor: pointer; font-family: var(--in-text); font-weight: 400; font-size: 16px; line-height: 28px; color: var(--in-heading); }
.ap-back:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Continue — seçim yapılmadan PASİF (BUTON Disabled: #faf7ef zemin, #e3ddd2 border, gri metin, gölgesiz).
   NOT: pointer-events KASITLI OLARAK none DEĞİL — personal (Links & Files) adımında tıklama
   hâlâ yakalanır ki JS eksik/hatalı alanları kırmızı gösterip kullanıcıya NEDEN ilerleyemediğini
   belirtebilsin (bkz. internship.js data-continue click handler). Guard yine de JS'te var,
   adıma geçilmez — sadece görsel feedback için tıklama olayı serbest bırakıldı. */
.ap-continue.is-disabled { background: var(--in-card-fill); border-color: #E3DDD2; color: #978B75;
  box-shadow: none; cursor: not-allowed; }
.ap-continue.is-disabled:hover, .ap-continue.is-disabled:active { transform: none; box-shadow: none; background: var(--in-card-fill); }

/* =============================================================
 * BİTİŞ — We'll take it from here (Nice to meet you)
 * ============================================================= */
.ap-done { padding-top: 6px; }
/* Back to home — Space Grotesk Medium 16 (kalın/başlık fontu) */
.ap-done__back { display: inline-block; margin-bottom: 26px; font-family: var(--in-head); font-weight: 500; font-size: 16px; line-height: 28px; letter-spacing: -0.08px; color: var(--in-heading); }
.ap-done__back:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Timeline sağda; dikey olarak sol içerikle ORTALI hizalanır (tasarım görünümü) */
.ap-done__grid { display: grid; grid-template-columns: 1fr 397px; gap: 40px; align-items: center; }
.ap-done__title { margin: 0; font-family: var(--in-head); font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -0.8px; color: var(--in-heading); }
.ap-done__sub { margin: 16px 0 0; font-family: var(--in-text); font-weight: 400; font-size: 16px; line-height: 28px; color: var(--in-body); }
.ap-done .ct__ill { margin-top: 40px; }
/* Timeline (1365:3579): dikey noktalı desen (yıldızlı) + 3 kart (başlık barı #faf7ef + renkli gövde).
   Kartlar 207 genişlik, desenin soluna hizalı; kart-gövde renkleri: 01 koyu, 02 lime, 03 lime+koyu satır. */
/* 1365:3579 (397 geniş, 604 yüksek): desen left168 top-30 (dikey kesikli çizgi + üst/alt yıldız);
   kartlar MUTLAK: left95 w207, top 86/242/398 — böylece kesik çizgiler kartlar ARASINA denk gelir. */
.ap-done__steps { position: relative; width: 397px; max-width: 100%; height: 604px; }
.apd-pattern { position: absolute; left: 168px; top: -30px; width: 52px; height: 664px; display: block; z-index: 0; }
.apd-step { position: absolute; z-index: 1; left: 95px; width: 207px;
  border: 2px solid var(--in-border); box-shadow: var(--in-shadow-sm); overflow: hidden; }
.apd-step:nth-child(2) { top: 86px; }    /* 01 Review */
.apd-step:nth-child(3) { top: 242px; }   /* 02 Interview */
.apd-step:nth-child(4) { top: 398px; }   /* 03 Confirmation */
.apd-step--dark { background: #161614; }
.apd-step--lime { background: var(--in-lime); }
.apd-step__head { height: 41px; display: flex; align-items: center; gap: 6px; padding: 0 11px;
  background: var(--in-card-fill); border-bottom: 2px solid var(--in-border);
  font-family: var(--in-head); font-weight: 500; font-size: 16px; line-height: 28px; letter-spacing: -0.08px; color: var(--in-heading); }
.apd-step__desc { min-height: 47px; display: flex; align-items: center; padding: 8px 11px;
  font-family: var(--in-text); font-weight: 500; font-size: 12px; line-height: 18px; }
.apd-step--dark .apd-step__desc { color: #fff; }
.apd-step--lime .apd-step__desc { color: var(--in-heading); }

/* =============================================================
 * RESPONSIVE — 1280 altı (tek 1000px kırılımı)
 * ============================================================= */
/* Soru balonu — sabit SVG yalnız içerik ≥827 iken. Dar ekranda (≤900) SVG'yi bırak,
   AKIŞKAN CSS balon (border + sert alt-sağ gölge + CSS kuyruk) kullan; metin sarabilir. */
@media (max-width: 900px){
  .ap-bubble { width: 100%; margin-bottom: 34px;
    background: var(--in-card-accent); border: 2px solid var(--in-border); box-shadow: 2px 2px 0 0 var(--in-black); }
  .ap-bubble img.ap-bubble__bg { display: none; }   /* .in-body img{display:block}'u geç (specificity) */
  .ap-bubble__q { height: auto; min-height: 51px; padding: 12px 24px; white-space: normal; }
  /* CSS kuyruk (aşağı sivri, sol-alt) */
  .ap-bubble::before { content:""; position:absolute; left:29px; top:100%; width:0; height:0;
    border-left:16px solid transparent; border-right:0; border-top:22px solid var(--in-border); }
  .ap-bubble::after { content:""; position:absolute; left:31px; top:100%; width:0; height:0;
    border-left:12px solid transparent; border-right:0; border-top:18px solid var(--in-card-accent); }
}

@media (max-width: 1000px){
  .ap { padding-top: 40px; }
  .ap-title { font-size: 34px; line-height: 42px; }
  .ap-badge, .ap-badge2 { font-size: 26px; line-height: 34px; }
  /* Kişisel bilgiler tek kolon */
  .ap-personal { grid-template-columns: 1fr; gap: 28px; max-width: 480px; }
  .ap-nav { max-width: 100%; }
  /* Skills tablosu: dar ekranda sütunlar daralır (min 90px); 3'ten fazla seviyede
     container'ı aşarsa .ap-table-wrap yatay kaydırma sağlar (taşma/üst üste binme yok). */
  .ap-table__head, .ap-table__row { min-width: 0; grid-template-columns: minmax(120px,1.3fr) repeat(var(--skill-cols, 3), minmax(90px,1fr)); }
  .ap-table__head { height: auto; min-height: 42px; }
  .ap-table__col { font-size: 12px; letter-spacing: -0.05px; padding: 0 2px; height: auto; min-height: 42px; text-align: center; line-height: 15px; }
  .ap-table__row { height: auto; min-height: 54px; align-items: stretch; }
  .ap-table__skill { display: flex; align-items: center; padding: 8px 6px 8px 12px; font-size: 12px; line-height: 16px; white-space: normal; word-break: break-word; }
  .ap-table__cell { border-left: 1px solid #E3DDD2; }
  /* Bitiş ekranı: tek kolon, timeline akış içinde ORTALI */
  .ap-done__grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .ap-done__title { font-size: 34px; line-height: 42px; }
  .ap-done__left { max-width: 480px; }
  .ap-done__steps { width: 100%; max-width: 360px; height: auto; }
  /* Timeline dikey akış: kartlar tam genişlik, aralarında kesikli çizgi + uçlarda yıldız */
  img.apd-pattern { display: none; }   /* .in-body img{display:block}'u geç */
  .apd-step, .apd-step:nth-child(2), .apd-step:nth-child(3), .apd-step:nth-child(4) {
    position: relative; left: auto; top: auto; width: 100%; margin: 0 auto; }
  .apd-step + .apd-step { margin-top: 46px; }
  .ap-done__steps .apd-step:not(:last-child)::after { content:""; position:absolute; left:50%; top:100%;
    width:0; height:46px; border-left:2px dashed var(--in-border); }
}
@media (max-width: 560px){
  .ap__close { width: 40px; height: 40px; }
  .ap-badge, .ap-badge2 { font-size: 22px; line-height: 30px; }
  .ap-title { font-size: 28px; line-height: 36px; }
  .ap-status { flex-wrap: wrap; gap: 14px 20px; height: auto; }
}
