/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Cardo', Georgia, serif;
  background-color: #f4efe9;
  color: #5a4a3b;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background-color: #e8e6e3;
  border-radius: 999px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.progress-bar {
  height: 100%;
  background-color: #5a4a3b;
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ===== INTRO ===== */
#screen-intro {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.intro-top-logo {
  width: 28px;
  margin: 24px auto 20px;
  flex-shrink: 0;
}

.intro-top-logo .logo {
  width: 100%;
  height: auto;
  display: block;
}

.intro-hero {
  width: calc(100% - 48px);
  max-width: 432px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@media (min-height: 600px) and (min-width: 600px) {
  .hero-img {
    max-height: 38vh;
    object-fit: cover;
  }
  .intro-content {
    padding: 20px 28px 32px;
    gap: 14px;
  }
}

.logo-wrap.small {
  width: 28px;
  margin: 0 auto;
}

.logo-wrap.small .logo {
  width: 100%;
  height: auto;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 28px 48px;
  max-width: 480px;
  width: 100%;
  gap: 20px;
}

.intro-content h1 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.4;
  color: #5a4a3b;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4f4f4f;
}

/* ===== QUIZ CONTENT ===== */
#screen-quiz {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#screen-quiz.active {
  display: flex;
}

.quiz-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  padding: 48px 24px 80px;
  gap: 20px;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #5a4a3b;
  text-align: center;
  width: 100%;
}

/* ===== OPTIONS ===== */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e8e6e3;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.2rem;
  color: #5a4a3b;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.option-btn:hover {
  border-color: #b89a5e;
  background: #faf7f3;
}

.option-btn .emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.option-btn .radio-circle {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d8c6a5;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.option-btn:hover .radio-circle {
  border-color: #b89a5e;
}

.option-btn:focus,
.option-btn:focus-visible,
.scale-option:focus,
.scale-option:focus-visible {
  outline: none;
  border-color: #e8e6e3;
  background: #fff;
}

.option-btn:focus .radio-circle,
.option-btn:focus-visible .radio-circle {
  border-color: #d8c6a5;
}

@media (hover: none) {
  .option-btn:hover,
  .scale-option:hover {
    border-color: #e8e6e3;
    background: #fff;
  }
  .option-btn:hover .radio-circle {
    border-color: #d8c6a5;
  }
}

/* ===== OPEN FIELD ===== */
.open-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.open-field-wrap input,
.open-field-wrap textarea {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1rem;
  color: #5a4a3b;
  background: #fff;
  border: 1.5px solid #e8e6e3;
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.open-field-wrap input:focus,
.open-field-wrap textarea:focus {
  border-color: #b89a5e;
}

.open-field-wrap input::placeholder,
.open-field-wrap textarea::placeholder {
  color: #d8c6a5;
}

/* ===== SCALE ===== */
.scale-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.scale-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.scale-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #e8e6e3;
  border-radius: 12px;
  padding: 14px 20px;
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.15rem;
  color: #5a4a3b;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  text-align: left;
}

.scale-option:hover {
  border-color: #b89a5e;
  background: #faf7f3;
}

.scale-range {
  font-weight: 700;
  color: #b89a5e;
  min-width: 44px;
  font-size: 0.9rem;
}

/* ===== BTN PRIMARY ===== */
.btn-primary {
  background-color: #3f5b63;
  color: #f4efe9;
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  font-family: 'Cardo', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background-color: #5a4a3b;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ===== CAPTURE ===== */
#screen-capture {
  justify-content: flex-start;
}

.capture-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 12px;
  max-width: 480px;
  width: 100%;
  gap: 4px;
}

.capture-content .logo-wrap.small {
  width: 22px;
  margin-bottom: 0;
}

.capture-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5a4a3b;
  margin: 0;
}

.capture-content > p {
  font-size: 1rem;
  line-height: 1.5;
  color: #4f4f4f;
  margin: 0;
}

#capture-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a4a3b;
}

.field input {
  font-family: 'Cardo', Georgia, serif;
  font-size: 0.9rem;
  color: #5a4a3b;
  background: #fff;
  border: 1.5px solid #e8e6e3;
  border-radius: 12px;
  padding: 6px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

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

.field input::placeholder {
  color: #d8c6a5;
}

/* ===== PHONE ===== */
.phone-wrap {
  display: flex;
  gap: 8px;
}

.phone-wrap select {
  font-family: 'Cardo', Georgia, serif;
  font-size: 0.85rem;
  color: #5a4a3b;
  background: #fff;
  border: 1.5px solid #e8e6e3;
  border-radius: 12px;
  padding: 6px 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.phone-wrap select:focus {
  border-color: #b89a5e;
}

.phone-wrap input {
  flex: 1;
}

/* ===== OBS BOX ===== */
.obs-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #faf7f3;
  border: 1.5px solid #d8c6a5;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: left;
}

.obs-box span {
  font-size: 0.9rem;
  flex-shrink: 0;
}


.obs-box p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5a4a3b;
}


/* ===== MOBILE CAPTURE OVERRIDES ===== */
@media (max-width: 599px) {
  .capture-content h2 {
    font-size: 1.55rem;
  }
  .capture-content > p {
    font-size: 1.2rem;
  }
  .field label {
    font-size: 1.1rem;
  }
  .field input,
  .phone-wrap select,
  .phone-wrap input {
    font-size: 1.15rem;
    padding: 14px 16px;
  }
  .obs-box p {
    font-size: 1.05rem;
  }
  #capture-form {
    gap: 14px;
    margin-top: 12px;
  }
  .capture-content {
    gap: 10px;
  }
  #btn-submit {
    font-size: 0.95rem;
  }
  .capture-content .logo-wrap.small {
    width: 34px;
  }
  .question-text {
    font-size: 1.25rem;
  }
  .intro-content p {
    font-size: 1.2rem;
  }
}

/* ===== DESKTOP CAPTURE OVERRIDES ===== */
@media (min-width: 600px) {
  .capture-content h2 {
    font-size: 1.6rem;
  }
  .capture-content > p {
    font-size: 1.05rem;
  }
  #btn-submit {
    font-size: 0.85rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .intro-content h1 {
    font-size: 1.4rem;
  }
  .question-text {
    font-size: 1.2rem;
  }
  .intro-hero {
    height: 260px;
  }
}
