/* =========================
   McVitie's – Base Styles
   assets/css/base.css
   ========================= */

:root{
  --brand:#0a358a;
  --gold:#F4C24F;
  --gold2:#FFDE8A;
  --ink:#ffffff;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* Reset */
*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0}
img,video{max-width:100%;display:block}

/* Body & background */
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#001970;
  color:var(--ink);
  overflow:hidden;
}

/* Background video */
.bg{
  position:fixed; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter:brightness(.92);
  z-index:0;
}

/* Fade effect */
.fade{position:fixed; inset:0; z-index:1; background:transparent; opacity:0; transition:opacity .35s ease}
.fade.ready{opacity:1}

/* Main frame */
.frame{
  position:relative; z-index:2;
  min-height:100vh;
  display:grid; place-items:center;
  padding:3vh 3vw;
}

/* Optional card shell */
.card{
  width:min(88vw,1280px);
  background:transparent; border:0; box-shadow:none; padding:0;
}

/* Buttons */
.btn{
  appearance:none; border:0; border-radius:999px;
  padding:12px 22px; font-weight:800; cursor:pointer;
  transition:transform .08s ease;
}
.btn:active{transform:translateY(1px)}
.btn.primary{background:linear-gradient(180deg,var(--gold),var(--gold2)); color:#1b1300; box-shadow:var(--shadow)}
.btn.ghost{background:transparent; border:1px solid rgba(255,255,255,.35); color:#fff}
.actions{display:flex; gap:10px; justify-content:flex-start; margin-top:10px}

/* =========================
   Event Date Dropdown (index)
   ========================= */
.event-container{
  position:absolute; right:32.5%; bottom:22%;
  display:flex; align-items:center; gap:14px; z-index:10;
}
.event-btn{
  background:linear-gradient(180deg,var(--gold),var(--gold2));
  color:#fff; font-weight:800; font-size:20px;
  border:0; border-radius:12px; padding:12px 24px; box-shadow:var(--shadow);
  cursor:pointer; position:relative;
}
.event-btn::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-10px;
  border-width:10px 10px 0 10px; border-style:solid; border-color:var(--gold) transparent transparent transparent;
  filter:drop-shadow(0 3px 2px rgba(0,0,0,.25));
}
.calendar-icon{width:32px; height:32px; filter:brightness(0) invert(1); cursor:pointer; transition:transform .2s ease}
.calendar-icon:hover{transform:scale(1.06)}

.dropdown{
  position:absolute; top:100%; left:0; margin-top:20px;
  width:560px; background:#fff; border-radius:14px; border:3px solid var(--gold);
  box-shadow:var(--shadow); overflow:hidden;
  transform:translateY(-10px) scaleY(0); opacity:0; transform-origin:top center; transition:all .25s ease;
}
.dropdown.active{transform:translateY(0) scaleY(1); opacity:1}
.dropdown::before{content:""; position:absolute; inset:6px; border-radius:10px; border:3px solid rgba(36,78,170,.35); pointer-events:none}
.option{
  display:flex; justify-content:space-between; align-items:center;
  font-weight:900; font-size:18px; color:#001c5a; background:#f7f9ff;
  padding:14px 20px; border-bottom:1px solid rgba(36,78,170,.1); cursor:pointer;
}
.option:last-child{border-bottom:none}
.option:hover{background:#eef3ff}
.option .arrow{color:#0a358a; font-weight:900}

@media(max-width:2200px){ .event-container{right:31%; bottom:20.5%} .dropdown{width:540px} }
@media(max-width:1600px){ .event-container{right:32%; bottom:25%}   .dropdown{width:520px} }

/* =========================
   Form Look (compact, transparent labels)
   ========================= */
.form-grid{display:grid; gap:18px}

.field-row{
  display:grid;
  grid-template-columns:300px 1fr;   /* أصغر من 340px */
  align-items:center; gap:14px;
}
@media (max-width:1100px){ .field-row{grid-template-columns:1fr} .pill-label{text-align:center} }

.pill-label{
  background:transparent; color:#fff;
  border:3px solid var(--gold);
  border-radius:12px;
  font-weight:900; font-size:20px; line-height:1.2;
  padding:14px 18px;
  box-shadow:0 6px 14px rgba(0,0,0,.20);
  text-wrap:balance;
}

.pill-control{
  background:#fff;
  border-radius:12px;
  border:3px solid #d9c4a0;
  box-shadow: inset 0 0 0 2px rgba(36,78,170,.08), 0 8px 18px rgba(0,0,0,.22);
  padding:4px 10px; min-height:56px;
  display:flex; align-items:center;
}

.pill-control input,
.pill-control textarea,
.pill-control select{
  width:100%; background:transparent; border:0; outline:0;
  color:#111; font-size:18px;
}

/* Select arrow */
.select-wrap{position:relative}
.select-wrap select{-webkit-appearance:none; appearance:none; padding-right:34px}
.select-wrap::after{
  content:""; position:absolute; right:14px; top:50%; transform:translateY(-50%);
  border-left:8px solid transparent; border-right:8px solid transparent; border-top:10px solid #c89e32; pointer-events:none;
}
option{font-weight:700}

.form-grid .spacer{height:4px}

/* Utils */
.hidden{display:none!important}
.center{text-align:center}
.w-full{width:100%}
/* === Compact v2 + center lower === */

/* نزّل المحتوى لتحت شوية وخلّي التمركز في النص */
.frame{
  place-items: end center;   /* بدل center فقط */
}

/* خليه أعرض شوية أقل عشان كل حاجة تبان مريحة */
.card{ width: min(76vw, 1100px); }

/* أصغر كمان: أعمدة/مسافات/أحجام */
.form-grid{ gap: 14px; }
.field-row{
  grid-template-columns: 260px 1fr;  /* كان 300px */
  gap: 12px;                          /* كان 14px */
}

/* Label شفاف ببوردر ذهبي أصغر */
.pill-label{
  font-size: 18px;                    /* كان 20px */
  padding: 12px 16px;                 /* كان 14px 18px */
  border-radius: 10px;                /* كان 12px */
  box-shadow: 0 5px 12px rgba(0,0,0,.18);
}

/* Input أصغر ارتفاعاً */
.pill-control{
  min-height: 50px;                   /* كان 56px */
  padding: 4px 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(36,78,170,.07), 0 7px 16px rgba(0,0,0,.2);
}
.pill-control input,
.pill-control select,
.pill-control textarea{
  font-size: 17px;                    /* كان 18px */
}

/* سهم الـselect أصغر */
.select-wrap select{ padding-right: 30px; }
.select-wrap::after{
  right: 12px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #c89e32;
}

/* أزرار أصغر ومُتمركزة */
.actions{
  justify-content: center;            /* في النص */
  gap: 8px; margin-top: 8px;
}
.btn{ padding: 10px 18px; }
/* ===== One-page compact for iPad Air ===== */

/* خلّي التموضع end center وننزل شوية تحت */
.frame{
  min-height: 100vh;
  display: grid;
  place-items: end center;          /* <— end center */
  padding: 0 0 4vh;                 /* نزول لطيف تحت */
}

/* الكارد أضيق عشان كله يدخل من غير سكرول */
.card{ width: min(74vw, 980px); }

/* جريد أصغر وبين الصفوف */
.form-grid{ gap: 10px; }

/* صف الحقل: لابل أرفع + كنترول أضيق */
.field-row{
  grid-template-columns: 220px 1fr; /* كان 260/300 */
  gap: 10px;
}

/* لابل شفاف ومضغوط */
.pill-label{
  font-size: 16px;                  /* كان 18–20 */
  padding: 10px 12px;
  border-radius: 9px;
}

/* الكنترول أصغر ارتفاعًا وخطًا */
.pill-control{
  min-height: 44px;                 /* كان 50–56 */
  padding: 4px 10px;
  border-radius: 9px;
}
.pill-control input,
.pill-control select,
.pill-control textarea{
  font-size: 15.5px;                /* كان 17–18 */
}

/* السهم أصغر */
.select-wrap select{ padding-right: 28px; }
.select-wrap::after{
  right: 10px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #c89e32;
}

/* إيموجيز أصغر وتباعد أقل */
.emoji-scale{ gap: 8px; }
.emoji-btn{
  font-size: 20px;                  /* كان 28 */
  padding: 8px 9px;
  border-width: 2px;                /* تخفيف الحدود */
  border-radius: 10px;
}

/* الأزرار */
.actions{ justify-content:center; gap:8px; margin-top:6px; }
.btn{ padding: 8px 16px; font-size: 15px; }

/* تصغير إضافي عندما الارتفاع أقل من 820 (ضمان اللا-سكرول) */
@media (max-height: 820px){
  .card{ width: min(72vw, 940px); }
  .field-row{ grid-template-columns: 210px 1fr; gap: 8px; }
  .pill-label{ font-size: 15px; padding: 8px 10px; }
  .pill-control{ min-height: 42px; }
  .pill-control input,
  .pill-control select,
  .pill-control textarea{ font-size: 15px; }
  .emoji-btn{ font-size: 19px; padding: 7px 8px; }
}
.end-center{ place-items: end center; padding-bottom: 4vh; }
/* ===== Compact pass v2 (less gaps + smaller controls) ===== */

/* تمركز ونزول بسيط */
.frame{
  place-items: end center;
  padding-bottom: 3.2vh;
}

/* الكارد أضيق شوية */
.card{ width: min(68vw, 900px); }

/* مسافات أقل بين الصفوف */
.form-grid{ gap: 8px; }

/* صف الحقل: لابل أضيق + كنترول أوسع نسبياً */
.field-row{
  grid-template-columns: 200px 1fr;   /* كان 220 */
  gap: 8px;                            /* كان 10 */
}

/* اللابل: أصغر وشفاف أكتر */
.pill-label{
  font-size: 14.8px;                   /* كان ~16 */
  padding: 7px 10px;                   /* كان 10px+ */
  border-radius: 8px;
  background: rgba(0,0,0,0.12);        /* يخفّف لمعان الخلفية */
}

/* الكنترول: ارتفاع أقل */
.pill-control{
  min-height: 38px;                    /* كان 42-44 */
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.22), inset 0 0 18px rgba(255,255,255,.55);
}
.pill-control input,
.pill-control select,
.pill-control textarea{
  font-size: 14.6px;                   /* كان 15.5 */
}

/* سهم الـselect أصغر */
.select-wrap select{ padding-right: 24px; }
.select-wrap::after{
  right: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #c89e32;
}

/* سطر الإيموجيز مضغوط */
.emoji-scale{ gap: 6px; }
.emoji-btn{
  font-size: 17.5px;                   /* كان 19–20 */
  padding: 6px 7px;
  border-width: 2px;
  border-radius: 9px;
}

/* الأزرار */
.actions{ gap: 6px; margin-top: 4px; }
.btn{ padding: 7px 14px; font-size: 14px; border-radius: 999px; }

/* مزيد من الضغط لو ارتفاع الشاشة قليل */
@media (max-height: 820px){
  .card{ width: min(66vw, 860px); }
  .field-row{ grid-template-columns: 270px 1fr; gap: 7px; }
  .pill-label{ font-size: 14.2px; padding: 6px 9px; }
  .pill-control{ min-height: 36px; }
  .pill-control input,
  .pill-control select,
  .pill-control textarea{ font-size: 14.2px; }
  .emoji-btn{ font-size: 17px; padding: 5.5px 6.5px; }
}
/* ==== Final compact layout balanced for iPad Air / 1080p === */

.frame {
  place-items: end center;
  padding-bottom: 3vh;
}

.card {
  width: min(80vw, 880px);
}

.form-grid {
  gap: 6px; /* tighter gaps */
}

.field-row {
  grid-template-columns: 185px 1fr; /* narrower labels */
  gap: 6px;
}

/* labels smaller, thinner borders */
.pill-label {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.1);
  border: 1.8px solid #c89e32;
}

/* input area smaller */
.pill-control {
  min-height: 36px;
  padding: 3px 7px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18),
    inset 0 0 14px rgba(255, 255, 255, 0.5);
}

.pill-control input,
.pill-control select,
.pill-control textarea {
  font-size: 14px;
  line-height: 1.2;
}

/* dropdown arrow smaller */
.select-wrap select {
  padding-right: 22px;
}
.select-wrap::after {
  right: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #c89e32;
}

/* emojis smaller, evenly spaced */
.emoji-scale {
  gap: 5px;
}
.emoji-btn {
  font-size: 16.5px;
  padding: 6px 6px;
  border-radius: 7px;
  border-width: 2px;
}

/* buttons balanced */
.actions {
  gap: 6px;
  margin-top: 5px;
  justify-content: center;
}
.btn {
  padding: 7px 13px;
  font-size: 14px;
  border-radius: 999px;
}

/* low height adjustments */
@media (max-height: 820px) {
  .card {
    width: min(64vw, 850px);
  }
  .field-row {
    grid-template-columns: 175px 1fr;
    gap: 5px;
  }
  .pill-label {
    font-size: 13.5px;
    padding: 5px 7px;
  }
  .pill-control {
    min-height: 34px;
  }
  .pill-control input,
  .pill-control select,
  .pill-control textarea {
    font-size: 13.5px;
  }
  .emoji-btn {
    font-size: 16px;
    padding: 5px 5px;
  }
}
/* ==== Add breathing space between rows ==== */

/* كل صف label + input بينهم مسافة رأسية واضحة */
.field-row {
  margin-bottom: 10px; /* المسافة الرأسية بين كل صف */
}

/* تأكيد أن اللابل والإنبت في صف واحد متوازن */
.field-row {
  display: grid;
  grid-template-columns: 185px 1fr;
  align-items: center;
  gap: 10px;
}

/* تنعيم المسافة بين الحقول بشكل متناسق */
.field-row:last-child {
  margin-bottom: 0; /* يمنع مسافة إضافية تحت آخر صف */
}

/* تحسين الشكل العام في الشاشات الصغيرة */
@media (max-height: 820px) {
  .field-row {
    margin-bottom: 8px;
    grid-template-columns: 175px 1fr;
  }
}
/* ===== FINAL: match screenshot exactly ===== */

/* تمركز الكارت تحت اللوجو شوية */
.frame{ place-items: end center; padding-bottom: 3vh; }

/* عرض الكارد مضبوط */
.card{ width: min(65vw, 900px); }

/* شبكة الفورم: مسافات مظبوطة */
.form-grid{ gap: 10px; }

/* كل صف: لابل عريض + كنترول */
.field-row{
  display:grid;
  grid-template-columns: 230px 1fr;   /* عرض اللابل */
  align-items:center;
  column-gap: 12px;                   /* مسافة بين اللابل والإنبت */
  row-gap: 10px;                      /* مسافة بين الصفوف */
  margin-bottom: 0;                   /* التحكم كله بالـrow-gap */
}

/* اللابل بنفس ستايل الصورة */
.pill-label{
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #CBA243;          /* ذهبي */
  background: rgba(0,0,0,.12);        /* شفاف فوق الخلفية */
  color:#fff;
}

/* الكنترول بنفس الارتفاع والحواف */
.pill-control{
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  background:#fff;
  border: 2px solid #E8D6AA;          /* حدود فاتحة */
  box-shadow:
    0 8px 18px rgba(0,0,0,.18),
    inset 0 0 22px rgba(255,255,255,.55);
}
.pill-control input,
.pill-control select,
.pill-control textarea{
  font-size: 15px;
}

/* السهم الذهبي للـselect */
.select-wrap{ position:relative; }
.select-wrap select{ padding-right: 30px; }
.select-wrap::after{
  content:"";
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  border-left:6px solid transparent; border-right:6px solid transparent;
  border-top:9px solid #CBA243;      /* ذهبي */
  pointer-events:none;
}

/* سطر الإيموجيز داخل نفس الكادر الأبيض */
.emoji-scale{
  display:flex; flex-wrap:wrap; gap:10px;
}
.emoji-btn{
  font-size: 22px;                    /* حجم الإيموجي */
  padding: 8px 10px;
  border-radius: 12px;
  background:#fff;
  border: 3px solid #D9C4A0;          /* نفس الذهبي الفاتح */
  box-shadow: 0 10px 18px rgba(0,0,0,.16);
  cursor:pointer;
}
.emoji-btn.active{
  border-color:#F4C24F;
  box-shadow: 0 0 0 3px rgba(244,194,79,.35), 0 12px 22px rgba(0,0,0,.22);
}

/* الأزرار تحت يمين/وسط حسب الصورة */
.actions{ display:flex; justify-content:center; gap:10px; margin-top:8px; }
.btn{ padding:10px 18px; font-size:15px; border-radius:999px; }

/* ضمان عدم ظهور سكرول على iPad Air */
@media (max-height: 820px){
  .card{ width: min(64vw, 880px); }
  .field-row{ grid-template-columns: 350px 1fr;}
}
/* ==== Adjust label width to allow 2 lines ==== */
.field-row{
  display:grid;
  grid-template-columns: 260px 1fr;   /* زوّدنا العرض شوية */
  align-items:start;                  /* يخلي اللابل يبقى فوق الإنبت */
  column-gap: 16px;
  row-gap: 12px;
  margin-bottom: 4px;
}

/* اللابل يلف النص لو طويل */
.pill-label{
  white-space: normal;  /* يسمح بكسر السطر */
  word-break: break-word;
  line-height: 1.3;
  text-align: left;
}
/* === تعديل حجم الكارت ومساحة اللابل === */

/* الكارت نفسه أوسع شوية */
.card {
  width: min(78vw, 980px);     /* كان 65vw — زودنا العرض */
  max-width: 1000px;
  margin: 0 auto;
}

/* شبكة الصفوف: ندي اللابل مساحة أكبر */
.field-row {
  display: grid;
  grid-template-columns: 300px 1fr;   /* زودنا من 230 → 300px */
  align-items: start;
  column-gap: 18px;
  row-gap: 14px;
  margin-bottom: 6px;
}

/* اللابل بخطين مريحين */
.pill-label {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #CBA243;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

/* الإنبتس مظبوطة ومتناسقة */
.pill-control {
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #E8D6AA;
  box-shadow: 0 8px 18px rgba(0,0,0,.18), inset 0 0 22px rgba(255,255,255,.55);
}

/* ===== EXACT MATCH (labels wide + emojis like ref + no scroll) ===== */

/* نزول بسيط تحت اللوجو وتمركز */
.frame{ place-items:end center; padding-bottom:2.6vh; }

/* الكارت أعرض عشان اللابل يكتب سطرين براحة */
.card{
  width:min(82vw,1080px);   /* كان أضيق */
  max-width:1080px;
  margin:0 auto;
  transform-origin:top center;
}

/* شبكة الحقول */
.form-grid{ gap:12px; }

/* صف الحقل: ندي اللابل عرض كبير */
.field-row{
  display:grid;
  grid-template-columns: 320px 1fr;   /* ← العَرض اللي يخلي النص سطرين */
  align-items:center;
  column-gap:16px;
  row-gap:12px;
}

/* اللابل – نفس ستايل الصورة وبكسر سطر */
.pill-label{
  white-space:normal; word-break:break-word; text-align:left;
  line-height:1.32; font-weight:800; font-size:16px;
  padding:12px 14px; border-radius:12px;
  border:2px solid #CBA243; background:rgba(0,0,0,.12); color:#fff;
}

/* الكنترول */
.pill-control{
  min-height:54px; padding:8px 12px;
  border-radius:12px; background:#fff; border:2px solid #E8D6AA;
  box-shadow:0 10px 20px rgba(0,0,0,.18), inset 0 0 24px rgba(255,255,255,.55);
}
.pill-control input, .pill-control select, .pill-control textarea{
  font-size:16px; line-height:1.25;
}

/* سهم الـselect */
.select-wrap select{ padding-right:34px; }
.select-wrap::after{
  content:""; position:absolute; right:12px; top:50%; transform:translateY(-50%);
  border-left:6px solid transparent; border-right:6px solid transparent; border-top:10px solid #CBA243;
  pointer-events:none;
}

/* صف الإيموجيز جوة الكادر الأبيض – نفس الشكل */
.emoji-scale{ display:flex; gap:12px; flex-wrap:wrap; }
.emoji-btn{
  font-size:28px; padding:10px 12px;
  border-radius:12px; background:#fff; border:3px solid #D9C4A0;
  box-shadow:0 12px 20px rgba(0,0,0,.16); cursor:pointer;
}
.emoji-btn.active{
  border-color:#F4C24F;
  box-shadow:0 0 0 4px rgba(244,194,79,.35), 0 14px 24px rgba(0,0,0,.22);
}

/* الأزرار أوضح ومن غير سكرول */
.actions{ display:flex; justify-content:center; gap:14px; margin-top:12px; }
.btn{ padding:10px 20px; font-size:15.5px; border-radius:999px; }

/* ضمان عدم وجود سكرول على iPad Air — تصغير خفيف لو الارتفاع 820 أو أقل */
@media (max-height: 820px){
  .card{ transform:scale(.94); }             /* تصغير بسيط بدون تغيير النِسَب */
  .form-grid{ gap:10px; }
  .field-row{ grid-template-columns: 320px 1fr; column-gap:14px; row-gap:10px; }
  .pill-control{ min-height:50px; }
  .emoji-btn{ font-size:26px; padding:9px 11px; }
}

/* ===== Adjust vertical position for Step 1 & Step 2 ===== */

/* يرفع المحتوى الأساسي للفورم فوق شوية */
.frame {
  place-items: center;         /* وسط أفقياً */
  align-content: start;        /* يرفع المحتوى لأعلى */
  padding-top: 30vh;            /* المسافة من فوق */
  padding-bottom: 5vh;         /* خفّف المسافة من تحت */
}

/* تأكد أن الكارت نفسه ثابت في المنتصف */
.card {
  margin-top: 0;
  transform: translateY(-20px); /* يرفعه 20px زيادة */
}

/* في الشاشات الصغيرة (زي iPad Air) نزود شوية */
@media (max-height: 820px) {
  .frame {
    padding-top: 35vh !important;
  }
  .card {
    transform: translateY(-50px) !important;
  }
}
/* ===== shrink steps by 30% without breaking layout or causing scroll ===== */

/* الكارت نفسه يفضل طبيعي والاختيارات (القوايم) متتقصّش */
.card{ overflow: visible; }

/* صغّر محتوى الفورم كله: نصوص + حقول + أزرار + إيموجيز */
.form-grid{
  /* 0.70 = تصغير 30% */
  --step-scale: 0.80 !important;
  transform: scale(var(--step-scale));

  /* تعويض العرض عشان يفضل التمركز مضبوط ومايحصلش تفاف */
  /* خلّي أي قوائم/دروبدوان تطلع برا من غير قص */
  overflow: visible;
}

/* خلّي الستيب تظهر كلها من غير Scroll */
.step{
  max-height: 86vh;      /* مساحة آمنة تحت */
  min-height: auto !important;
  overflow: hidden;      /* مفيش سكرول داخل الستيب */
}

/* نضمن إن الفريم مركّز المحتوى ومانمنعش الأوبشن بانل */
.frame{
  display:flex; align-items:center; justify-content:center;
  height:100vh; padding:0; overflow:hidden;
}

/* تصغير إضافي بسيط في البادينج عشان الشكل يبقى “ماسِك نفسه” */
.pill-label{ padding:10px 12px; font-size:14px; line-height:1.25; }
.pill-control{ min-height:48px; padding:6px 10px; }
.pill-control input, .pill-control select, .pill-control textarea{ font-size:14px; }
.emoji-btn{ font-size:24px; padding:8px 10px; }
.actions .btn{ padding:9px 18px; font-size:14px; }

/* لو ارتفاع الشاشة صغير قوي نزود التصغير سنة بسيطة */
@media (max-height: 820px){
  .form-grid{ --step-scale: 0.68; }
  .step{ max-height: 84vh; }
}
