* {
  box-sizing: border-box;
}

html {
  background: #effaff;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", Arial, sans-serif;
  color: #111;
  background: transparent;
  overflow-x: hidden;
}

.paris-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #e6fbff;
}

.paris-background-animated {
  position: absolute;
  inset: -5%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .78) 46%, rgba(0, 0, 0, .62)),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) brightness(.9);
  animation: parisZoom 18s ease-in-out infinite alternate;
}

.app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 20px clamp(22px, 4vw, 50px);
  background: linear-gradient(180deg, rgba(8, 10, 16, .72), rgba(8, 10, 16, .28) 72%, transparent);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.header-logo,
.language-switch {
  pointer-events: auto;
}

.header-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px);
}

.lang-btn {
  min-width: 60px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  color: #111;
  background: #fff;
}

.lang-btn.active::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  background: #f6bd26;
  vertical-align: middle;
}

.diagnostic-active .app-header {
  min-height: 92px;
  padding-block: 14px;
  background: rgba(8, 10, 16, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.diagnostic-active .language-switch {
  background: rgba(17, 22, 30, .78);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.diagnostic-active .container {
  margin-top: 24px;
}

.diagnostic-active .logo-section {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.diagnostic-active .logo-section a {
  display: none;
}

@keyframes parisZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.intro-screen,
.container,
#results-container,
.step,
.loading-screen,
.results-screen,
.no-match-screen {
  display: none;
}

.intro-screen.active,
.container.active,
.step.active,
.loading-screen.active,
.results-screen.active,
.no-match-screen.active {
  display: block;
}

.intro-screen {
  min-height: 100vh;
  padding: 0;
}

.intro-split-layout {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border: 0;
  backdrop-filter: none;
}

.intro-left {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(170px, 16vw, 230px) clamp(42px, 8vw, 108px) clamp(42px, 8vw, 108px);
}

.red-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, #f6bd26, #fff, #f6bd26);
}

.intro-main-title {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: .95;
  color: #ffffff;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

.intro-tagline {
  margin: 18px 0 0;
  color: #f6bd26;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  font-style: italic;
}

.intro-subcopy {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  font-weight: 600;
}

.intro-features {
  display: grid;
  gap: 11px;
  margin: 34px 0;
}

.feature-item {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.12rem;
  box-shadow: none;
}

.start-challenge-btn,
.next-btn,
.submit-btn {
  border: 0;
  border-radius: 12px;
  padding: 20px 36px;
  color: #111;
  background: #f6bd26;
  box-shadow: 0 16px 34px rgba(246, 189, 38, .28);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.start-challenge-btn:hover,
.next-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 40px rgba(246, 189, 38, .32);
}

.intro-stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
  font-weight: 600;
}

.container {
  width: min(920px, calc(100% - 28px));
  margin: 32px auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 26px 80px rgba(20, 49, 61, .17);
  backdrop-filter: blur(16px);
}

.logo-section {
  text-align: center;
  margin-bottom: 28px;
}

.abc-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 49, 61, .14);
}

.tagline {
  margin: 12px 0 0;
  color: #f6bd26;
  font-weight: 700;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #dff3f8;
  overflow: hidden;
  margin-bottom: 26px;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111, #f6bd26);
  transition: width .35s ease;
}

.step {
  text-align: center;
  animation: fadeUp .32s ease;
}

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

.back-btn {
  display: block;
  margin-bottom: 12px;
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.challenge-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff5c9;
  color: #9a6700;
  font-weight: 700;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  color: #14313d;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.subtitle {
  max-width: 640px;
  margin: 13px auto 26px;
  color: #637985;
  font-weight: 600;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-btn {
  min-height: 116px;
  border: 2px solid #d8eef4;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f4fcff);
  color: #14313d;
  padding: 18px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  box-shadow: 0 12px 30px rgba(20, 49, 61, .09);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.option-btn:hover,
.option-btn.selected {
  transform: translateY(-4px);
  border-color: #f6bd26;
  background: linear-gradient(135deg, #fff, #fff4c5);
}

.emoji {
  font-size: 2rem;
  line-height: 1;
}

.text {
  font-weight: 700;
}

.multi-select .option-btn.selected {
  border-color: #111;
  background: linear-gradient(135deg, #fff4c5, #fff);
}

.form-input {
  display: grid;
  gap: 13px;
  max-width: 560px;
  margin: 0 auto 22px;
}

.text-input {
  width: 100%;
  min-height: 54px;
  border: 2px solid #d8eef4;
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
  color: #14313d;
  outline: none;
  font-family: inherit;
  font-weight: 600;
}

textarea.text-input {
  resize: vertical;
}

.text-input:focus {
  border-color: #f6bd26;
  box-shadow: 0 0 0 5px rgba(246, 189, 38, .18);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #7a929c;
  font-weight: 700;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8eef4;
}

.contact-options {
  margin-bottom: 20px;
}

.contact-btn,
.whatsapp-btn,
.call-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 80px;
  min-width: min(420px, 100%);
  border-radius: 14px;
  padding: 20px 36px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.whatsapp-contact,
.whatsapp-btn {
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .25);
}

.call-btn {
  color: #111;
  background: #f6bd26;
  box-shadow: 0 14px 30px rgba(246, 189, 38, .24);
}

.secondary-btn {
  color: #10285b;
  background: #fff;
  border: 2px solid #10285b;
}

#results-container {
  text-align: center;
}

.loading-screen,
.results-screen,
.no-match-screen {
  padding: 28px 0 8px;
}

.loader {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 7px solid #dff3f8;
  border-top-color: #00a6c8;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.results-intro {
  max-width: 680px;
  margin: 12px auto 24px;
  color: #637985;
  font-weight: 600;
}

.analysis-summary {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 20px;
  border-radius: 22px;
  background: #fffaf0;
  border: 2px solid #f6bd26;
  color: #111;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
}

#programs-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.program-card {
  text-align: left;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #fffaf0);
  border: 2px solid #f2dfad;
  box-shadow: 0 12px 30px rgba(20, 49, 61, .09);
}

.program-card h3 {
  margin: 0 0 8px;
  color: #111;
}

.program-card p {
  margin: 0;
  color: #637985;
  font-weight: 600;
  line-height: 1.5;
}

.program-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4f6671;
  font-weight: 600;
  line-height: 1.5;
}

.program-card .match {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a6700;
  background: #fff5c9;
  font-weight: 700;
}

.cta-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px auto 0;
  padding: 28px 0 8px;
}

.cta-section p {
  flex-basis: 100%;
  margin: 0;
  color: #14313d;
  font-weight: 700;
  font-size: 1.35rem;
}

@media (max-width: 780px) {
  .intro-screen {
    padding: 0;
  }

  .intro-split-layout {
    grid-template-columns: 1fr;
  }

  .intro-left {
    min-height: auto;
    padding-top: 128px;
  }

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

  .container {
    margin: 18px auto;
    padding: 20px;
  }

  .app-header {
    justify-content: space-between;
    min-height: 88px;
    padding: 16px;
  }

  .header-logo img {
    width: 58px;
    height: 58px;
  }

  .diagnostic-active .app-header {
    min-height: 78px;
    padding: 10px 16px;
    justify-content: space-between;
  }

  .diagnostic-active .language-switch {
    transform: scale(.92);
    transform-origin: right top;
  }

  .diagnostic-active .container {
    margin-top: 18px;
    border-radius: 24px;
  }

  .cta-section {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .language-switch {
    gap: 2px;
    padding: 4px;
  }

  .lang-btn {
    min-width: 52px;
    min-height: 38px;
  }

  .diagnostic-active .app-header {
    min-height: 72px;
    padding: 8px 14px;
  }
}
