/* Online Ders Uygunluk Testi — Afo Academia teması */

/* display:flex [hidden] ozniteligini ezer — panel gizleme */
#introBox[hidden],
#testArea[hidden],
#result[hidden],
#introError[hidden] {
  display: none !important;
}

body[data-page="dikkat-testi"] {
  padding-bottom: var(--contact-bar-height);
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 520px at 20% 8%, rgba(67, 135, 255, 0.28), transparent 70%),
    radial-gradient(900px 520px at 85% 18%, rgba(13, 110, 253, 0.22), transparent 70%),
    linear-gradient(180deg, #0b2a44 0%, #0a1e33 55%, #071423 100%);
}

body[data-page="dikkat-testi"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 35% 25%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(7, 18, 32, 0.2) 0%, rgba(7, 18, 32, 0.72) 70%, rgba(7, 18, 32, 0.92) 100%);
}

body[data-page="dikkat-testi"] main {
  min-height: calc(100svh - var(--header-height) - var(--contact-bar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.attention-test-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-height: calc(100svh - var(--header-height) - var(--contact-bar-height));
  padding: clamp(1rem, 3vh, 1.75rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  box-sizing: border-box;
}

.attention-test-wrap {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.attention-test-header {
  width: 100%;
  text-align: center;
  margin: 0 0 1.25rem;
}

.attention-test-lead {
  margin: 0.75rem auto 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

body[data-page="dikkat-testi"] .contact-page-title {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: center;
  margin-inline: auto;
}

/* Global .contact-card width:min(640px) kaymasin diye tam genislik + ortala */
body[data-page="dikkat-testi"] .attention-test-card.contact-card {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  box-sizing: border-box;
  text-align: center;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  overflow: visible;
}

.attention-test-build-stamp {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: rgba(92, 99, 112, 0.55);
  text-align: center;
}

.attention-test-intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.attention-test-intro-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #0b3a6b;
  text-align: center;
  width: 100%;
}

.attention-test-intro-text {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}

.attention-test-intro-form {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  box-sizing: border-box;
}

.attention-test-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
  text-align: left;
}

@media (min-width: 640px) {
  .attention-test-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .attention-test-form-grid .form-field--full {
    grid-column: 1 / -1;
  }
}

.attention-test-form-grid .form-field {
  min-width: 0;
}

.attention-test-form-grid .form-field--full {
  grid-column: 1 / -1;
}

body[data-page="dikkat-testi"] .attention-test-form-grid select.attention-test-select {
  width: 100%;
  min-height: 3.15rem;
  cursor: pointer;
  color: #1a1d26;
  background-color: #ffffff;
  -webkit-text-fill-color: #1a1d26;
  font-size: 1rem;
}

body[data-page="dikkat-testi"] .attention-test-form-grid select.attention-test-select option {
  color: #1a1d26;
  background-color: #ffffff;
}

body[data-page="dikkat-testi"] .attention-test-form-grid .custom-select {
  width: 100%;
}

body[data-page="dikkat-testi"] .attention-test-form-grid .custom-select__button {
  color: #17324a;
}

body[data-page="dikkat-testi"] .attention-test-form-grid .custom-select__button [data-custom-select-label] {
  color: #17324a;
}

.attention-test-intro-error {
  margin: 0 0 0.75rem;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.attention-test-start-btn {
  width: 100%;
  max-width: 20rem;
  margin: 1rem auto 0;
  display: flex;
  justify-content: center;
}

.attention-test-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.attention-test-progress {
  width: 100%;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

.attention-test-question {
  width: 100%;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.attention-test-question-title {
  margin: 0 0 0.85rem;
  width: 100%;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.35;
  color: var(--color-text);
  text-align: center;
}

.attention-test-stroop-hint,
.attention-test-d2-hint {
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: 36ch;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.stroop {
  width: 100%;
  font-size: clamp(2.5rem, 10vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.1;
  user-select: none;
}

.d2-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.65;
  word-break: break-all;
  text-align: center;
  background: rgba(7, 18, 32, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0 0 1.15rem;
  color: #17324a;
}

.attention-test-question .option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto 0.55rem;
  text-align: center;
  background: rgba(7, 18, 32, 0.04);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 1rem;
  line-height: 1.4;
  font-family: inherit;
  color: var(--color-text);
  box-sizing: border-box;
}

.attention-test-question .option:disabled {
  cursor: default;
  opacity: 0.92;
}

.attention-test-question .option:hover:not(:disabled) {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.18);
}

.attention-test-question .option.is-selected {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.12);
}

.option__text {
  text-align: center;
}

body[data-page="dikkat-testi"] #result.attention-test-done {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.25rem;
}

body[data-page="dikkat-testi"] .attention-test-done-inner {
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body[data-page="dikkat-testi"] .attention-test-done-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #0b3a6b;
  text-align: center;
  width: 100%;
}

body[data-page="dikkat-testi"] .attention-test-done-text,
body[data-page="dikkat-testi"] .attention-test-done-warn {
  width: 100%;
  margin: 0 0 1.25rem;
  text-align: center;
}

body[data-page="dikkat-testi"] .attention-test-done-text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

body[data-page="dikkat-testi"] .attention-test-done-warn {
  margin-bottom: 1rem;
  color: #b42318;
  font-size: 0.9rem;
}

.attention-test-done .btn {
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 520px) {
  .attention-test-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .attention-test-done .btn {
    display: flex;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    justify-content: center;
  }

  .attention-test-question .option {
    max-width: 100%;
  }
}
