/* Guest "Find your table" app, from the "Find Your Table App" design.
   Full screen on phones; a phone-sized card centred on larger screens. */
.fa-page {
  --ft-accent: #7A2E3A;
  --fa-deep: #5E2330;
  --fa-ink: #2B2A26;
  --fa-ink-2: #5E594F;
  --fa-ink-3: #9A9384;
  --fa-surface: #FAF6EF;
  --fa-raised: #FFFDF9;
  --fa-field: #F0E9DD;
  --fa-wash: #F3ECE0;
  --fa-line: #E2D9C8;
  --fa-line-strong: #C9BBA3;
  --fa-blush: #F0E4D6;
  --fa-sans: 'DM Sans', 'IBM Plex Sans Arabic', sans-serif;
  --fa-serif: 'Cormorant Garamond', 'Amiri', serif;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: #E6DDCE;
  color: var(--fa-ink);
  font-family: var(--fa-sans);
  -webkit-font-smoothing: antialiased;
}

.fa-page *, .fa-page *::before, .fa-page *::after { box-sizing: border-box; }

.fa-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fa-surface);
}
.fa-app[data-screen="lang"] { background: var(--fa-deep); }

@media (min-width: 520px) {
  .fa-page { padding: 32px 16px; }
  .fa-app {
    width: 402px;
    min-height: 0;
    height: min(874px, calc(100vh - 64px));
    border-radius: 40px;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
    scrollbar-width: none;
  }
  .fa-app::-webkit-scrollbar { display: none; }
}

.fa-arabic { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.fa-amp { font-style: italic; }
.fa-muted { font-size: 13px; color: var(--fa-ink-3); }
.fa-stack-10 { display: flex; flex-direction: column; gap: 10px; }
.fa-stack-12 { display: flex; flex-direction: column; gap: 12px; }

/* Buttons */
.fa-btn {
  width: 100%;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 16px;
  font: 600 17px var(--fa-sans);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease;
}
.fa-btn:active, .fa-group:active, .fa-result:active { transform: scale(0.98); }
.fa-btn--light { background: var(--fa-surface); color: var(--fa-deep); }
.fa-btn--ghost-light { background: transparent; border-color: rgba(250, 246, 239, 0.6); color: var(--fa-surface); font-size: 19px; }
.fa-btn--dark { background: var(--fa-ink); color: var(--fa-surface); }
.fa-btn--dark:hover { background: var(--fa-deep); }
.fa-page button:focus-visible, .fa-search__input:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 2px; }
.fa-app[data-screen="lang"] button:focus-visible { outline-color: var(--fa-surface); }

/* Language screen */
.fa-lang {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 72px) 28px calc(env(safe-area-inset-bottom, 0px) + 40px);
  color: var(--fa-surface);
}
.fa-lang__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-bottom: 32px; text-align: center; }
.fa-monogram {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border: 1px solid rgba(250, 246, 239, 0.5);
  border-radius: 50%;
  font: italic 28px 'Cormorant Garamond', serif;
}
.fa-lang__names { margin: 8px 0 0; font: 400 52px/1.05 'Cormorant Garamond', serif; }
.fa-lang__names-ar { font: 32px/1.2 'Amiri', serif; }
.fa-lang__rule { width: 40px; height: 1px; margin-top: 8px; background: rgba(250, 246, 239, 0.5); }
.fa-lang__prompt { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #F0E4D6; }

/* Top bar */
.fa-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 8px;
  background: var(--fa-surface);
}
@media (min-width: 520px) { .fa-bar { padding-top: 28px; } }
.fa-icon-btn, .fa-lang-btn {
  height: 44px;
  border: 1px solid var(--fa-line);
  background: var(--fa-raised);
  cursor: pointer;
}
.fa-icon-btn { width: 44px; border-radius: 50%; font-size: 18px; color: var(--fa-ink); }
.fa-lang-btn { min-width: 44px; padding: 0 14px; border-radius: 22px; font: 600 14px var(--fa-sans); color: var(--fa-deep); }
.fa-steps { display: flex; gap: 6px; }
.fa-step { width: 6px; height: 6px; border-radius: 3px; background: var(--fa-line); transition: width 0.2s ease, background-color 0.2s ease; }
.fa-step[data-done="true"] { background: var(--ft-accent); }
.fa-step[data-current="true"] { width: 22px; }

/* Screens */
.fa-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 40px);
}
.fa-screen--search { gap: 18px; }
.fa-heading { display: flex; flex-direction: column; gap: 6px; }
.fa-step-label { font-size: 13px; font-weight: 500; color: var(--ft-accent); }
.fa-title { margin: 0; font: 500 38px/1.15 var(--fa-serif); }
.fa-kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #E9CFC0; }
.fa-app[dir="rtl"] .fa-kicker, .fa-app[dir="rtl"] .fa-fact__label { letter-spacing: 0; }
.fa-lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fa-ink-2); text-align: center; text-wrap: pretty; }
.fa-section-label { font-size: 13px; font-weight: 600; color: var(--fa-ink-2); }

/* Welcome */
.fa-hero-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 380px;
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--fa-deep);
  color: var(--fa-surface);
}
.fa-hero-card__names { margin: 0; font: 400 54px/1.05 var(--fa-serif); }
.fa-hero-card__rule { height: 1px; background: rgba(250, 246, 239, 0.3); }
.fa-hero-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; line-height: 1.45; }
.fa-fact { display: flex; flex-direction: column; gap: 2px; }
.fa-fact__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #E9CFC0; }

/* Group */
.fa-group {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--fa-line);
  border-radius: 20px;
  background: var(--fa-raised);
  color: var(--fa-ink);
  font-family: var(--fa-sans);
  text-align: start;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.fa-group:hover, .fa-group:active { border-color: var(--ft-accent); }
.fa-group__mark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  color: var(--fa-deep);
  font: 600 26px var(--fa-serif);
}
.fa-group__text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.fa-group__label { font-size: 17px; font-weight: 600; }
.fa-group__sub { font-size: 13px; color: var(--fa-ink-2); }
.fa-chev { font-size: 18px; color: var(--fa-ink-3); }

/* Search */
.fa-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--fa-field);
}
.fa-search:focus-within { border-color: var(--ft-accent); }
.fa-search__icon { font-size: 17px; color: var(--fa-ink-3); }
.fa-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--fa-ink);
  font: 17px var(--fa-sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.fa-search__input::placeholder { color: var(--fa-ink-3); }
.fa-search__input::-webkit-search-cancel-button { display: none; }
.fa-search__input:focus-visible { outline: none; }
.fa-search__clear {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: var(--fa-line-strong);
  color: var(--fa-surface);
  font-size: 14px;
  cursor: pointer;
}
.fa-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; font-size: 15px; color: var(--fa-ink-2); }
.fa-empty {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 16px;
  border: 1px dashed var(--fa-line-strong);
  border-radius: 20px;
  background: var(--fa-raised);
  text-align: center;
}
.fa-empty__title { font-size: 16px; font-weight: 600; }
.fa-empty__body { font-size: 14px; line-height: 1.6; color: var(--fa-ink-2); }
.fa-pill-btn {
  align-self: center;
  height: 44px;
  margin-top: 6px;
  padding: 0 18px;
  border: 1px solid var(--ft-accent);
  border-radius: 22px;
  background: transparent;
  color: var(--ft-accent);
  font: 600 14px var(--fa-sans);
  cursor: pointer;
}
.fa-results {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fa-line);
  border-radius: 20px;
  background: var(--fa-raised);
  transition: opacity 0.15s ease;
}
.fa-results[data-stale="true"] { opacity: 0.55; }
.fa-result {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: var(--fa-ink);
  font-family: var(--fa-sans);
  text-align: start;
  cursor: pointer;
}
.fa-result + .fa-result { border-top: 1px solid #EDE5D8; }
.fa-result:hover, .fa-result:active { background: var(--fa-wash); }
.fa-avatar {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--fa-blush);
  color: var(--fa-deep);
  font-size: 15px;
  font-weight: 600;
}
.fa-result__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fa-result__name { font-size: 16px; font-weight: 500; }
.fa-result__phone { font-size: 13px; letter-spacing: 0.04em; color: var(--fa-ink-3); text-align: start; }

/* Result */
.fa-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px;
  border-radius: 28px;
  background: var(--fa-deep);
  color: var(--fa-surface);
  text-align: center;
}
.fa-result-card__lead { font-size: 15px; color: var(--fa-blush); }
.fa-result-card__number { margin-top: 6px; font: 500 120px/1 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; }
.fa-result-card__title { margin: 8px 0 0; font: 500 30px/1.2 var(--fa-serif); }
.fa-result-card__body { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--fa-blush); }

.fa-map { padding: 8px; border: 1px solid var(--fa-line); border-radius: 20px; background: var(--fa-raised); }
.fa-map .wedding-hall { height: auto; }
.fa-map .hall-table { cursor: default; }
.fa-map .hall-table:hover .hall-table__body { transform: none; }
.fa-map .hall-table[data-selected="true"] .hall-table__top { fill: var(--ft-accent); stroke: var(--ft-accent); }
.fa-map .hall-table[data-selected="true"] .hall-table__number { fill: var(--fa-surface); }
.fa-map .hall-table[data-selected="true"] .hall-table__body { transform: scale(1.12); }

.fa-mates {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--fa-line);
  border-radius: 20px;
  background: var(--fa-raised);
}
.fa-mate { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; }
.fa-mate + .fa-mate { border-top: 1px solid #EDE5D8; }
.fa-mate__name { font-size: 15px; font-weight: 500; }
.fa-avatar--sm { width: 36px; height: 36px; font-size: 13px; }

@media (max-width: 360px) {
  .fa-lang__names { font-size: 44px; }
  .fa-hero-card__names { font-size: 46px; }
  .fa-result-card__number { font-size: 100px; }
}
