@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600&display=swap");

:root {
  --primary: #0ea5a8;
  --primary-strong: #0f766e;
  --accent: #f59e0b;
  --bg: #f2f6fb;
  --bg-strong: #e6f7f2;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #d8e3eb;
  --radius-lg: 1.6rem;
  --radius-md: 0.95rem;
  --shadow-card: 0 22px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hero: 0 20px 60px rgba(14, 165, 140, 0.2);
  --transition-fast: 160ms ease-out;
  --cta-glow: 0 0 0 0 rgba(14, 165, 140, 0.18), 0 16px 48px rgba(14, 165, 140, 0.38);
  --cta-glow-strong: 0 0 0 12px rgba(14, 165, 140, 0.1), 0 20px 60px rgba(14, 165, 140, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(
      135deg,
      #f7fcff 0%,
      #eff7f4 50%,
      #f6f7ff 100%
    ),
    var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.promo-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  background: linear-gradient(90deg, #ff6b6b, #f59e0b, #0ea5a8);
  color: #fff;
  text-align: center;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(14, 165, 140, 0.22);
  position: relative;
  overflow: hidden;
  animation: promo-shift 6s ease-in-out infinite alternate;
}

.promo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-separator {
  opacity: 0.8;
  margin-inline: 0.4rem;
}

.promo-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.has-promo-fixed .page {
  padding-top: var(--promo-height, 0);
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 0.92rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  animation: countdown-pulse 1.6s ease-in-out infinite;
}

.countdown-pill::after {
  content: "";
  position: absolute;
  inset: -30% auto;
  width: 42%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-140%) rotate(12deg);
  animation: countdown-sheen 3.4s linear infinite;
}

.countdown-tick {
  animation: countdown-pop 0.45s ease, countdown-pulse 1.6s ease-in-out infinite;
}
.promo-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.18), transparent 32%);
  mix-blend-mode: screen;
  animation: promo-glow 4s ease-in-out infinite alternate;
}

@keyframes promo-shift {
  0% {
    background-position: 0% 50%;
    filter: saturate(1);
  }
  50% {
    background-position: 50% 50%;
    filter: saturate(1.1);
  }
  100% {
    background-position: 100% 50%;
    filter: saturate(1.15);
  }
}

@keyframes promo-glow {
  0% {
    opacity: 0.6;
    transform: translateY(0);
  }
  100% {
    opacity: 0.9;
    transform: translateY(-4px);
  }
}

@keyframes countdown-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 10px 24px rgba(0, 0, 0, 0.14);
  }
  50% {
    transform: translateY(-1px) scale(1.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 12px 28px rgba(0, 0, 0, 0.16);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 10px 24px rgba(0, 0, 0, 0.14);
  }
}

@keyframes countdown-sheen {
  0% {
    transform: translateX(-140%) rotate(12deg);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  50% {
    transform: translateX(110%) rotate(12deg);
    opacity: 0;
  }
  100% {
    transform: translateX(110%) rotate(12deg);
    opacity: 0;
  }
}

@keyframes countdown-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  filter: blur(32px);
  z-index: -1;
}

body::before {
  width: 560px;
  height: 560px;
  inset: -140px auto auto -160px;
  background: radial-gradient(circle, rgba(14, 165, 140, 0.18), transparent 60%);
}

body::after {
  width: 420px;
  height: 420px;
  inset: auto -140px 60px auto;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 60%);
}

h1,
h2,
h3,
.card-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

@keyframes cta-pulse {
  0% {
    box-shadow: var(--cta-glow);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: var(--cta-glow-strong);
    transform: translateY(-2px) scale(1.018);
  }
  100% {
    box-shadow: var(--cta-glow);
    transform: translateY(0) scale(1);
  }
}

/* RTL support (Tunisien & Marocain) */
body.rtl {
  direction: rtl;
}

body.rtl header,
body.rtl .hero,
body.rtl .main-grid {
  text-align: right;
}

body.rtl .hero {
  row-gap: 1.2rem;
}

body.rtl .hero-cta {
  justify-content: flex-start;
}

body.rtl .hero-copy h1 {
  line-height: 1.35;
}

body.rtl .hero-copy p {
  line-height: 1.55;
}

body.rtl .hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.rtl .question-layout {
  direction: rtl;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.6rem;
  position: relative;
  z-index: 1;
}

/* Header */

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 70%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  direction: ltr;
}

.brand-logo-box {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 1.2rem;
  object-fit: contain;
  padding: 0.35rem;
  background: linear-gradient(180deg, #e8f8f4, #ffffff);
  border: 1px solid #d6f3ed;
  box-shadow: 0 18px 35px rgba(14, 165, 140, 0.18);
}

.brand-text {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 600;
  font-size: 0.78rem;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: #64748b;
}

.brand-gamme {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: rgba(14, 165, 140, 0.08);
  border: 1px solid #d6f3ed;
  border-radius: 999px;
  justify-content: center;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  margin-top: 0.1rem;
}

.brand-gamme-logo {
  width: min(100%, 230px);
  height: 46px;
  object-fit: contain;
  margin: 0 auto;
}

.brand-gamme-label {
  font-size: 0.85rem;
  color: var(--primary-strong);
  font-weight: 700;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  justify-self: center;
  grid-row: 1;
  align-self: start;
}

.header-actions-left {
  justify-self: start;
  grid-column: 1;
}

.header-actions-right {
  justify-self: end;
  grid-column: 3;
}

.header-pill {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid #d6f3ed;
  background: linear-gradient(180deg, #e8f8f4, #ffffff);
  box-shadow: 0 14px 30px rgba(14, 165, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.header-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(14, 165, 140, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.header-pill:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(14, 165, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.header-pill-whatsapp,
.header-pill-share {
  border-color: #d6f3ed;
  background: linear-gradient(180deg, #e8f8f4, #ffffff);
  box-shadow: 0 14px 30px rgba(14, 165, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.header-pill-icon {
  width: 20px;
  height: 20px;
  background: center / contain no-repeat;
  animation: pill-float 3.8s ease-in-out infinite;
}

.header-pill-icon-whatsapp {
  background-image: url("../images/ui/whatsapp.png");
}

.header-pill-icon-share {
  background-image: url("../images/ui/share.png");
}

@keyframes pill-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.rtl .brand-text {
  text-align: center;
}

body.rtl .header-actions {
  align-items: center;
}

body.rtl header {
  direction: ltr;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 2.4rem;
  align-items: center;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #f3fbf7 55%,
    #eef3ff 100%
  );
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 0.2rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 140, 0.12), transparent 35%),
    radial-gradient(circle at 12% 40%, rgba(245, 158, 11, 0.1), transparent 40%);
  pointer-events: none;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.hero-copy p {
  margin: 0 0 1rem;
  color: #475467;
  font-size: 0.82rem;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ffffffcc;
  border: 1px solid #d9e6ee;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: none;
}

.is-hidden {
  display: none !important;
}

.btn-primary {
  border: 1px solid #0bb19a;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #10b59a 0%, #0ea5a8 50%, #0f766e 100%);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(14, 165, 140, 0.35);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(14, 165, 140, 0.4);
  filter: brightness(1.03);
}

.cta-arrow {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.45rem;
  font-size: 1.05em;
  transform: translateY(1px);
}

.hero-cta .btn-primary {
  padding: 1.05rem 2.35rem;
  font-size: 1.5rem;
  line-height: 1.5;
  min-width: 240px;
  box-shadow: var(--cta-glow);
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #22c55e;
  background: #ffffff;
  padding: 0.65rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.16);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-secondary-link:hover {
  transform: translateY(-1px);
  background: #f6fff9;
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.2);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: #ffffff;
  color: #15803d;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.7rem;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.18);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.45);
  filter: brightness(1.03);
}

.hero-cta .btn-whatsapp {
  padding: 0.65rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  color: #15803d;
  border-color: #15803d;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.16);
}

.hero-cta .btn-whatsapp:hover {
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.24);
}

.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px dashed #22c55e;
  background: #f6fff9;
  color: #15803d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-whatsapp-outline:hover {
  transform: translateY(-1px);
  background: #ecfdf3;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.2);
}

.btn-primary:focus-visible,
.btn-submit:focus-visible,
.btn-secondary-link:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Main grid */

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.3rem 1.3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #0ea5a8, #f59e0b);
  opacity: 0.7;
}

.card-compact {
  padding: 1.1rem 1.2rem 1.3rem;
}

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

.card-title {
  margin: 0 0 0.2rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}

.card-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #52606d;
}

body.rtl .card-header {
  flex-direction: row-reverse;
}

body.rtl .card-title,
body.rtl .card-subtitle {
  text-align: right;
}

/* Wizard */

.progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  margin-bottom: 0.7rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0f8ff, #f5fbff);
  border: 1px solid #d3e2ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  width: 100%;
}

.progress-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  min-width: 0;
  height: 12px;
  border-radius: 999px;
  background: #e7f3ff;
  border: 1px solid #c7d6e3;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #10b981, #0ea5a8, #f59e0b);
  transition: width 200ms ease-out;
  min-width: 12%;
}

.wizard-body {
  margin-top: 0.3rem;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  gap: 0.6rem;
  border-top: 1px dashed #e5eaf0;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid #dbe5eb;
  background: #f8fbff;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0f172a;
  transition: background var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
  background: #f9fafb;
  border-color: #cbd8e1;
  transform: translateY(-1px);
}

.btn-ghost:disabled {
  opacity: 0.5;
  transform: none;
  cursor: default;
}

.wizard-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Question layout */

.question-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  white-space: pre-line;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 120px;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  background: #f9fbff;
  border: 1px solid #e3edf3;
}

.question-layout.no-illustration {
  grid-template-columns: minmax(0, 1fr);
}

.question-layout.no-illustration img {
  display: none;
}

.question-layout img {
  max-width: 100%;
  border-radius: 0.9rem;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  padding: 0.5rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.option-btn {
  border-radius: var(--radius-md);
  border: 2px solid #cbd7e3;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%);
  background-color: #f4f8fd;
  padding: 0.65rem 0.8rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast);
  text-align: left;
}

.option-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(14, 165, 140, 0.18), 0 0 0 1px rgba(14, 165, 140, 0.12);
  background: linear-gradient(180deg, #f0fff8 0%, #e6fff4 100%);
}

.option-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.option-btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 0.9rem;
  background: rgba(14, 165, 140, 0.16);
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-main {
  font-weight: 600;
  flex: 1;
}

.option-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

body.rtl .options-grid {
  direction: rtl;
}

body.rtl .option-btn {
  flex-direction: row-reverse;
  text-align: right;
  justify-content: space-between;
}

body.rtl .option-btn-icon {
  margin-left: 0;
  margin-right: 0;
}

body.rtl .option-main {
  text-align: right;
}

body.rtl .option-meta {
  text-align: right;
}

.option-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #ecfdf3 0%, #e2fbf6 100%);
  box-shadow: 0 16px 36px rgba(14, 165, 140, 0.25);
}

/* Recommendation */

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reco-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.reco-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

#leadFormCard .reco-label {
  font-size: 1.2rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 800;
  color: #0f172a;
}

body.rtl .reco-header {
  flex-direction: row-reverse;
}

body.rtl .reco-label {
  text-align: right;
}

.reco-chip {
  font-size: 1.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #047857;
}

.reco-intro {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.reco-path {
  font-size: 0.8rem;
  color: #4b5563;
}

.total-pack-line {
  font-size: 1.16rem;
  font-weight: 850;
  color: #0c6155;
}

.total-pack-line strong {
  font-size: 1.22rem;
  color: #0b7a62;
}

.total-pack-note {
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  background: #fff7e6;
  border: 1px solid #f6c343;
  color: #92400e;
  box-shadow: inset 0 1px 0 #fff3d4;
}

.total-pack-note .note-primary {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
}

.total-pack-note .note-secondary {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #b45309;
}

.bundle-grid {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bundle-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid #dbe6ee;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.bundle-product img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  justify-self: center;
  margin: 0 auto 0.1rem auto;
  display: block;
}

.bundle-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-align: center;
}

.bundle-features {
  margin: 0;
  padding: 0 1rem;
  font-size: 1rem;
  color: #4b5563;
  text-align: left;
  align-self: stretch;
  list-style-position: outside;
}

.bundle-price {
  font-size: 0.95rem;
  color: #059669;
  font-weight: 600;
  margin-top: 0.2rem;
}

.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  margin-inline-end: 0.35rem;
}

.price-discounted {
  color: #0b7a62;
  font-weight: 800;
  margin-inline-end: 0.2rem;
}

.price-regular {
  color: #0b7a62;
  font-weight: 750;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 800;
  font-size: 0.75rem;
}

@keyframes cta-secondary-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 140, 0.08);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(14, 165, 140, 0.06);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 140, 0.08);
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .bundle-product {
    flex-direction: column;
    text-align: left;
    align-items: stretch;
    gap: 0.55rem;
  }
  .bundle-features {
    padding-left: 0;
    text-align: left;
  }
  .bundle-product img {
    width: 125px;
    height: 125px;
  }
}

.reco-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.4rem 0 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 165, 140, 0.06), rgba(239, 246, 255, 0.6));
}

.reco-note .note-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0ea5a80d;
  font-size: 0.86rem;
  box-shadow: inset 0 0 0 1px #bfe7e1;
}

.reco-note .note-body {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.55;
}

.reco-note .note-line {
  margin: 0.18rem 0;
}

.reco-note .note-sep {
  height: 1px;
  background: #d8e3eb;
  margin: 0.4rem 0;
}

.reco-note .note-intro {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.reco-note .note-list {
  margin: 0.1rem 0 0;
  padding-left: 1.1rem;
  color: #0f172a;
}

.reco-note .note-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.reco-note .note-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(14, 165, 140, 0.12);
  color: #0f172a;
  font-size: 0.9rem;
  border: 1px solid rgba(14, 165, 140, 0.18);
}

.reco-note .note-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
  direction: ltr;
}

.reco-note .price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 0.6rem;
  background: #0f766e0d;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid #b9efe6;
}

body.rtl .reco-note {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .reco-note .note-steps,
body.rtl .reco-note .note-prices {
  justify-content: flex-start;
  direction: ltr;
}

/* Structured messages (preformatted lines) */
.note-structured .note-steps,
.note-structured .note-prices {
  display: none;
}

.note-structured .note-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.note-structured .note-sep {
  height: 1px;
  border: 0;
  background: #d8e3eb;
  width: 100%;
  margin: 0.3rem 0;
}

.note-structured .note-paragraph {
  margin: 0.15rem 0;
  font-weight: 800;
  line-height: 1.58;
  white-space: normal;
  word-break: break-word;
  padding: 0;
  background: transparent;
}

.note-structured .note-paragraph strong {
  color: #0f172a;
}

.note-structured .note-list {
  margin: 0.15rem 0 0.25rem;
  padding-left: 1.4rem;
  color: #0f172a;
  line-height: 1.58;
  white-space: normal;
  word-break: break-word;
  list-style: disc;
}

.note-structured .note-list li {
  margin: 0.12rem 0;
  padding: 0;
  background: transparent;
}

.note-structured .note-list li::marker {
  color: #0f766e;
  font-weight: 650;
}

body.rtl .note-structured .note-list {
  padding-left: 0;
  padding-right: 1.2rem;
}

.advisory-card {
  margin-top: 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.4rem;
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.advisory-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, #eef6ff, #e5f0ff);
  border-bottom: 1px solid #e0f2fe;
}

.advisory-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-size: 1.02rem;
}

.advisory-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.96rem;
}

.advisory-card.price-mode .advisory-title {
  font-size: 1.02rem;
  font-weight: 650;
}

.advisory-body {
  padding: 1.05rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advisory-card.price-mode .advisory-body {
  gap: 1rem;
}

.adv-simple {
  border: 1px solid #e5e7eb;
  border-radius: 0.95rem;
  background: #f5f7ff;
  padding: 0.95rem 1rem;
  color: #0f172a;
}

.adv-simple-intro {
  margin: 0.15rem 0 0.35rem;
  line-height: 1.7;
  font-weight: 800;
  font-size: 0.82rem;
}

.adv-simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.adv-simple-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #1f2937;
  font-size: 0.88rem;
  line-height: 1.58;
  font-weight: 650;
}

.adv-prices {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.adv-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem;
}

.adv-price-note {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #d32f2f;
  line-height: 1.45;
}

.adv-price-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.adv-price-size {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 0.05rem;
}

.adv-price-value {
  font-size: 1.18rem;
  font-weight: 760;
  color: #0f172a;
}

.adv-price-currency {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 650;
}

.price-title {
  font-size: 0.88rem;
  color: #0f172a;
}

.adv-positive {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: #065f46;
  margin-top: 0.4rem;
  box-shadow: inset 0 0 0 1px #d1fae5;
}

.adv-positive-title {
  font-weight: 800;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.adv-positive-text {
  font-weight: 700;
  line-height: 1.55;
}

body.rtl .adv-positive {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .adv-positive {
  direction: ltr;
  text-align: left;
}

.adv-block.intro {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.adv-price-main {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
  color: #0f172a;
}

.adv-main,
.adv-sub {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #1f2937;
  font-size: 0.82rem;
  line-height: 1.58;
  font-weight: 650;
}

.adv-main .adv-bullet {
  background: #2563eb;
}

.adv-sub .adv-bullet {
  background: #cbd5e1;
}

.adv-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.adv-card {
  border: 1px solid #e4e6eb;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.adv-card.prep {
  background: #f8fafc;
}

.adv-card.solution {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.adv-card-title {
  font-weight: 750;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96rem;
}

.adv-card-title.success {
  color: #047857;
}

.adv-icon.info,
.adv-icon.check {
  font-size: 0.86rem;
}

.adv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  direction: rtl;
}

.adv-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-weight: 650;
  color: #1f2937;
  line-height: 1.5;
  font-size: 0.82rem;
  flex-direction: row;
  text-align: right;
}

.adv-arrow {
  color: #9ca3af;
  font-weight: 800;
  display: inline-block;
}

.adv-solution-line {
  font-weight: 700;
  color: #065f46;
  line-height: 1.55;
  font-size: 0.80rem;
}

.adv-device-box {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 0.87rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.16);
  text-align: center;
}

.adv-device-label {
  font-size: 0.78rem;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.adv-device-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.adv-device-text + .adv-device-text {
  margin-top: 0.12rem;
  font-weight: 700;
  color: #111827;
}

body.rtl .advisory-header,
body.rtl .advisory-body {
  direction: rtl;
  text-align: right;
}

body.rtl .adv-main,
body.rtl .adv-sub,
body.rtl .adv-list li {
  flex-direction: row;
  text-align: right;
}

body.rtl .adv-arrow {
  transform: none;
}

body.rtl .adv-card-title,
body.rtl .adv-solution-line,
body.rtl .adv-device-box,
body.rtl .adv-block.intro {
  direction: rtl;
}

/* LTR override for French/English */
html[dir="ltr"] .adv-list li {
  direction: ltr;
  text-align: left;
  flex-direction: row;
}

html[dir="ltr"] .adv-simple-list li {
  direction: ltr;
  text-align: left;
}

body.rtl .adv-simple-list li {
  flex-direction: row-reverse;
  text-align: right;
}

body.rtl .adv-simple-list li {
  flex-direction: row-reverse;
  text-align: right;
}

.bundle-actions {
  margin-top: 0.8rem;
}

.bundle-actions-top {
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

.bundle-share {
  margin-top: 0.4rem;
  text-align: center;
}

.bundle-share .share-label {
  font-weight: 800;
}

.inline-note {
  margin-top: 0.5rem;
}

.btn-compact {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  font-weight: 800;
}

.bundle-actions .btn-primary {
  animation: cta-pulse 2.6s ease-in-out infinite;
  background: linear-gradient(135deg, #10b59a 0%, #0ea5a8 50%, #0f766e 100%);
  border: 1px solid #0bb19a;
  box-shadow: var(--cta-glow);
  letter-spacing: -0.01em;
}

body.rtl .bundle-price {
  text-align: right;
}

body.rtl .bundle-title {
  text-align: center;
}

body.rtl .bundle-features {
  text-align: right;
  padding-inline: 1rem;
  direction: rtl;
}

html[dir="ltr"] .bundle-title,
html[dir="ltr"] .bundle-features,
html[dir="ltr"] .bundle-product {
  text-align: center;
}

.bundle-product > div {
  width: 100%;
}

/* Answers table */

.answers-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease-out;
}

.answers-panel.open {
  max-height: 230px;
}

.answers-table-wrapper {
  border-radius: 0.9rem;
  border: 1px solid #dbe6ee;
  background: #fff;
  padding: 0.45rem;
  overflow: auto;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

th,
td {
  padding: 0.35rem 0.45rem;
  text-align: left;
  white-space: nowrap;
}

th {
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

td {
  border-bottom: 1px solid #e5e7eb;
}

.btn-inline {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  color: #4b5563;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */

.form {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form .reco-label {
  font-size: 1.3rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.field {
  flex: 1;
  min-width: 0;
}

.field label {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  display: block;
  margin-bottom: 0.2rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid #d8e8ec;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  font-family: inherit;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
  background: #fbfdff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(14, 165, 140, 0.35),
    0 8px 20px rgba(14, 165, 140, 0.18);
  background: #f6fffb;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.phone-field {
  display: grid;
  grid-template-columns: minmax(52px, auto) 1fr;
  gap: 0.15rem;
  align-items: center;
  direction: ltr;
}

.phone-code {
  min-width: 52px;
  width: auto;
  height: 100%;
  border-radius: 0.8rem;
  border: 1px solid #d8e8ec;
  padding: 0.28rem 0.35rem;
  background: #f9fbff;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-size: 0.74rem;
}

.phone-local {
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}

body.rtl .phone-field {
  direction: ltr;
}

@media (max-width: 640px) {
  .phone-field {
    grid-template-columns: minmax(50px, auto) 1fr;
    gap: 0.12rem;
  }
  .phone-code {
    min-width: 50px;
    padding: 0.24rem 0.32rem;
    font-size: 0.72rem;
  }
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.checkbox-row input {
  margin-top: 0.1rem;
  width: 20px;
  height: 20px;
  border: 2px solid #0bb19a;
  border-radius: 6px;
  background: linear-gradient(180deg, #f7fffb, #e9f9f4);
  box-shadow: 0 4px 10px rgba(14, 165, 140, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  appearance: none;
  position: relative;
  cursor: pointer;
  transition: box-shadow var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.checkbox-row input:checked {
  background: linear-gradient(180deg, #10b981, #0e9f9b);
  border-color: #0bb19a;
  box-shadow: 0 6px 14px rgba(14, 165, 140, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.checkbox-row input:checked::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-size: 0.9rem;
  color: #fff;
  font-weight: 800;
}

.checkbox-row input:focus-visible {
  outline: 2px solid rgba(14, 165, 140, 0.4);
  outline-offset: 2px;
}

.checkbox-row label {
  line-height: 1.4;
}

.form-footer {
  margin-top: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.form-note {
  font-size: 0.73rem;
  color: #9ca3af;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  flex-direction: column;
}

.btn-submit {
  border: 1px solid #0bb19a;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b59a 0%, #0ea5a8 50%, #0f766e 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  box-shadow: var(--cta-glow);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), filter var(--transition-fast);
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--cta-glow-strong);
  filter: brightness(1.05);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 14px 32px rgba(14, 165, 140, 0.35);
  filter: brightness(1.02);
}

.btn-submit::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-end: 0.1rem;
  background: center / contain no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23ffffff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 12l7 7 11-14\"/></svg>');
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  animation-play-state: paused;
}

@keyframes submit-pulse {
  0% {
    box-shadow: 0 16px 32px rgba(14, 165, 140, 0.35),
      0 8px 0 rgba(8, 137, 120, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 22px 48px rgba(14, 165, 140, 0.4),
      0 10px 0 rgba(8, 137, 120, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  }
  100% {
    box-shadow: 0 16px 32px rgba(14, 165, 140, 0.35),
      0 8px 0 rgba(8, 137, 120, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  }
}

/* Errors / status */

.error-text {
  font-size: 0.72rem;
  color: #dc2626;
  margin-top: 0.15rem;
}

#consentError {
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes error-pulse {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(4px);
  }
  40% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.error-pulse {
  animation: error-pulse 0.35s ease;
}

.chat-form .dir-auto {
  direction: auto;
  unicode-bidi: plaintext;
  text-align: start;
}

.status-message {
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.status-success {
  color: #15803d;
}

.status-error {
  color: #dc2626;
}

.status-warning {
  color: #d97706;
}

/* Footer */

footer {
  margin-top: auto;
  padding: 1rem 1.2rem 1.6rem;
  font-size: 0.65rem;
  color: #6b7280;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  border-top: 1px solid #dbe6ee;
  padding-top: 0.6rem;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */

/* Chat widget */

.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #0ea5a8;
  color: #fff;
  box-shadow: 0 18px 36px rgba(14, 165, 140, 0.35);
  cursor: pointer;
  z-index: 30;
}

.chat-launcher-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.chat-launcher-text div:first-child {
  font-weight: 700;
}

.chat-launcher-text div:last-child {
  font-size: 0.8rem;
  opacity: 0.85;
}

.chat-launcher-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.chat-launcher-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-launcher-fallback,
.chat-agent-fallback {
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: #fff;
}

.chat-launcher-fallback-text,
.chat-agent-fallback-text {
  display: none;
  font-weight: 700;
}

.chat-launcher-fallback .chat-launcher-fallback-text {
  display: inline;
}

.chat-agent-fallback .chat-agent-fallback-text {
  display: inline;
}

.chat-window {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 360px;
  max-width: calc(100% - 36px);
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  border: 1px solid #dbe6ee;
  overflow: hidden;
  display: none;
  z-index: 35;
}

body.rtl .chat-launcher,
body.rtl .chat-window {
  right: auto;
  left: 18px;
}

.chat-window.open {
  display: flex;
  flex-direction: column;
}

.chat-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, #ecfdf3, #e0f2fe);
  border-bottom: 1px solid #dbe6ee;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid #cfe9df;
}

.chat-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-agent-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.chat-agent-role {
  font-size: 0.8rem;
  color: #4b5563;
}

.chat-close-btn {
  border: none;
  background: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.96rem;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.chat-window-body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-window-lede {
  margin: 0;
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.4;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-field label {
  font-size: 0.82rem;
  color: #1f2937;
  font-weight: 600;
}

.chat-field input,
.chat-field textarea {
  border-radius: 0.75rem;
  border: 1px solid #d8e8ec;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.chat-actions .chat-cancel {
  border-color: #dbe5eb;
}

.chat-submit {
  min-width: 120px;
}

.chat-status {
  font-size: 0.8rem;
  color: #475467;
  min-height: 1.1rem;
  margin-top: 0.2rem;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.12rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.badge-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

@media (max-width: 900px) {
  .card-title {
    font-size: 1.5rem;
  }
  .question-text {
    font-size: 1.4rem;
  }
  .option-btn {
    font-size: 1.35rem;
  }
  .option-meta {
    font-size: 0.85rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    padding: 1.25rem 1.1rem;
    gap: 1.2rem;
  }

  .hero-copy {
    width: 100%;
  }

  body.rtl .hero-cta,
  body.rtl .hero-badges {
    align-items: stretch;
  }

  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .hero {
    border-radius: var(--radius-md);
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-copy p {
    font-size: 0.82rem;
  }

  .hero-cta {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary-link {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .progress-row {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
  }

  .progress-label {
    text-align: center;
  }

  .progress-bar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .card-title {
    font-size: 1.4rem;
  }
  .question-text {
    font-size: 1.3rem;
  }
  .option-btn {
    font-size: 1.2rem;
  }
  .option-meta {
    font-size: 0.85rem;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  .progress-row {
    grid-template-columns: 1fr;
    padding: 0.85rem 1rem;
    row-gap: 0.4rem;
  }

  .progress-bar {
    width: 100%;
    height: 14px;
  }

  header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: center;
  }

  .page {
    padding: 1.2rem 0.9rem 2rem;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-subtitle,
  .brand-gamme-label {
    font-size: 0.78rem;
  }
  .brand {
    justify-self: end;
  }
  .header-actions {
    justify-self: start;
  }

  .hero {
    padding: 1.1rem 1rem;
    gap: 1rem;
  }

  .question-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .options-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-hint {
    text-align: center;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .reco-chip {
    width: 100%;
    text-align: center;
  }

  .bundle-product {
    grid-template-columns: unset;
  }
}

@media (max-width: 480px) {
  .card-title {
    font-size: 1.3rem;
  }
  .question-text {
    font-size: 1.2rem;
  }
  .option-btn {
    font-size: 1.1rem;
  }
  .option-meta {
    font-size: 0.85rem;
  }
  header {
    padding: 0.8rem 0.9rem;
  }

  .card,
  .card-compact {
    padding: 1rem 1rem 1.2rem;
  }

  .progress-row {
    grid-template-columns: 1fr;
  }

  .progress-bar {
    height: 10px;
  }

  .hero-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* RTL alignment for option choices on small screens */
@media (max-width: 640px) {
  body.rtl .options-grid {
    direction: rtl;
  }
  body.rtl .option-btn {
    flex-direction: row-reverse;
    text-align: right;
  }
}

@media (max-width: 480px) {
  body.rtl .options-grid {
    direction: rtl;
  }
  body.rtl .option-btn {
    flex-direction: row-reverse;
    text-align: right;
  }
}
