/* Uygunluk testi — services split dili, refined */

.page-quiz {
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
}

.page-quiz .footer {
  position: relative;
  z-index: 2;
}

/* Homepage solid header dili */
.page-quiz .quiz-header {
  position: fixed;
  z-index: 60;
  height: 68px;
  background: rgba(1, 47, 87, 0.96);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 32px rgba(1, 20, 40, 0.22);
  transform: none !important;
  pointer-events: auto !important;
}

.page-quiz .quiz-header-cta {
  padding: 12px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.page-quiz .quiz-header-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.quiz-split {
  margin-top: 68px;
  min-height: calc(100vh - 68px);
  background: var(--navy);
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: stretch;
  min-height: calc(100vh - 68px);
}

.quiz-visual {
  grid-column: 1 / span 5;
  margin-left: calc(-1 * var(--gutter));
  position: relative;
  min-height: calc(100vh - 68px);
  background: #0b1c2c center / cover no-repeat;
  background-image: url("../assets/services.jpg");
}

.quiz-panel {
  grid-column: 6 / span 7;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: var(--navy);
  min-height: calc(100vh - 68px);
  padding: 0;
}

.quiz-panel-inner {
  width: 100%;
  margin: 0;
  padding: clamp(40px, 6vh, 72px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  animation: quizRise 0.7s var(--ease) both;
}

@keyframes quizRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.quiz-intro {
  margin-bottom: clamp(22px, 3vh, 32px);
}

.quiz-intro .eyebrow {
  margin: 0 0 14px;
  color: rgba(212, 238, 255, 0.72);
  opacity: 1;
}

.quiz-intro h1 {
  margin: 0 0 14px;
  max-width: 16em;
  font-family: var(--font);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #fff;
}

.quiz-intro h1 .text-ice {
  color: var(--ice);
}

.quiz-lead {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.quiz-progress {
  margin-bottom: clamp(22px, 3vh, 28px);
}

.quiz-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quiz-progress-top span:first-child {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.quiz-progress-time {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

.quiz-progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--ice);
  transition: width 0.35s var(--ease);
}

.quiz-form {
  display: flex;
  flex-direction: column;
}

.quiz-steps {
  min-height: 210px;
}

.quiz-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quiz-step[hidden] {
  display: none !important;
}

.quiz-step.is-entering {
  animation: quizFade 0.34s var(--ease) both;
}

@keyframes quizFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.quiz-prompt {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.65px;
  line-height: 1.25;
  color: #fff;
}

.quiz-options {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.quiz-options--row {
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quiz-options--row .quiz-option:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 16px;
}

.quiz-options--row .quiz-option:last-child {
  padding-left: 16px;
}

.quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  transition:
    color 0.2s ease,
    background 0.25s ease,
    padding 0.25s var(--ease),
    border-color 0.2s ease;
}

.quiz-option:hover {
  color: #fff;
  padding-left: 6px;
}

.quiz-option:has(input:checked) {
  color: var(--ice);
  padding-left: 10px;
}

.quiz-option:has(input:checked)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ice);
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quiz-option-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s var(--ease);
  transform: scale(0.4);
}

.quiz-option:hover .quiz-option-mark {
  border-color: rgba(212, 238, 255, 0.7);
}

.quiz-option:has(input:checked) .quiz-option-mark {
  border-color: var(--ice);
}

.quiz-option:has(input:checked) .quiz-option-mark::after {
  background: var(--ice);
  transform: scale(1);
}

.quiz-option span:last-child {
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.quiz-option:has(input:checked) span:last-child {
  font-weight: 600;
}

.quiz-field {
  display: grid;
  gap: 10px;
  max-width: 280px;
}

.quiz-field-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 238, 255, 0.55);
}

.quiz-field input {
  width: 100%;
  margin: 0;
  padding: 14px 0 16px;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quiz-field input::-webkit-outer-spin-button,
.quiz-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quiz-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.6px;
}

.quiz-field input:focus {
  border-bottom-color: var(--ice);
  box-shadow: 0 1px 0 0 var(--ice);
}

.quiz-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.quiz-back {
  padding: 14px 18px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.quiz-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.quiz-back[hidden] {
  display: none !important;
}

.quiz-next {
  margin-left: auto;
  min-width: 148px;
}

.quiz-next:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-quiz .quiz-next.btn-white {
  color: var(--ink);
}

.quiz-result {
  animation: quizFade 0.4s var(--ease) both;
}

.quiz-result[hidden] {
  display: none !important;
}

.quiz-result-badge {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

.quiz-result.is-green .quiz-result-badge {
  color: #7ddea0;
}

.quiz-result.is-yellow .quiz-result-badge {
  color: #f0d56a;
}

.quiz-result.is-red .quiz-result-badge {
  color: #f0a0a0;
}

.quiz-result-label {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.9px;
  line-height: 1.15;
  color: #fff;
}

.quiz-result-text {
  margin: 0 0 28px;
  max-width: 36em;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.quiz-lead-form {
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 420px;
}

.quiz-lead-note {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(212, 238, 255, 0.78);
}

.quiz-lead-fields {
  display: grid;
  gap: 16px;
}

.quiz-lead-field {
  display: grid;
  gap: 8px;
}

.quiz-lead-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 238, 255, 0.55);
}

.quiz-lead-field input {
  width: 100%;
  margin: 0;
  padding: 12px 0 14px;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-lead-field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
}

.quiz-lead-field input:focus {
  border-bottom-color: var(--ice);
  box-shadow: 0 1px 0 0 var(--ice);
}

.quiz-lead-field input.is-invalid {
  border-bottom-color: #ffb4b4;
  box-shadow: 0 1px 0 0 #ffb4b4;
}

.quiz-lead-field-error {
  font-size: 12.5px;
  line-height: 1.4;
  color: #ffb4b4;
}

.quiz-lead-field-error[hidden] {
  display: none !important;
}

.quiz-lead-submit {
  justify-self: start;
  margin-top: 8px;
  min-width: 220px;
}

.quiz-lead-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.quiz-lead-error {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #ffb4b4;
}

.quiz-lead-error a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quiz-lead-error a:hover {
  color: var(--ice);
}

.quiz-lead-success {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #7ddea0;
}

.quiz-lead-success[hidden],
.quiz-lead-fields[hidden] {
  display: none !important;
}

.quiz-lead-form.is-sent .quiz-lead-fields {
  display: none;
}

.quiz-lead-form.is-sent .quiz-lead-note,
.quiz-lead-form.is-sent .quiz-lead-error {
  display: none;
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-restart {
  padding: 14px 18px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.quiz-restart:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.quiz-panel.is-done .quiz-intro,
.quiz-panel.is-done .quiz-progress,
.quiz-panel.is-done .quiz-form {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-step.is-entering,
  .quiz-panel-inner,
  .quiz-result {
    animation: none;
  }
}

@media (max-width: 980px) {
  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-visual {
    grid-column: 1;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    min-height: 240px;
    max-height: 280px;
  }

  .quiz-panel {
    grid-column: 1;
    min-height: 0;
  }

  .quiz-panel-inner {
    min-height: 0;
    padding: 32px 0 52px;
  }

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

  .quiz-options--row .quiz-option:first-child {
    border-right: 0;
    padding-right: 4px;
  }

  .quiz-options--row .quiz-option:last-child {
    padding-left: 4px;
  }
}

@media (max-width: 640px) {
  .quiz-intro h1 {
    font-size: 24px;
    max-width: none;
  }

  .quiz-field {
    max-width: none;
  }

  .quiz-field input {
    font-size: 30px;
  }

  .quiz-lead-form {
    max-width: none;
  }

  .quiz-lead-submit {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .quiz-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quiz-next,
  .quiz-back {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .quiz-result-actions {
    flex-direction: column;
  }

  .quiz-result-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
