/* Başvuru akışı (basvuru.html). styles.css'ten sonra yüklenir; yalnızca .fl-body altında geçerlidir.
   Açık ekranlar krem zemin, "an" ekranları (karşılama, bilgi, tamam) lacivert zemin. */

.fl-body {
  background: #f5f0e8;
  overflow-x: hidden;
}

.fl-body::before {
  display: none;
}

.fl {
  --bg: #f5f0e8;
  --txt: #0a1628;
  --txt2: #33415a;
  --txt3: #5d6576;
  --em: #7d5f17;
  --card: #fffdf8;
  --cardb: #ddd3bf;
  --cardh: #c9a84c;
  --sel: #0a1628;
  --selt: #f5f0e8;
  --selc: #c9a84c;
  --pf: #0a1628;
  --pt: #e2d9c6;
  --cta: #c9a84c;
  --ctah: #d8b75c;
  --ctat: #0a1628;
  --err: #a12a1f;
  --warnbg: #fbefd2;
  --okbg: #e3f0e6;
  --okt: #1f5a33;
  --input: #ffffff;

  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font-family: "DM Sans", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fl[data-theme="dark"] {
  --bg: #0a1628;
  --txt: #f5f0e8;
  --txt2: rgba(245, 240, 232, 0.8);
  --txt3: rgba(245, 240, 232, 0.6);
  --em: #e2c47a;
  --card: rgba(255, 255, 255, 0.05);
  --cardb: rgba(201, 168, 76, 0.3);
  --pf: #c9a84c;
  --pt: rgba(245, 240, 232, 0.16);
}

.fl-top,
.fl-main,
.fl-cta {
  width: 100%;
  max-width: 560px;
  padding-left: 20px;
  padding-right: 20px;
}

/* ─── Üst çubuk ─── */
.fl-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding-top: 14px;
}

.fl-back {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--cardb);
  background: var(--card);
  color: var(--txt);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-back[hidden] {
  display: flex;
  visibility: hidden;
}

.fl-back:focus-visible,
.fl-btn:focus-visible,
.fl-opt:focus-visible,
.fl-chip:focus-visible,
.fl-link:focus-visible,
.fl-file-box:focus-within {
  outline: 2px solid var(--cardh);
  outline-offset: 2px;
}

.fl-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--pt);
  overflow: hidden;
}

.fl-progress[hidden] {
  display: block;
  visibility: hidden;
}

.fl-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--pf);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.fl-count {
  flex: none;
  min-width: 36px;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--txt3);
  font-variant-numeric: tabular-nums;
}

/* ─── İçerik ─── */
.fl-main {
  flex: 1;
  padding-top: 12px;
  padding-bottom: 24px;
}

.fl-in-r {
  animation: flInR 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.fl-in-l {
  animation: flInL 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes flInR {
  from { transform: translateX(24px); opacity: 0.3; }
  to { transform: none; opacity: 1; }
}

@keyframes flInL {
  from { transform: translateX(-24px); opacity: 0.3; }
  to { transform: none; opacity: 1; }
}

.fl-head {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
  outline: none;
}

.fl-head em {
  font-style: italic;
  color: var(--em);
}

.fl-head--xl {
  font-size: clamp(36px, 10vw, 52px);
  line-height: 1.05;
}

.fl-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--txt2);
  margin: 0 0 22px;
}

.fl-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin: 0 0 10px;
}

/* ─── Karşılama ─── */
.fl-welcome {
  padding-top: 4vh;
}

.fl-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}

.fl-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fl-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--txt2);
}

.fl-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #c9a84c;
}

.fl-resume {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--cardb);
  border-left: 3px solid #c9a84c;
  background: var(--card);
  border-radius: 12px;
  font-size: 14px;
  color: var(--txt2);
}

.fl-resume strong {
  color: var(--txt);
  font-size: 15px;
}

.fl-resume-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* ─── Seçenekler ─── */
.fl-options {
  display: grid;
  gap: 10px;
}

/* Çoğu telefon (360–393px) iki sütuna sığar; tek sütunda 14 seçenek ekranın 2 katı tutuyordu. */
@media (min-width: 340px) {
  .fl-options--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 340px) and (max-width: 419px) {
  .fl-options--grid .fl-opt {
    gap: 8px;
    padding: 12px;
    font-size: 14px;
  }
}

.fl-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--cardb);
  background: var(--card);
  color: var(--txt);
  font: 500 15px/1.35 "DM Sans", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.fl-opt:hover {
  border-color: var(--cardh);
}

.fl-opt:active {
  transform: scale(0.99);
}

.fl-opt[aria-pressed="true"] {
  background: var(--sel);
  color: var(--selt);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.18);
}

.fl-opt--muted {
  font-weight: 400;
  color: var(--txt3);
  border-style: dashed;
}

.fl-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--cardb);
  position: relative;
}

.fl-opt[aria-pressed="true"] .fl-check {
  background: var(--selc);
  border-color: var(--selc);
}

.fl-opt[aria-pressed="true"] .fl-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--sel);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.fl-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--cardb);
  background: var(--card);
  color: var(--txt);
  font: 500 14px/1.3 "DM Sans", sans-serif;
  cursor: pointer;
  text-align: left;
}

.fl-chip[aria-pressed="true"] {
  background: var(--sel);
  color: var(--selt);
  border-color: transparent;
}

.fl-chip[aria-pressed="true"]::before {
  content: "✓ ";
  color: var(--selc);
}

/* ─── Bilgi ekranı ─── */
.fl-insight,
.fl-done {
  padding-top: 6vh;
}

.fl-insight-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: #c9a84c;
  font-size: 22px;
  margin-bottom: 18px;
}

.fl-principle {
  border-left: 2px solid #c9a84c;
  padding-left: 14px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--em);
}

/* ─── Plan ─── */
.fl-summary {
  margin: 4px 0 22px;
  padding: 6px 16px;
  border: 1px solid var(--cardb);
  border-radius: 12px;
  background: var(--card);
}

.fl-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pt);
  font-size: 14px;
}

.fl-summary div:last-child {
  border-bottom: 0;
}

.fl-summary dt {
  color: var(--txt3);
}

.fl-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.fl-list-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt3);
  margin: 0 0 12px;
}

.fl-plan,
.fl-timeline {
  list-style: none;
  counter-reset: fl;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fl-plan li,
.fl-timeline li {
  counter-increment: fl;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
  line-height: 1.5;
  min-height: 28px;
}

.fl-plan li::before,
.fl-timeline li::before {
  content: counter(fl);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sel);
  color: var(--selc);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl[data-theme="dark"] .fl-timeline li::before {
  background: rgba(201, 168, 76, 0.16);
}

.fl-plan small {
  display: block;
  color: var(--txt3);
  font-size: 13px;
}

.fl-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txt2);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--cardb);
  margin: 0 0 12px;
}

.fl-note--warn {
  background: var(--warnbg);
  border-color: #e8cf8f;
  color: #5b4510;
}

.fl-note--ok {
  background: var(--okbg);
  border-color: #b8d8c0;
  color: var(--okt);
}

/* ─── Formlar ─── */
.fl-form {
  display: grid;
  gap: 16px;
}

.fl-field {
  display: grid;
  gap: 6px;
}

.fl-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--txt2);
}

.fl-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--cardb);
  background: var(--input);
  color: #0a1628;
  font: 400 16px/1.4 "DM Sans", sans-serif;
}

.fl-input:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.fl-input.is-invalid {
  border-color: var(--err);
}

.fl-textarea {
  resize: vertical;
  min-height: 92px;
}

.fl-hint {
  font-size: 12.5px;
  color: var(--txt3);
  margin: 0;
}

.fl-error {
  font-size: 13px;
  color: var(--err);
  margin: 0;
}

.fl-error[hidden] {
  display: none;
}

.fl-error--box {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbe3df;
  margin-bottom: 14px;
}

.fl-kvkk {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--txt3);
  margin: 0;
}

.fl-kvkk a {
  color: var(--txt2);
}

.fl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Dosya seçiciler */
.fl-file {
  margin-bottom: 12px;
}

.fl-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fl-file-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--cardb);
  background: var(--card);
  cursor: pointer;
}

.fl-file.has-file .fl-file-box {
  border-style: solid;
  border-color: #6f9a7b;
  background: var(--okbg);
}

.fl-file.is-invalid .fl-file-box {
  border-color: var(--err);
}

.fl-file-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sel);
  color: var(--selc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.fl-file.has-file .fl-file-icon {
  background: #2d5a3d;
  color: #e3f0e6;
}

.fl-file-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fl-file-text strong {
  font-size: 14.5px;
  font-weight: 500;
}

.fl-file-name {
  font-size: 12.5px;
  color: var(--txt3);
  overflow-wrap: anywhere;
}

.fl-file-action {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt2);
  text-decoration: underline;
}

.fl-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt2);
  cursor: pointer;
}

.fl-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #0a1628;
}

/* Gönderim */
.fl-sending {
  padding-top: 8vh;
}

.fl-upload {
  height: 8px;
  border-radius: 999px;
  background: var(--pt);
  overflow: hidden;
  margin-top: 8px;
}

.fl-upload span {
  display: block;
  height: 100%;
  width: 2%;
  background: #c9a84c;
  transition: width 0.25s ease;
}

.fl-upload-pct {
  margin-top: 10px;
  font-size: 14px;
  color: var(--txt3);
  font-variant-numeric: tabular-nums;
}

.fl-ref {
  font-size: 13px;
  color: var(--txt3);
}

/* ─── Alt CTA ─── */
.fl-cta {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 22%);
  z-index: 5;
}

.fl-cta[hidden] {
  display: none;
}

.fl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: var(--cta);
  color: var(--ctat);
  font: 600 16px/1 "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.32);
  transition: background 0.15s ease, opacity 0.2s ease, transform 0.1s ease;
}

.fl-btn:hover {
  background: var(--ctah);
}

.fl-btn:active {
  transform: scale(0.99);
}

.fl-btn[aria-disabled="true"] {
  opacity: 0.45;
  box-shadow: none;
}

.fl-btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.fl-btn--sm {
  width: auto;
  height: 42px;
  padding: 0 20px;
  font-size: 14.5px;
}

.fl-shake {
  animation: flShake 0.35s ease;
}

@keyframes flShake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.fl-link {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--txt3);
  font: 400 14px/1.4 "DM Sans", sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.fl-link--center {
  display: block;
  margin: 12px auto 0;
  text-align: center;
}

.fl-cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--txt3);
  margin: 12px 0 0;
}

/* Akış sayfasında çerez bandı ne CTA'yı ne soruyu kapatsın: sayfanın başında, akışın içinde durur. */
.fl-body .cookie-banner {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  width: calc(100% - 16px);
  max-width: 560px;
  margin: 8px auto 0;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  box-shadow: none;
}

.fl-body .cookie-banner-text {
  font-size: 12px;
}

@media (max-width: 600px) {
  .fl-body .cookie-banner {
    flex-direction: row;
    align-items: center;
  }

  .fl-body .cookie-btn {
    flex: none;
    padding: 0.5rem 0.75rem;
  }
}

/* Kısa ekranlar (küçük telefonlar, adres çubuğu açık Safari, alçak laptop ekranları) */
@media (max-height: 820px) {
  .fl-top {
    min-height: 52px;
    padding-top: 8px;
  }

  .fl-main {
    padding-top: 6px;
    padding-bottom: 16px;
  }

  .fl-head {
    font-size: clamp(26px, 6.5vw, 34px);
    margin: 4px 0 8px;
  }

  .fl-head--xl {
    font-size: clamp(32px, 9vw, 44px);
  }

  .fl-sub {
    font-size: 14.5px;
    margin-bottom: 14px;
  }

  .fl-welcome {
    padding-top: 1vh;
  }

  .fl-logo {
    height: 32px;
    margin-bottom: 16px;
  }

  .fl-points {
    gap: 6px;
    margin-bottom: 16px;
  }

  .fl-options {
    gap: 8px;
  }

  .fl-opt {
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .fl-form {
    gap: 12px;
  }

  .fl-textarea {
    min-height: 72px;
  }

  .fl-summary {
    margin-bottom: 14px;
    padding: 2px 14px;
  }

  .fl-summary div {
    padding: 7px 0;
    font-size: 13.5px;
  }

  .fl-plan,
  .fl-timeline {
    gap: 8px;
    margin-bottom: 12px;
  }

  .fl-plan li,
  .fl-timeline li {
    font-size: 14px;
  }

  .fl-note {
    font-size: 13px;
    padding: 9px 12px;
    margin-bottom: 8px;
  }

  .fl-cta {
    padding-top: 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .fl-btn {
    height: 52px;
  }
}

/* Yan çevrilmiş telefon */
@media (max-height: 450px) {
  .fl-top {
    min-height: 44px;
    padding-top: 4px;
  }

  .fl-head {
    font-size: 24px;
  }

  .fl-head--xl {
    font-size: 30px;
  }

  .fl-logo,
  .fl-insight-mark {
    display: none;
  }

  .fl-btn {
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-in-r,
  .fl-in-l,
  .fl-shake {
    animation: none;
  }

  .fl-progress span,
  .fl-upload span {
    transition: none;
  }
}

/* WhatsApp ile iletişim (iletişim adımı) */
.fl-wa {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fl-wa-line {
  margin: 0 0 14px;
}
