/* HerRide Courses — uses the SAME service shell/components as Orders/Airport.
   This file only supplies course-specific hero/card presentation. */
.courses-page{font-family:Cairo,system-ui,sans-serif}

/* Desktop: Arabic = copy RIGHT / approved poster LEFT. English = copy LEFT / poster RIGHT.
   Natural grid placement follows document direction, so do not manually flip columns. */
.courses-hero{
  max-width:1380px!important;
  min-height:auto!important;
  margin:0 auto!important;
  padding:48px 5% 54px!important;
  display:grid!important;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
  gap:46px!important;
  align-items:center!important;
}
.courses-hero .hero-copy{
  grid-column:auto!important;
  grid-row:auto!important;
  text-align:right!important;
  align-items:flex-start!important;
  margin:0!important;
  width:100%!important;
}
html[dir="ltr"] .courses-hero .hero-copy{text-align:left!important;align-items:flex-start!important}
.courses-hero .courses-hero-visual{
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:3/2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  border-radius:30px!important;
  background:radial-gradient(circle at 50% 50%,rgba(217,79,147,.10),transparent 72%)!important;
}
.courses-hero-visual img{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:30px!important;
  padding:0!important;
  margin:0!important;
  filter:none!important;
  animation:none!important;
  box-shadow:0 24px 55px rgba(80,21,58,.18)!important;
}
.courses-hero-visual .halo{display:none!important}
.courses-hero .reem-intro-card{bottom:18px!important;right:18px!important}
html[dir="ltr"] .courses-hero .reem-intro-card{right:auto!important;left:18px!important}

/* Six compact dark cards. Button is the service label itself. */
.courses-options{padding-top:66px!important}
.course-card-grid{max-width:1180px;margin:28px auto 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.course-card{position:relative;overflow:hidden;border-radius:25px;background:linear-gradient(150deg,#170a13,#3b102b 62%,#25101f);border:1px solid rgba(255,255,255,.13);box-shadow:0 22px 55px rgba(47,10,34,.22);padding:10px;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.course-card::after{content:"";position:absolute;inset:-45% -20% auto auto;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(255,63,164,.24),transparent 68%);pointer-events:none}
.course-card:hover{transform:translateY(-6px);box-shadow:0 30px 72px rgba(73,17,51,.30);border-color:rgba(255,113,187,.32)}
.course-card img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:18px;display:block}
.course-book{position:relative;z-index:2;width:100%;min-height:48px;margin-top:9px;border:0;border-radius:15px;background:linear-gradient(135deg,#b52d70,#ef4f99);color:#fff;font:800 14px Cairo,system-ui;cursor:pointer;box-shadow:0 10px 24px rgba(217,79,147,.25);transition:transform .2s ease,filter .2s ease}
.course-book:hover{transform:translateY(-2px);filter:brightness(1.07)}

/* Course-only form controls; chat frame/avatar sizing comes from the original Orders service CSS. */
.courses-page .choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.courses-page .choice{width:100%;min-height:48px;border:1px solid rgba(217,79,147,.24);background:#fff3f8;border-radius:16px;padding:11px 12px;font-weight:800;color:#51253f;cursor:pointer}
.courses-page .choice.primary-choice{background:linear-gradient(135deg,#b72d70,#ef4f99);color:#fff;border:0}
.courses-page .location-summary{padding:10px 12px;border-radius:14px;background:#fff4f8;margin:8px 0;font-size:13px}
.courses-page .final-price{font-size:30px;font-weight:900;color:#c72d80;display:block;margin:8px 0}
.courses-page .day-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
.courses-page .day-grid .choice.selected{background:#5e1747;color:white}
.courses-page .mini-field{display:grid;gap:8px;width:100%}
.courses-page .mini-field input,.courses-page .mini-field textarea{width:100%;min-height:48px;border:1px solid #e5ccda;border-radius:15px;padding:12px 14px;font:600 16px Cairo;background:#fff}
.courses-page .back-tool[hidden]{display:none!important}

/* Keep Lina fully inside the ORIGINAL chat media slot — no crop, no custom oversized panel. */
.courses-page #chatSection .reem-stage #nourAvatar{object-fit:contain!important;object-position:center center!important;padding:0!important;margin:0!important}

@media(max-width:900px){
  .courses-hero{display:flex!important;flex-direction:column-reverse!important;max-width:850px!important;padding:30px 5% 48px!important;gap:24px!important}
  .courses-hero .hero-copy,.courses-hero .courses-hero-visual{width:100%!important}
  .courses-hero .hero-copy{text-align:right!important;align-items:flex-start!important}
  html[dir="ltr"] .courses-hero .hero-copy{text-align:left!important;align-items:flex-start!important}
  .courses-hero .courses-hero-visual{aspect-ratio:3/2!important;min-height:0!important}
  .course-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media(max-width:560px){
  .courses-hero{padding:24px 14px 36px!important;gap:18px!important}
  .courses-hero .courses-hero-visual{border-radius:20px!important}
  .courses-hero-visual img{border-radius:20px!important}
  .courses-hero .reem-intro-card{right:9px!important;left:auto!important;bottom:9px!important;transform:scale(.88);transform-origin:bottom right}
  html[dir="ltr"] .courses-hero .reem-intro-card{left:9px!important;right:auto!important;transform-origin:bottom left}
  .course-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 2px}
  .course-card{border-radius:18px;padding:7px}
  .course-card img{border-radius:13px;aspect-ratio:1/1}
  .course-book{min-height:42px;border-radius:12px;font-size:11.5px;padding:7px 4px;margin-top:7px}
  .courses-options{padding-left:13px!important;padding-right:13px!important}
  .courses-page .day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@keyframes courseCardIn{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.course-card{animation:courseCardIn .55s ease both}
.course-card:nth-child(2){animation-delay:.05s}.course-card:nth-child(3){animation-delay:.10s}.course-card:nth-child(4){animation-delay:.15s}.course-card:nth-child(5){animation-delay:.20s}.course-card:nth-child(6){animation-delay:.25s}
@media(prefers-reduced-motion:reduce){.course-card{animation:none!important;transition:none!important}}
.courses-policy-card{width:100%;text-align:start}
.courses-policy-list{margin:0;padding-inline-start:20px;display:grid;gap:8px;color:#5e3650;font-size:.88rem;line-height:1.72}
.courses-master-consent{margin-top:4px!important}
.courses-not-confirmed{display:block;color:#714159;line-height:1.65;font-weight:750}
.courses-wa-status{display:grid;gap:6px;margin-top:12px;padding:14px 16px;border-radius:16px;background:linear-gradient(145deg,#fff7fb,#fff);border:1px solid rgba(217,79,147,.18)}
.courses-wa-status b{color:#5d1947}
.courses-wa-status span{color:#6f4b5e;line-height:1.65}
.hr-courses-terms .whatsapp-final-btn{width:100%;min-height:52px}
/* V7: service choices must read as clear tappable controls */
.courses-page #answerArea .choice-grid .choice{background:linear-gradient(180deg,#fff,#fff2f8);border:1.5px solid rgba(199,45,128,.38);box-shadow:0 7px 18px rgba(90,25,65,.08);color:#4b1837;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.courses-page #answerArea .choice-grid .choice:hover,.courses-page #answerArea .choice-grid .choice:focus-visible{transform:translateY(-2px);border-color:#c72d80;box-shadow:0 10px 24px rgba(199,45,128,.16);outline:none}
.courses-page #answerArea .choice-grid .choice:active{transform:scale(.985);background:#fde6f1}

.courses-request-id-box{display:grid;grid-template-columns:auto 1fr auto;gap:8px 12px;align-items:center;margin:0 0 16px;padding:14px 16px;border-radius:18px;background:linear-gradient(145deg,#170a13,#3b102b);color:#fff;box-shadow:0 16px 36px rgba(47,10,34,.18)}
.courses-request-id-box strong{font:800 18px/1.2 Poppins,sans-serif;letter-spacing:.5px}
.courses-request-id-box small{grid-column:1/-1;opacity:.82}
.courses-copy-id{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff;border-radius:12px;padding:8px 10px;font-weight:800;cursor:pointer}
#persistentInput[inputmode="tel"]{direction:ltr;text-align:left}
@media(max-width:560px){.courses-request-id-box{grid-template-columns:1fr auto}.courses-request-id-box>span{grid-column:1/-1}}

.courses-schedule-builder{display:grid;gap:12px;width:100%;margin-top:10px}
.courses-same-time{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:#f7edf3;font-weight:800}
.courses-same-time input{width:20px;height:20px;accent-color:#c83b83}
.courses-schedule-rows{display:grid;gap:9px}
.courses-schedule-row{display:grid;grid-template-columns:minmax(88px,.8fr) 1fr 1fr;gap:8px;align-items:center;padding:10px;border:1px solid #ead3df;border-radius:14px;background:#fff}
.courses-time-chip{min-height:42px;border:1px solid #e5c5d6;background:#fff5fa;color:#391127;border-radius:12px;padding:8px 10px;font-weight:800}
.courses-common-time-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:560px){.courses-schedule-row{grid-template-columns:1fr}.courses-common-time-row{grid-template-columns:1fr}}
