/* ===================================================================
   QUIZ OSOBOWOŚCI — Pani od Przyszłości
   Wymuszenie jasnego trybu, niezależnie od ustawień urządzenia.
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: light only;
  background: #fbf6e8;
}

:root {
  color-scheme: light only;
  --cream: #f5ecd2;
  --cream-soft: #faf3e0;
  --paper: #fbf6e8;
  --navy: #0d1a2b;
  --navy-soft: #1a2e47;
  --navy-mid: #2a4060;
  --text: #0a0a0a;
  --text-soft: #2a2a2a;
  --line: #c9bfa3;
  --line-soft: #ddd2b5;
  --error: #8b2c2c;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #fbf6e8;
  color: #0a0a0a;
  min-height: 100vh;
  padding: 2rem 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-fill-color: initial;
}

body, body * {
  -webkit-text-fill-color: initial;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(26,46,71,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(201,191,163,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.quiz-app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── EKRANY ────────────────────────────────────────────────────── */

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.4s ease; }

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

/* ─── INTRO ─────────────────────────────────────────────────────── */

.intro {
  text-align: center;
  padding: 3rem 1rem;
}

.intro-label,
.thanks-label {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #0d1a2b;
  margin-bottom: 2rem;
  font-weight: 500;
}

.intro-line {
  width: 1px;
  height: 50px;
  background: #0d1a2b;
  margin: 0 auto 2rem;
  opacity: 0.5;
}

.intro h1,
.thanks-title {
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: #0d1a2b;
  margin-bottom: 1.4rem;
}

.intro h1 em,
.thanks-title em {
  font-style: italic;
  color: #2a4060;
}

.intro-desc,
.thanks-desc {
  font-size: 1.15rem;
  color: #2a2a2a;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 2.8rem;
  font-style: italic;
}

/* ─── PRIMARY BUTTON ────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #faf3e0;
  background: #0d1a2b;
  border: none;
  padding: 1.1rem 2.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #2a4060;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}

.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

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

.btn-primary:disabled::after { transform: translateX(-100%); }

/* ─── FORMULARZ KONTAKTOWY ──────────────────────────────────────── */

.contact {
  padding: 2rem 0.5rem;
}

.form-label {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2a4060;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

.form-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: #0d1a2b;
  margin-bottom: 0.8rem;
  text-align: center;
}

.form-title em {
  color: #2a4060;
}

.form-desc {
  font-size: 1.05rem;
  color: #2a2a2a;
  line-height: 1.6;
  margin-bottom: 2.4rem;
  font-style: italic;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 480px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d1a2b;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="email"] {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: #0a0a0a;
  background: #ffffff;
  border: 1px solid #ddd2b5;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.field input:focus {
  border-color: #0d1a2b;
}

.field input.error {
  border-color: #8b2c2c;
  background: #fdf5f5;
}

.field-error {
  font-size: 0.9rem;
  color: #8b2c2c;
  margin-top: 0.4rem;
  font-style: italic;
  min-height: 1.2em;
  display: block;
}

.field-checkbox {
  margin-top: 0.4rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.98rem;
  color: #2a2a2a;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  margin-bottom: 0;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: #0d1a2b;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text { flex: 1; }

#btnContactSubmit {
  margin-top: 0.6rem;
  align-self: center;
}

/* ─── QUIZ ──────────────────────────────────────────────────────── */

.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(26,46,71,0.12);
  margin-bottom: 2.5rem;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: #0d1a2b;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.progress-label {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: #0d1a2b;
  text-align: right;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.question-block {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s ease;
}

.question-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.axis-tag {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.question-text {
  font-size: clamp(1.6rem, 4.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: #000000;
  margin-bottom: 2.5rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 1.5rem;
  background: #ffffff;
  border: 1px solid #ddd2b5;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  font-family: 'Cormorant Garamond', Georgia, serif;
  width: 100%;
  border-radius: 0;
}

.option-btn:hover {
  border-color: #2a4060;
  background: #f5ecd2;
}

.option-btn.selected {
  border-color: #0d1a2b;
  background: #0d1a2b;
}

.option-btn.selected .option-letter,
.option-btn.selected .option-text {
  color: #faf3e0;
}

.option-letter {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.9rem;
  color: #0d1a2b;
  min-width: 22px;
  padding-top: 0.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.25s;
}

.option-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: #000000;
  line-height: 1.5;
  transition: color 0.25s;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  gap: 1rem;
}

.btn-nav {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: #2a2a2a;
  padding: 0.5rem 0;
  transition: color 0.2s;
  font-weight: 500;
}

.btn-nav:hover { color: #0d1a2b; }

.btn-next {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #0d1a2b;
  color: #faf3e0;
  border: none;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all 0.25s;
  opacity: 0.35;
  pointer-events: none;
  font-weight: 600;
}

.btn-next.enabled {
  opacity: 1;
  pointer-events: all;
}

.btn-next.enabled:hover { background: #2a4060; }

/* ─── WYNIKI ────────────────────────────────────────────────────── */

.results-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd2b5;
}

.results-label {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2a4060;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.results-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: #0d1a2b;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.results-subtitle {
  font-size: 1.05rem;
  color: #2a2a2a;
  font-weight: 500;
  font-style: italic;
}

.axes-container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-bottom: 3rem;
}

.axis-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.axis-name {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000000;
  font-weight: 600;
}

.axis-score {
  font-size: 1.1rem;
  color: #0d1a2b;
  font-style: italic;
  font-weight: 600;
}

.axis-poles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.pole {
  font-size: 1rem;
  color: #2a2a2a;
  font-weight: 500;
}

.pole.dominant {
  color: #0d1a2b;
  font-weight: 600;
  font-style: italic;
}

.bar-track {
  height: 6px;
  background: rgba(26,46,71,0.15);
  position: relative;
  margin-bottom: 0.9rem;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d1a2b, #2a4060);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.axis-desc {
  font-size: 1.05rem;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
}

.profile-box {
  background: #0d1a2b;
  color: #faf3e0;
  padding: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
}

.profile-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background: #faf3e0;
  opacity: 0.5;
}

.profile-box h3 {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #faf3e0;
  margin-bottom: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1rem;
}

.profile-box p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #faf3e0;
  line-height: 1.7;
  font-style: italic;
}

.send-status {
  text-align: center;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.send-status.success { color: #2a4060; }
.send-status.pending { color: #2a2a2a; }
.send-status.error { color: #8b2c2c; }

.btn-restart {
  display: block;
  width: 100%;
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #faf3e0;
  border: 1px solid #0d1a2b;
  color: #0d1a2b;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  font-weight: 600;
}

.btn-restart:hover {
  background: #0d1a2b;
  color: #faf3e0;
}

/* ─── PODZIĘKOWANIE ─────────────────────────────────────────────── */

.thanks {
  text-align: center;
  padding: 3rem 1rem;
}

.thanks-quote {
  font-size: 1.15rem;
  color: #2a4060;
  font-style: italic;
  margin: 2rem auto 2.5rem;
  max-width: 440px;
  line-height: 1.6;
}

#thanksEmail {
  color: #0d1a2b;
  font-weight: 600;
  font-style: normal;
}

/* ─── RESPONSYWNOŚĆ ─────────────────────────────────────────────── */

@media (max-width: 540px) {
  body { padding: 1.4rem 0.8rem; }
  .intro, .thanks { padding: 2rem 0.5rem; }
  .option-btn { padding: 1rem 1.2rem; }
  .option-text { font-size: 1.05rem; }
  .question-text { font-size: 1.45rem; }
  .profile-box { padding: 1.8rem 1.4rem; }
  .btn-primary { padding: 1rem 2.2rem; font-size: 0.82rem; }
}

/* ─── PRINT ─────────────────────────────────────────────────────── */

@media print {
  body { background: #fff; }
  .btn-primary, .btn-nav, .btn-next, .btn-restart { display: none; }
}
