/* Genel sayfa stili */
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #123047; /* koyu lacivert */
}

/* Ortada kart görünümü */
.main-wrapper {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

/* Giriş ve test kartları */
#intro-screen,
#test-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(4, 40, 70, 0.08);
}

/* Başlıklar */
.intro-title,
#test-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #05435f; /* OANDA turkuazı */
  margin-bottom: 4px;
}

.intro-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7a8f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Başlık satırı (İfade + 1./2./3. Tercih) */
.question-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  column-gap: 8px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* İfade sütunu sola */
.question-header .col-text {
  text-align: left;
}

/* 1. / 2. / 3. Tercih başlıkları ortada */
.question-header .col-pref {
  text-align: center;
}

/* Seçenek satırları (metin + 3 radio) */
.options {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
}

/* Radio butonları kendi kolonunda ortala */
.options input[type="radio"] {
  justify-self: center;
}


/* Metin */
.intro-text,
.question > p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #243447;
}

/* Bilgilendirme onay satırı */
.intro-consent-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* Form alanları */
.intro-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.intro-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.intro-field label {
  font-weight: 500;
  color: #41516b;
}

.intro-field input[type="text"],
.intro-field input[type="email"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d3d9e4;
  font-size: 0.9rem;
}

.intro-field input:focus {
  outline: none;
  border-color: #05435f;
  box-shadow: 0 0 0 2px rgba(5, 67, 95, 0.15);
}

/* Butonlar */
.btn-primary {
  background: #05435f;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.btn-primary:disabled {
  background: #a6b4c4;
  cursor: not-allowed;
}

.btn-primary:hover:not(:disabled) {
  background: #076f8a;
}

/* Navigasyon (Önceki / Sonraki / Gönder) */
#navigation {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nav-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

#prev-btn {
  background: #e5ebf4;
  color: #123047;
}

#next-btn {
  background: #05435f;
  color: #ffffff;
}

#submit-btn {
  background: #d77e5e; /* OANDA turuncu */
  color: #ffffff;
}

/* Soru kartı */
.question {
  margin-top: 16px;
}

.question > p {
  font-weight: 500;
  margin-bottom: 12px;
}

/* Sonuç kutusu */
#result {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #e9f7fb;
  color: #05435f;
  font-weight: 500;
}

/* Küçük ekran uyumu */
@media (max-width: 768px) {
  #intro-screen,
  #test-section {
    padding: 18px 16px;
  }

  .question-header,
  .options {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr !important;
  }
}

/* Üst başlık */
header {
  background-color: #004aad;
  color: #ffffff;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 700;
}

/* Ana alan */
main {
  max-width: 1000px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* GİRİŞ KARTI */
.intro-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 32px 32px;
  box-shadow: 0 10px 30px rgba(0, 40, 90, 0.12);
  border-top: 6px solid #004aad;
  margin-bottom: 24px;
}

.intro-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.intro-logo {
  height: 64px;
  width: auto;
}

.intro-title {
  margin: 0;
  font-size: 22px;
  color: #004aad;
  letter-spacing: 0.03em;
}

.intro-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro-text {
  font-size: 14px;
  color: #374151;
  margin: 8px 0;
  line-height: 1.5;
}

.intro-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  font-weight: 500;
  color: #111827;
}

.intro-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00a5b5;
}

.intro-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.intro-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 4px;
}

.intro-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.intro-field input:focus {
  border-color: #00a5b5;
  box-shadow: 0 0 0 3px rgba(0, 165, 181, 0.2);
}

/* BUTON */
.primary-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #004aad, #00a5b5);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 80, 160, 0.3);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* TEST BÖLÜMÜ */
#test-section {
  display: none;              /* başlangıçta kapalı */
  margin-top: 8px;
}

.question {
  background-color: #ffffff;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.question p {
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}

/* tablo benzeri görünüm */
.options {
  font-size: 14px;
}

#navigation {
  display: none;              /* başlangıçta gizli */
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

#navigation button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1f2933;
  cursor: pointer;
  font-size: 14px;
}

#navigation button:hover {
  background-color: #e5f1ff;
  border-color: #004aad;
}

#result {
  display: none;              /* sonuç çıkınca açacağız */
  text-align: center;
  font-size: 18px;
  margin-top: 24px;
  font-weight: 700;
  color: #004aad;
}

/* footer */
footer {
  text-align: center;
  padding: 16px 0 24px;
  background-color: #e5e7eb;
  font-size: 13px;
  color: #4b5563;
}


#enneagram-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto 24px;
}

.enneagram-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ennea-label {
  position: absolute;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
  color: #333;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

#result {
  margin-top: 32px;
}

/* Enneagram görsel alanı */
#enneagram-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto 24px;
}

.enneagram-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tip etiketleri */
.ennea-label {
  position: absolute;
  font-size: 12px;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.15);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.score-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  font-size: 16px;
  line-height: 1.6;
}

.score-list li {
  margin: 4px 0;
  background: #ffffffcc;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: inline-block;
}
