/* Öğrenci Tanıma Formu — telefon öncelikli. Renkler style.css'teki değişkenlerden gelir. */
body.tf { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.tf-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 640px; width: 100%; margin: 0 auto; }
.tf-top img { height: 32px; }
body.tf h1, body.tf h2 { max-width: none; }
.tf-link { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }

.tf-progress { position: sticky; top: 0; z-index: 5; height: 4px; background: var(--border); }
.tf-progress div { height: 100%; width: 0; background: var(--parent); border-radius: 0 2px 2px 0; transition: width 0.35s ease; }

.tf-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 12px 20px 32px; }
.tf-card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 24px 20px; }
.tf-card + .tf-card { margin-top: 14px; }

.tf-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--parent); text-transform: uppercase; margin: 0 0 10px; }
.tf h1 { font-size: 27px; line-height: 1.2; letter-spacing: -0.7px; margin: 0 0 10px; }
.tf h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.4px; margin: 0 0 6px; }
.tf p { margin: 0 0 14px; }
.tf .muted { color: var(--muted); font-size: 14px; }
.tf .small { font-size: 13px; line-height: 1.5; }

.tf-hero { background: var(--hero); border-radius: 22px; padding: 26px 22px; margin-bottom: 14px; }
.tf-hero p:last-child { margin-bottom: 0; }

/* Girdi */
.tf label.q { display: block; font-weight: 600; color: var(--navy); font-size: 15px; margin: 0 0 8px; }
.tf .field { padding: 18px 0; border-top: 1px solid var(--border); }
.tf .field:first-of-type { border-top: 0; padding-top: 6px; }
.tf .hint { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.tf .err { font-size: 13px; color: var(--red); margin: 8px 0 0; font-weight: 600; }
.tf input[type=text], .tf input[type=tel], .tf input[type=password], .tf input[type=number], .tf input[type=date], .tf input[type=time], .tf textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 14px; outline: none; -webkit-appearance: none; appearance: none;
}
.tf textarea { min-height: 96px; resize: vertical; }
.tf input:focus, .tf textarea:focus { border-color: var(--teacher); background: var(--white); }
.tf input[readonly] { color: var(--muted); background: #eef3f9; }
.tf .unit { display: flex; align-items: center; gap: 10px; }
.tf .unit input { max-width: 150px; }
.tf .unit span { color: var(--muted); font-size: 14px; }

.tf .phone { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px; padding: 0 14px; }
.tf .phone:focus-within { border-color: var(--teacher); background: var(--white); }
.tf .phone b { color: var(--muted); font-weight: 600; }
.tf .phone input { border: 0; background: none; padding: 14px 0; letter-spacing: 0.5px; }
.tf .code input { text-align: center; font-size: 26px; letter-spacing: 10px; font-weight: 700; padding: 14px 8px; }

/* Seçenekler */
.tf .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tf .opt { position: relative; }
.tf .opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tf .opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border-radius: 22px; border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-size: 14.5px; line-height: 1.3; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.tf .opt input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }
.tf .opt input:focus-visible + span { outline: 2px solid var(--teacher); outline-offset: 2px; }
.tf .other { margin-top: 10px; }

/* Düğmeler */
.tf .btn-main, .tf .btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; border: 0; text-decoration: none; }
.tf .btn-main { background: var(--navy); color: var(--white); }
.tf .btn-main:disabled { opacity: 0.45; cursor: default; }
.tf .btn-ghost { background: none; color: var(--navy); border: 1.5px solid var(--border); }
.tf .actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }
.tf .actions.single { grid-template-columns: 1fr; }
.tf .alert { background: #fdecef; color: #9a1034; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.tf .note { background: var(--hero); color: var(--navy); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin: 0 0 14px; }
.tf .pw-card h2 { font-size: 18px; }
.tf .pw-card .fields { display: grid; gap: 10px; margin-top: 12px; }
.tf .btn-ghost.slim, .tf .btn-main.slim { min-height: 48px; font-size: 15px; }
.tf .saved { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; min-height: 18px; }

/* Çocuk / profil kartları */
.tf .pick { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--white); border: 1.5px solid var(--border); border-radius: 18px; padding: 16px; font: inherit; cursor: pointer; margin-top: 10px; }
.tf .pick:hover { border-color: var(--navy); }
.tf .pick .av { flex: none; width: 46px; height: 46px; border-radius: 23px; background: var(--hero); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tf .pick b { display: block; color: var(--navy); font-size: 16px; }
.tf .pick small { color: var(--muted); font-size: 13px; }
.tf .tag { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 12px; background: var(--bg); color: var(--muted); }
.tf .tag.ok { background: #e3f6ec; color: #0b7a43; }
.tf .tag.mid { background: #fff3da; color: #8a5a00; }

/* Anket listesi */
.tf .pick.survey { align-items: flex-start; }
.tf .pick.survey.next { border-color: var(--navy); }
.tf .pick .no { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--hero); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tf .pick small.desc { display: block; margin-top: 3px; line-height: 1.45; }
.tf .tf-card.info p:last-child { margin-bottom: 0; }

/* Soru işaretleri */
.tf .opt-tag { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.tf .opt.unknown span { border-style: dashed; color: var(--muted); }
.tf .opt input:disabled + span { opacity: 0.45; }

/* İzinler */
.tf .consent { border: 1.5px solid var(--border); border-radius: 18px; padding: 16px; margin-top: 10px; background: var(--white); }
.tf .consent.on { border-color: var(--navy); }
.tf .consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.tf .consent input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--navy); }
.tf .consent b { color: var(--navy); font-size: 15px; }
.tf .consent .req { color: var(--red); font-size: 12px; font-weight: 700; margin-left: 6px; }
.tf .consent details { margin: 10px 0 0 36px; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.tf .consent summary { color: var(--teacher); font-weight: 600; cursor: pointer; }
.tf .consent details p { margin: 8px 0 0; }
.tf .consent.off { border-color: var(--muted); }
.tf .consent .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tf .consent .opt-details { margin-left: 0; }
.tf .consent .gives { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--navy); }
.tf .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tf .choice { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--white); font: inherit; font-size: 14.5px; font-weight: 700; color: var(--navy); cursor: pointer; }
.tf .choice.yes[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tf .choice.no[aria-pressed=true] { background: #eef3f9; border-color: var(--muted); color: var(--text); }
.tf .choice:focus-visible { outline: 2px solid var(--teacher); outline-offset: 2px; }

/* Bölüm başlığı */
.tf .step { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; margin: 0 0 6px; }
.tf .who { display: inline-flex; align-items: center; gap: 8px; background: var(--hero); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 14px; margin-bottom: 14px; }

/* Bitiş */
.tf .done { text-align: center; padding: 36px 22px; }
.tf .done .check { width: 72px; height: 72px; border-radius: 36px; background: #e3f6ec; color: #0b7a43; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.tf .spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; margin: 48px auto; animation: tfspin 0.8s linear infinite; }
@keyframes tfspin { to { transform: rotate(360deg); } }

.tf-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 8px 20px 28px; font-size: 13px; }
.tf-foot a { color: var(--muted); text-decoration: none; }

@media (min-width: 700px) {
  .tf-main { padding-top: 28px; }
  .tf-card { padding: 32px; }
  .tf-hero { padding: 34px 32px; }
}
