/* «اطلب مناسبتك» — ورق دافي وشمع، بنفس هوية «أهلنا» الفاتحة */
.hidden { display: none !important; }
html, body { overflow-x: clip; }
body { margin: 0; color: #3a2418; background: radial-gradient(120% 70% at 80% 0%, #fff6ea, #f6ead9 55%, #efe0c9); min-height: 100vh; }
.o-top { display: flex; align-items: center; justify-content: space-between; padding: 14px max(4vw, 16px); }
.o-brand { font-family: var(--script); font-size: 2rem; line-height: 1.2; color: #7a1530; text-decoration: none; }
.o-brand small { font-family: 'Amiri', serif; font-size: .9rem; color: #9a7d62; margin-inline-start: .4rem; }
.o-back { color: #7a1530; text-decoration: none; border: 1px solid rgba(122, 21, 48, .3); border-radius: 999px; padding: .3em 1em; }
.o-main { max-width: 1120px; margin: 0 auto; padding: 10px max(4vw, 16px) 90px; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.o-side { display: grid; gap: 22px; min-width: 0; }
/* المعاينة: موبايل حقيقي جواه الشكل المختار */
.o-prev { position: sticky; top: 16px; }
.o-prev-in { display: grid; justify-items: center; gap: 10px; }
.o-phone { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 18.5; max-height: calc(100vh - 140px); border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2b1418, #0d0506); box-shadow: 0 0 0 2px #4a2a2f, 0 40px 70px -30px rgba(60, 20, 20, .6); }
.o-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #2e0912; display: block; }
.o-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 82px; height: 22px; border-radius: 20px; background: #000; z-index: 2; pointer-events: none; }
.o-prev-cap { margin: 0; color: #7a1530; font-weight: 700; text-align: center; }
.o-prev-acts { display: flex; gap: 8px; }
.o-mini { font: inherit; font-size: .95rem; cursor: pointer; padding: .3em 1em; border-radius: 999px; border: 1px solid rgba(122, 21, 48, .3); background: #fffdf8; color: #7a1530; text-decoration: none; }
.o-prev-x { display: none; }
.o-see { display: none; }
.o-intro h1 { font-family: var(--script); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.3; margin: .2rem 0 .4rem; color: #7a1530; }
.o-lead { font-size: 1.2rem; line-height: 1.9; margin: 0 0 1rem; max-width: 46ch; }
.o-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.o-points li { padding-inline-start: 1.6rem; position: relative; line-height: 1.8; color: #5a4030; }
.o-points li::before { content: '❦'; position: absolute; inset-inline-start: 0; color: #b98a3e; }
.o-points b { color: #3a2418; }

.o-form, .o-done { background: #fffdf8; border: 1px solid #eadcc6; border-radius: 26px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 30px 60px -36px rgba(80, 40, 20, .5); }
.o-form h2, .o-done h2 { font-family: var(--script); font-size: 2rem; line-height: 1.4; margin: 0 0 1rem; color: #7a1530; }
.o-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.o-f { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.o-f > span, .o-f legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.o-f small { font-weight: 400; color: #9a7d62; }
.o-form input, .o-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: inherit; background: #fbf6ee; border: 1px solid #e3d3bb; border-radius: 12px; padding: .7rem .9rem; outline: none; }
.o-form input:focus, .o-form textarea:focus { border-color: #b98a3e; box-shadow: 0 0 0 3px rgba(185, 138, 62, .18); }
#kind-other { margin-top: 10px; }
.o-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.o-chip { font: inherit; cursor: pointer; min-height: 42px; padding: .35em 1.05em; border-radius: 999px; border: 1px solid #e3d3bb; background: #fbf6ee; color: #5a4030; }
.o-chip[aria-pressed="true"] { background: #7a1530; border-color: #7a1530; color: #fff6ec; }
.o-chip:focus-visible, .o-style:focus-visible, .o-send:focus-visible { outline: 3px solid #b98a3e; outline-offset: 2px; }
.o-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.o-style { font: inherit; cursor: pointer; padding: 0; border: 2px solid #e3d3bb; border-radius: 14px; overflow: hidden; background: #fbf6ee; color: #5a4030; text-align: center; }
.o-style i { display: block; aspect-ratio: 4 / 3; background: center / cover; }
.o-style i.any { background: repeating-linear-gradient(135deg, #f3e6d2 0 10px, #fbf6ee 10px 20px); }
.o-style span { display: block; padding: 4px 2px 6px; font-size: .88rem; line-height: 1.3; }
.o-style[aria-pressed="true"] { border-color: #7a1530; box-shadow: 0 0 0 3px rgba(122, 21, 48, .15); }
.o-form .o-trap { position: absolute; width: 1px !important; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.o-send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; border: 0; border-radius: 999px; color: #fff; text-decoration: none; background: linear-gradient(180deg, #2bc767, #1fa855); box-shadow: 0 14px 30px -14px rgba(31, 168, 85, .8); }
.o-send[disabled] { opacity: .6; cursor: wait; }
.o-err { color: #a83a3a; min-height: 1.4em; margin: .6rem 0 0; text-align: center; }
.o-done { text-align: center; }
.o-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e5f3ec; color: #2f7d5b; font-size: 2rem; margin-bottom: .4rem; }
.o-done p { line-height: 1.9; }

@media (max-width: 860px) {
  .o-main { grid-template-columns: 1fr; }
  /* على الموبايل: المعاينة بتفتح ملء الشاشة من زرار «شوف المعاينة» */
  .o-prev { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(30, 8, 12, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 14px; }
  .o-prev.open { display: grid; place-items: center; }
  .o-prev .o-phone { width: auto; height: calc(100dvh - 130px); max-height: none; }
  .o-prev-cap { color: #fbefd6; }
  .o-prev-x { display: grid; place-items: center; position: fixed; top: 12px; inset-inline-end: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fffdf8; color: #7a1530; font-size: 1.1rem; cursor: pointer; z-index: 2; }
  .o-see { display: block; width: 100%; margin-top: 10px; font: inherit; font-weight: 700; cursor: pointer; min-height: 46px; border-radius: 999px; border: 1.5px solid #7a1530; background: #fffdf8; color: #7a1530; }
  .o-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
