:root {
  --navy: #16233e;
  --gold: #eba53a;
  --ink: #15151a;
  --muted: #8a8a90;
  --black: #111114;
  --bg: linear-gradient(160deg, #aebfc0 0%, #d6c6aa 48%, #c4a585 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(
      180deg,
      rgba(10, 16, 26, 0.12),
      rgba(10, 16, 26, 0.42)
    ),
    var(--bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.hero {
  padding: 28px 24px 20px;
}

.restaurant-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.restaurant-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.restaurant-name {
  font-size: 22px; 
  font-weight: 600;
  color: #111;
  letter-spacing: -0.02em;
}
.restaurant-sub {
  font-size: 13px;
  color: #aaa;
  margin-top: 2px;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 0 42px;
}

.panel {
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-radius: 28px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
  padding: 18px 20px 24px;
}

.langbar {
  position: absolute;
  top: 10px;
  right: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.langbar .globe {
  font-size: 15px;
  opacity: 0.7;
}
#lang {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid #e7e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}

.progress {
  display: flex;
  gap: 6px;
  margin: 8px 0 14px;
}
.progress .seg {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: #e6e6ea;
  transition: 0.35s;
}
.progress .seg.on {
  background: var(--black);
}
.stepinfo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.intro {
  color: #6e6e76;
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.55;
}

.step {
  display: none;
}
.step.active {
  display: block;
  animation: fade 0.35s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

label.field {
  display: block;
  margin: 0 0 15px;
}
.field > span.lbl {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: #33333a;
}
.opt-note {
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  padding: 14px 15px;
  font-size: 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f1f1f4;
  font-family: inherit;
  color: var(--ink);
  transition: 0.18s;
}
input:focus {
  outline: none;
  background: #fff;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.1);
}
.row2 {
  display: flex;
  gap: 12px;
}
.row2 > label {
  flex: 1;
}
@media (max-width: 430px) {
  .row2 {
    flex-direction: column;
    gap: 0;
  }
}

.qlabel {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin: 18px 0 9px;
  color: #33333a;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.pill {
  position: relative;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e7e7eb;
  color: #1a1a1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: 0.16s;
  user-select: none;
}
.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.pill:hover {
  border-color: #cfcfd4;
}
.pill:has(input:checked) {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.miss {
  color: #c0392b;
  font-size: 13.5px;
  margin: 8px 2px 0;
  display: none;
}
.miss.show {
  display: block;
}

textarea {
  width: 100%;
  min-height: 140px;
  padding: 15px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f1f1f4;
  resize: vertical;
  color: var(--ink);
}
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
button {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1px solid transparent;
  transition: 0.16s;
}
.btn-prev {
  background: #fff;
  border-color: #e3e3e6;
  color: #55555c;
}
.btn-next,
.btn-send {
  background: var(--black);
  color: #fff;
}
.btn-send:disabled {
  opacity: 0.6;
}
.hidden {
  visibility: hidden;
}

/* Photos (2 max, facultatives) */
.photos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 6px;
}
.photo-slot {
  width: calc(50% - 6px);
  min-width: 132px;
}
.photo-add {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f1f1f4;
  border: 1.5px dashed #c7c7ce;
  border-radius: 14px;
  padding: 16px 10px;
  min-height: 104px;
  color: #55555c;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: 0.16s;
}
.photo-add .cam {
  font-size: 26px;
  line-height: 1;
}
.photo-add:hover {
  border-color: var(--black);
  background: #fff;
  color: var(--ink);
}
.photo-add:disabled {
  opacity: 0.55;
  cursor: default;
}
.photo-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d10;
  min-height: 104px;
}
.photo-preview img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  display: block;
}
.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-remove:hover {
  background: rgba(0, 0, 0, 0.82);
}
[dir="rtl"] .photo-remove {
  right: auto;
  left: 6px;
}

.thanks {
  display: none;
  text-align: center;
  padding: 40px 18px 36px;
}
.thanks.show {
  display: block;
  animation: fade 0.4s ease;
}
.thanks .check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.thanks h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 8px;
}
.thanks p {
  color: #6e6e76;
  max-width: 430px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Arabe : droite-à-gauche */
[dir="rtl"] .langbar {
    right: auto;
    left: 10px;
}
[dir="rtl"] .stepinfo {
  letter-spacing: 0;
}
