:root {
  --navy-900: #101820;
  --navy-700: #1f2c38;
  --sky-100: #f6f7f8;
  --ink-900: #101820;
  --ink-700: #4d5761;
  --line: #d8dde2;
  --surface: #ffffff;
  --red-500: #f32735;
  --red-700: #c81d2a;

  /* Yazi tipleri cihazdan gelir: Google Fonts'a istek atilmaz.
     Kurumsal wifi / mobil operator filtreleri fonts.googleapis.com adresini
     engelledi mi render-blocking stylesheet zaman asimina kadar bekliyor ve
     sayfa acilmiyormus gibi gorunuyordu. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Semibold", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-900);
  background:
    radial-gradient(circle at 95% 0%, rgba(243, 39, 53, 0.12), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(16, 24, 32, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfbfc 0%, #f1f3f5 100%);
  padding: 20px;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  filter: blur(12px);
  z-index: -1;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  top: -70px;
  right: -70px;
  background: rgba(243, 39, 53, 0.15);
  border-radius: 46% 54% 62% 38% / 40% 36% 64% 60%;
  animation: drift 8s ease-in-out infinite alternate;
}

.bg-shape-2 {
  width: 360px;
  height: 360px;
  bottom: -150px;
  left: -130px;
  background: rgba(16, 24, 32, 0.12);
  border-radius: 64% 36% 42% 58% / 58% 44% 56% 42%;
  animation: drift 10s ease-in-out infinite alternate-reverse;
}

.header {
  max-width: 1100px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 24, 32, 0.16);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
}

.brand-block {
  display: flex;
  align-items: center;
  padding-right: 14px;
  border-right: 1px solid rgba(16, 24, 32, 0.12);
}

.brand-logo {
  width: clamp(110px, 14vw, 170px);
  height: auto;
  display: block;
}

.brand-wrap {
  min-width: 0;
}

.header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-900), var(--red-500));
  opacity: 0.9;
}

.eyebrow {
  margin: 0;
  color: var(--ink-700);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.version-badge {
  border: 1px solid rgba(243, 39, 53, 0.32);
  border-radius: 999px;
  padding: 6px 11px;
  font-family: var(--font-display);
  font-size: 12px;
  background: rgba(243, 39, 53, 0.09);
  color: var(--navy-900);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.hero {
  border-left: 4px solid var(--navy-700);
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.95));
  border: 1px solid rgba(16, 24, 32, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: rise 0.68s ease-out;
}

.hero-lead {
  margin: 0;
  color: #425062;
  line-height: 1.45;
}

.project-pill {
  margin: 9px 0 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(243, 39, 53, 0.25);
  border-radius: 999px;
  padding: 7px 13px;
  background: linear-gradient(90deg, rgba(243, 39, 53, 0.1), rgba(16, 24, 32, 0.05));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: rise 0.7s ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-900), var(--red-500));
}

.warning-card {
  background: linear-gradient(120deg, #fff6f7, #ffffff);
}

.warning-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.subtle {
  color: var(--ink-700);
}

form {
  display: grid;
  gap: 16px;
}

.likert-head {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(140px, 1fr));
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
}

.likert-head span {
  text-align: center;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.likert-head .star-scale {
  letter-spacing: 0.18rem;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-family: var(--font-display);
}

.likert-head span:nth-child(2) {
  color: #0b5f47;
}

.likert-head span:nth-child(3) {
  color: #7b851b;
}

.likert-head span:nth-child(4) {
  color: #d46607;
}

.likert-head span:nth-child(5) {
  color: var(--red-500);
}

.question-group {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--sky-100);
}

legend {
  padding: 0 8px;
  font-family: var(--font-display);
  color: var(--navy-900);
}

.question-row {
  display: grid;
  gap: 0;
  grid-template-columns: 1.5fr repeat(4, minmax(140px, 1fr));
  align-items: stretch;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  margin-top: 10px;
  overflow: hidden;
}

.question-row:last-child {
  margin-bottom: 2px;
}

.question-label {
  margin: 0;
  line-height: 1.35;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  padding: 16px 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.question-index {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
}

.question-label .question-index {
  margin-top: -2px;
}

.textarea-label .question-index {
  margin-right: 10px;
}

.question-label span:not(.question-index) {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--navy-700);
  margin-right: 7px;
}

.likert-grid {
  display: contents;
}

.likert-grid label {
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid var(--line);
  padding: 12px;
  min-height: 88px;
  background: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

/* .is-selected sinifi JS ile eklenir: Safari 15.4 oncesi :has() desteklemiyor. */
.likert-grid label.is-selected,
.likert-grid label:has(input:checked) {
  background: rgba(16, 24, 32, 0.08);
  box-shadow: inset 0 0 0 2px rgba(16, 24, 32, 0.32);
}

.likert-grid input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.likert-grid em {
  display: inline;
  font-style: normal;
  letter-spacing: 0.16rem;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1;
}

.likert-grid label:nth-child(1) em {
  color: #0b5f47;
}

.likert-grid label:nth-child(2) em {
  color: #7b851b;
}

.likert-grid label:nth-child(3) em {
  color: #d46607;
}

.likert-grid label:nth-child(4) em {
  color: var(--red-500);
}

.textarea-label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 500;
}

textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  resize: vertical;
  min-height: 96px;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1rem;
}

textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(243, 39, 53, 0.18);
}

.submit-btn {
  justify-self: end;
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: #f6fbff;
  background: linear-gradient(120deg, var(--red-500), var(--red-700));
  box-shadow: 0 10px 26px rgba(243, 39, 53, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(243, 39, 53, 0.36);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.24);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  animation: fade-in 0.35s ease-out;
}

.success-card {
  width: min(92vw, 460px);
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 32, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 248, 248, 0.97));
  text-align: center;
}

.checkmark-wrap {
  margin: 0 auto 12px;
  width: 72px;
}

.checkmark {
  width: 72px;
  height: 72px;
}

.checkmark-circle {
  fill: none;
  stroke: rgba(16, 24, 32, 0.16);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.65s forwards;
}

.checkmark-check {
  fill: none;
  stroke: var(--red-500);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.38s 0.52s forwards;
}

.success-card h2 {
  margin: 4px 0 9px;
  font-family: var(--font-display);
}

.success-card p {
  margin: 0;
  color: var(--ink-700);
}

@keyframes stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(12px, 10px) rotate(4deg);
  }
}

@media (max-width: 920px) {
  body {
    padding: 16px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-block {
    border-right: none;
    padding-right: 0;
  }

  .brand-logo {
    width: clamp(120px, 34vw, 170px);
  }

  .likert-head {
    display: none;
  }

  .question-row {
    grid-template-columns: 1fr;
  }

  .question-label {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .likert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .likert-grid label {
    min-height: 58px;
  }

  .likert-grid em {
    font-size: 1.2rem;
  }
}


@media (max-width: 560px) {
  .question-group {
    padding: 10px;
  }

  .question-label {
    font-size: 0.95rem;
  }

  .likert-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Netlify statik form eklentileri ---- */

[hidden] {
  display: none !important;
}

.option-caption {
  display: none;
  font-size: 0.95rem;
  color: var(--ink-700);
  margin-left: 10px;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(243, 39, 53, 0.35);
  background: rgba(243, 39, 53, 0.08);
  color: var(--red-700);
  font-weight: 500;
}

.submit-btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

@media (max-width: 920px) {
  .likert-grid label {
    justify-content: flex-start;
    padding-left: 18px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .option-caption {
    display: inline;
  }
}
