/* Business and sign-up pages in the direction A look (6 Oct 2026, Mohamed: "yes do all of them"). Loaded after home-a.css,
   blog-a.css and pages-a.css on: For Sharm businesses, the business application and thank-you page, the business directory
   and business pages, and the shared shell of the driver, property-owner and refund pages (public/drivers/layout).
   Tokens only (home-a.css :root). */

/* ---------- shared ---------- */
.h1-2 { color: #7FE3DE; } /* second part of a split title, as on the booking pages */
.b-hero .hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.b-hero .hero-facts { margin-top: 22px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pd-tier { text-transform: capitalize; }
/* a long eyebrow wraps beside its dot instead of dropping below it */
.eyebrow:has(> .eb-t) { align-items: baseline; flex-wrap: nowrap; }
.eyebrow .eb-t { flex: 1 1 auto; min-width: 0; }

/* ---------- sign-up pages: photo hero, what you need, how it works ---------- */
.jn-hero .b-hero-in { padding-block: 96px 88px; }
.jn-hero .b-hero-media img { object-position: center 62%; }
.jn-hero.jn-homes .b-hero-media img { object-position: center 48%; }
.jn-hero h1 { max-width: 13em; }
:lang(ar) .jn-steps > li::before { content: counter(pgstep, arabic-indic); }

/* ---------- sign-up forms (the page script reads [data-field], .err, .has-err, .alert.show, .pick, .ph, .rm) ---------- */
.jn-form { max-width: 820px; margin-inline: auto; padding: 36px 40px 32px; }
.jn-form > h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.jn-form .alert { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #FDECEA; border: 1px solid #F5C2BC; color: #8A1C12; font-size: 15px; font-weight: 700; }
.jn-form .alert.show { display: block; }
.jn-form .fs { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.jn-form .fs-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.jn-form .fs-title .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 800; flex: none; }
.jn-form .pg-fgrid { margin-top: 0; }
.jn-form .pg-fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jn-form .mt, .jn-form fieldset.field.mt { margin-top: 18px; }
.jn-form fieldset.field { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.jn-form fieldset.field > legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--label); }
[dir=rtl] .jn-form fieldset.field > legend { float: right; }
.jn-form fieldset.field > legend + * { clear: both; }
.jn-form fieldset.field > .hint, .jn-form fieldset.field > .err { margin-top: 6px; }
.jn-form .field > .label { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--label); }
.jn-form .field > .hint + .ph-grid { margin-top: 6px; }
.jn-form .req { color: var(--danger); }
.jn-form .opt { font-weight: 600; color: var(--muted); }
.jn-form .err { display: none; }
.jn-form .has-err .err { display: block; }
.jn-form .has-err .ctl, .jn-form .has-err .pick, .jn-form .has-err .choice { border-color: var(--danger); }
.jn-form .ctl.en-text { font-family: 'Manrope', system-ui, sans-serif; }
[dir=rtl] .jn-form textarea.ctl[dir=ltr] { text-align: left; }
.jn-form textarea.ctl { min-height: 132px; line-height: 1.55; }

/* radio and tick boxes as chips */
.jn-form .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-form .choices.stack { flex-direction: column; align-items: stretch; }
.jn-form .choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--ctl-r); background: #fff; color: var(--text); font-size: 15.5px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.jn-form .choice:hover { border-color: var(--navy); }
.jn-form .choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex: none; }
.jn-form .choice input:focus-visible { outline: none; }
.jn-form .choice:has(input:checked) { border-color: var(--navy); background: var(--mist); box-shadow: inset 0 0 0 1px var(--navy); }
.jn-form .choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* photo picker and thumbnails (thumbnails are made by the page script) */
.jn-form .ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jn-form .slot { display: grid; }
.jn-form .slot .pick, .jn-form .slot .ph { aspect-ratio: 8 / 5; }
.jn-form .pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; padding: 12px; border: 1.5px dashed var(--blue); border-radius: 12px; background: var(--mist); color: var(--blue); font-size: 14.5px; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; }
.jn-form .pick:hover { border-style: solid; }
.jn-form .pick:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.jn-form .pick .ico { width: 28px; height: 28px; }
.jn-form .pick small { font-size: 13px; font-weight: 600; color: var(--muted); }
.jn-form .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.jn-form .ph img { width: 100%; height: 100%; object-fit: cover; }
.jn-form .ph .rm { position: absolute; top: 8px; inset-inline-end: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(2,31,69,.82); color: #fff; font-size: 13px; font-weight: 700; }
.jn-form .ph .rm:hover { background: var(--navy); }
.jn-form .ph .rm:focus-visible { outline-color: #FFB45C; }
.jn-form .ph.busy::after { content: attr(data-busy); position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; color: var(--text-2); font-size: 13px; font-weight: 700; background: linear-gradient(90deg, var(--mist), #fff, var(--mist)); background-size: 200% 100%; animation: jn-wait 1.2s linear infinite; }
@keyframes jn-wait { to { background-position: -200% 0; } }

/* the promise, the button, the privacy line */
.jn-form .field > label.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; line-height: 1.55; color: var(--text); cursor: pointer; }
.jn-form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.jn-form .submit-row { margin-top: 24px; }
.jn-form .submit-row .btn { min-width: 260px; height: 54px; font-size: 17px; }
.jn-form .submit-row .btn[disabled] { opacity: .75; cursor: progress; }
.jn-form .privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.jn-form .privacy .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--teal); }

/* thank-you pages and the refund policy */
.jn-done .pg-done > p { max-width: 34em; margin-inline: auto; }
/* an email address moves to the next line as one piece instead of splitting at a hyphen */
.pg-done bdi { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.jn-policy { padding-bottom: 88px; }
.jn-card-p { margin-top: 8px; color: var(--light); font-size: 15.5px; }
.jn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14.5px; color: var(--muted); }
.jn-meta a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

/* ---------- For Sharm businesses ---------- */
.pp-hero h1 { max-width: 13em; }
.pp-lists .pg-card { padding: 28px; gap: 14px; }
.pp-lists .pg-ticks li > span { min-width: 0; }
.pp-lists .pg-ticks strong { color: var(--navy); font-weight: 800; }
.pp-cta .pp-wa { margin-top: 18px; font-size: 16px; }
.pp-cta .pp-wa a { color: #fff; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- business application ---------- */
.pa-sec { padding-top: 56px; }
.pa-errors { margin-bottom: 20px; }
.pa-form { padding: 32px; }
.pa-form .pg-fgrid { margin-top: 0; }
.pa-form .req { color: var(--danger); }
.pa-form .opt { font-weight: 600; color: var(--muted); }
.pa-agree { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); line-height: 1.55; cursor: pointer; }
.pa-submit { width: 100%; height: 56px; margin-top: 22px; font-size: 17px; }
.pa-foot { text-align: center; }
.pa-side { gap: 12px; }
.pa-side-h { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--navy); }
.pa-steps { grid-template-columns: 1fr; gap: 12px; }
.pa-steps > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px; }
.pa-steps > li::before { grid-row: 1 / span 2; margin-bottom: 0; }
.pa-steps h3 { font-size: 17px; margin-bottom: 2px; }
.pa-steps p { font-size: 15px; }

/* ---------- business directory ---------- */
.pd-hero h1 { font-size: clamp(38px, 4.6vw, 66px); max-width: 13em; }
.pd-hero:not(.pd-hero-lift) .b-hero-in { padding-bottom: 96px; }
.pd-lift { position: relative; margin-top: -104px; padding-bottom: 88px; }
.pd-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pd-empty, .pd-join { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px 40px; border-radius: var(--card-r); }
.pd-empty { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(2,31,69,.45), 0 2px 8px rgba(2,31,69,.08); }
.pd-empty .pg-ico { margin-bottom: 4px; }
.pd-empty h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.pd-empty p { color: var(--text-2); font-size: 16.5px; max-width: 34em; }
.pd-empty .link-btn { margin-top: auto; padding-top: 10px; }
.pd-join { justify-content: center; background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -28px rgba(2,31,69,.45); }
.pd-join h2 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.pd-join p { color: var(--light); font-size: 16px; }
.pd-join .btn { margin-top: 8px; }
.pd-join :focus-visible { outline-color: #FFB45C; }
.pd-join-wide { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 48px; }
.pd-join-wide > div { display: grid; gap: 6px; }
.pd-join-wide .btn { margin-top: 0; }

/* ---------- one business ---------- */
.pd-main { padding-bottom: 88px; }
.pd-buy .pg-h3 { margin-bottom: 2px; }
.pd-addr { padding-top: 14px; border-top: 1px solid var(--line); }
.pd-addr .from { font-size: 14px; font-weight: 700; color: var(--muted); }
.pd-addr p + p { margin-top: 2px; color: var(--text); }
.pd-gallery { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--mist); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1023px) {
  .pd-row { grid-template-columns: 1fr; }
  .pa-side-h { font-size: 19px; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .pa-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pa-steps > li { display: block; }
  .pa-steps > li::before { margin-bottom: 12px; }
}
@media (max-width: 699px) {
  /* long translated labels (Russian, German) wrap inside the button instead of running past the screen edge */
  .hero-acts .btn, .cta-btns .btn, .pg-acts .btn, .pd-join .btn, .pd-buy .btn { white-space: normal; height: auto; min-height: 50px; padding-block: 12px; line-height: 1.3; text-align: center; }
  .jn-hero .b-hero-in { padding-block: 48px 56px; }
  .b-hero .hero-acts .btn { flex: 1 1 100%; }
  .pg-done .pg-acts .btn { flex: 1 1 100%; }
  .jn-form { padding: 22px 16px 20px; }
  .jn-form .fs { margin-top: 24px; padding-top: 22px; }
  .jn-form .fs-title { font-size: 18px; }
  .jn-form .pg-fgrid.three { grid-template-columns: 1fr; }
  .jn-form .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jn-form .submit-row .btn { width: 100%; min-width: 0; }
  .pp-lists .pg-card { padding: 22px 20px; }
  .pa-sec { padding-top: 28px; }
  .pa-form { padding: 20px 16px; }
  .pd-hero:not(.pd-hero-lift) .b-hero-in { padding-bottom: 56px; }
  .pd-lift { margin-top: -72px; padding-bottom: 56px; }
  .pd-empty, .pd-join { padding: 24px 20px; }
  .pd-join-wide .btn { flex: 1 1 100%; }
  .pd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pd-main { padding-bottom: 56px; }
  .jn-policy { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .jn-form .ph.busy::after { animation: none; } }
