/* Mezyan — placeholder site. Few colours: ink, warm white, one accent (provisional Majorelle blue, D-023). */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2199, U+2212, U+221E;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2199, U+2212, U+221E;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2199, U+2212, U+221E;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Mezyan guest feedback page — prototype. Mobile-first, tiny, no external requests. */

:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #0b1020;
  --muted: #5b6272;
  --line: #e2dfd7;
  --soft: #f1efe9;
  --r-low: #dc2626;
  --r-mid: #d97706;
  --r-good: #65a30d;
  --r-top: #15803d;
  --font: "Jakarta", "Plex Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Colour variants (D-023): the owner picks one */
[data-variant="majorelle"] {
  --accent: #2a44c9;
  --accent-2: #7b5cff;
  --accent-soft: #e8ebfb;
}
[data-variant="safran"] {
  --accent: #b9461a;
  --accent-2: #e08a00;
  --accent-soft: #fbeee3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html[lang="ar"],
html[lang="ar-MA"] {
  --font: "Plex Arabic", "Jakarta", system-ui, sans-serif;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Demo bar + panel */
.demobar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.demobar__btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
}
.demobar__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.demopanel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #1b2236;
  color: #fff;
  font-size: 14px;
}
.demopanel label {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
}
.demopanel select,
.demopanel input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #39425c;
  border-radius: 10px;
  background: #0b1020;
  color: #fff;
}
.demopanel__restart {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0b1020;
  font-weight: 700;
  cursor: pointer;
}

/* Page */
.page {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 18px 16px 28px;
}
.biz {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.biz__logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}
.biz__name {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.langs {
  position: relative;
}
.langs__current {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.langs__current svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.langs__list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 16px 40px rgb(11 16 32 / 0.14);
}
.langs__list .langs__group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.langs__list button {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: start;
  font-weight: 600;
  cursor: pointer;
}
.langs__list button[aria-current="true"],
.langs__list button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.langs__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.langs__list button[aria-current="true"]::after {
  content: "✓";
  font-weight: 800;
}

.card {
  margin-top: 18px;
  padding: 22px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgb(11 16 32 / 0.04),
    0 14px 34px rgb(11 16 32 / 0.06);
}
.q {
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}
html[lang^="ar"] .q {
  letter-spacing: 0;
  line-height: 1.4;
}

/* Rating */
.rate {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
.rate__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* phones: 2 rows of 5 big targets */
  gap: 8px;
  direction: ltr; /* 1 → 10 always left to right, also in Arabic */
}
@media (min-width: 440px) {
  .rate__row {
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
  }
}
.rate__btn {
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
@media (min-width: 440px) {
  .rate__btn {
    height: 48px;
    font-size: 16px;
  }
}
.rate__btn:hover {
  border-color: var(--accent);
}
.rate__btn:active {
  transform: scale(0.94);
}
.rate__btn[aria-checked="true"] {
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgb(11 16 32 / 0.18);
}
.rate__btn.b-low[aria-checked="true"] {
  background: var(--r-low);
}
.rate__btn.b-mid[aria-checked="true"] {
  background: var(--r-mid);
}
.rate__btn.b-good[aria-checked="true"] {
  background: var(--r-good);
}
.rate__btn.b-top[aria-checked="true"] {
  background: var(--r-top);
}
/* faint scale hint under the numbers */
.rate__row::after {
  content: "";
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--r-low), var(--r-mid) 45%, var(--r-good) 70%, var(--r-top));
  opacity: 0.35;
}
.rate__labels {
  direction: ltr; /* "not good" stays under 1, "excellent" under 10 */
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.error {
  margin-top: 10px;
  color: var(--r-low);
  font-size: 14px;
  font-weight: 600;
}

/* Step 2 */
.more {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  animation: rise 0.35s ease-out;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.field__label {
  font-weight: 700;
}
.field__opt {
  align-self: end;
  font-size: 13px;
  color: var(--muted);
}
.field textarea,
.field input {
  grid-column: 1 / -1;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  resize: vertical;
  font-size: 16px; /* no zoom on iOS */
}
.field textarea:focus,
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}
.contact__fields {
  display: grid;
  gap: 6px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.send {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.15s;
}
.send:active {
  transform: scale(0.98);
}
.privacy {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Thanks */
.thanks {
  text-align: center;
  animation: rise 0.4s ease-out;
}
.thanks__heart {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: #fde2e7;
  color: #e11d48;
  font-size: 32px;
  animation: beat 1.3s ease-in-out 2;
}
@keyframes beat {
  30% {
    transform: scale(1.15);
  }
  60% {
    transform: scale(0.97);
  }
}
.thanks__title {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
html[lang^="ar"] .thanks__title {
  letter-spacing: 0;
}
.thanks__text {
  margin-top: 8px;
  color: var(--muted);
}
.review {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: var(--soft);
}
.review p:first-child {
  font-weight: 700;
}
.review__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.review__btn svg {
  width: 20px;
  height: 20px;
}

.powered {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  direction: ltr;
}
.powered strong {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Place label (e.g. "Chambre 204") above the question */
.place {
  display: table;
  margin: 0 auto 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

/* Quick choices per service */
.topics {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}
.topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic {
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
}
.topic:active {
  transform: scale(0.96);
}
.topic[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.topic[aria-pressed="true"]::before {
  content: "✓ ";
}
