/* ══════════════════════════════════════════════════════════════════
   Arabic CWD Design A — Car With Driver Booking Form
   Scope: .ar-cwd-card  (AR locale only, does NOT affect EN/TR forms)
   File:  public/css/ar-cwd-design-a.css  v=1
══════════════════════════════════════════════════════════════════ */

/* ── CSS custom properties ── */
.ar-cwd-card {
  --cwd-g:     #f0b429;
  --cwd-gd:    #c8920a;
  --cwd-gx:    #ffd060;
  --cwd-ink:   #0a0a0a;
  --cwd-dark:  #161310;
  --cwd-mid:   #5c5750;
  --cwd-dim:   #9a9590;
  --cwd-sand:  #e8e2d8;
  --cwd-cream: #f4ede0;
  --cwd-ivory: #faf6ef;
  --cwd-r:     12px;
}

/* ── Card shell ── */
.ar-cwd-card {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 0 0 var(--cwd-g) inset,
              0 28px 64px rgba(0,0,0,.20),
              0 6px 16px rgba(0,0,0,.07);
  overflow: hidden;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
}

/* ── Tabs ── */
.ar-cwd-tabs {
  display: flex;
  flex-direction: row-reverse;
  padding: 0 22px;
  border-bottom: 1px solid var(--cwd-sand);
  background: #fff;
  gap: 4px;
}
.ar-cwd-tab {
  display: block;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0;
  transition: color .2s;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
}
.ar-cwd-tab:hover { color: var(--cwd-ink); }
.ar-cwd-tab--active {
  color: var(--cwd-ink);
  border-bottom-color: var(--cwd-g);
}

/* ── Daily / Hourly toggle ── */
.ar-cwd-hire-toggle {
  display: flex;
  flex-direction: row-reverse;
  margin: 18px 22px 0;
  border: 1.5px solid var(--cwd-sand);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}
.ar-cwd-ht-seg { position: relative; }
.ar-cwd-ht-seg input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ar-cwd-ht-seg label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all .2s;
  border-left: 1px solid var(--cwd-sand);
}
.ar-cwd-ht-seg:first-child label { border-left: none; }
.ar-cwd-ht-seg input:checked + label {
  background: var(--cwd-ink);
  color: var(--cwd-g);
  font-weight: 700;
}
.ar-cwd-ht-seg label:hover { color: var(--cwd-ink); }

/* ── Form body ── */
.ar-cwd-body { padding: 14px 22px 0; }

/* ── Main 4-column grid row ── */
.ar-cwd-row-main {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 0.8fr;
  gap: 10px;
  margin-bottom: 12px;
}

/* ── Secondary 2-column grid row ── */
.ar-cwd-row-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

/* ── Field wrapper ── */
.ar-cwd-f {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── Labels ── */
.ar-cwd-lbl {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cwd-dim);
  text-align: right;
  direction: rtl;
  display: block;
}

/* ── Text inputs ── */
.ar-cwd-inp {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cwd-ink);
  background: var(--cwd-ivory);
  border: 1.5px solid var(--cwd-sand);
  border-radius: 10px;
  direction: rtl;
  text-align: right;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: none;
}
.ar-cwd-inp:focus {
  background: #fff;
  border-color: var(--cwd-g);
  box-shadow: 0 0 0 3px rgba(240,180,41,.14);
}
.ar-cwd-inp::placeholder {
  color: #b8b2a8;
  font-size: 13px;
  font-weight: 400;
}
/* LTR for date/time field */
.ar-cwd-inp--ltr {
  direction: ltr !important;
  text-align: left !important;
}

/* ── Select wrapper ── */
.ar-cwd-sel-w { position: relative; }
.ar-cwd-sel-w::after {
  content: '▾';
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cwd-g);
  pointer-events: none;
  font-size: 14px;
}
.ar-cwd-sel {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 28px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cwd-ink);
  background: var(--cwd-ivory);
  border: 1.5px solid var(--cwd-sand);
  border-radius: 10px;
  direction: rtl;
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.ar-cwd-sel:focus {
  background: #fff;
  border-color: var(--cwd-g);
}

/* ── Options row: use type pills + driver language pills ── */
.ar-cwd-opts-row {
  display: flex;
  flex-direction: row-reverse;
  gap: 32px;
  flex-wrap: wrap;
  padding: 12px 0 8px;
  border-top: 1px solid var(--cwd-sand);
}
.ar-cwd-opts-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ar-cwd-opts-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cwd-dim);
  text-align: right;
  direction: rtl;
}
.ar-cwd-pills {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  flex-wrap: wrap;
}
.ar-cwd-pill { position: relative; }
.ar-cwd-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ar-cwd-pill label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--cwd-ivory);
  border: 1.5px solid var(--cwd-sand);
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6a6460;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ar-cwd-pill input:checked + label {
  background: rgba(240,180,41,.12);
  border-color: var(--cwd-g);
  color: var(--cwd-dark);
}
.ar-cwd-pill label:hover {
  border-color: var(--cwd-g);
  color: var(--cwd-gd);
}

/* ── Intercity block ── */
.ar-cwd-intercity-block {
  margin-bottom: 10px;
}
.ar-cwd-intercity-block .ar-cwd-f + .ar-cwd-f {
  margin-top: 8px;
}

/* ── Footer ── */
.ar-cwd-footer {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--cwd-sand);
  margin-top: 8px;
}

/* ── Trust list ── */
.ar-cwd-trust-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  direction: rtl;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ar-cwd-trust-list li {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #6a6460;
}
.ar-cwd-trust-list li .ico {
  color: var(--cwd-g);
  font-size: 12px;
  flex-shrink: 0;
}

/* ── CTA button ── */
.ar-cwd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--cwd-g);
  color: var(--cwd-ink);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 800;
  min-height: 50px;
  padding: 0 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(240,180,41,.38);
  transition: background .2s, transform .15s;
  white-space: nowrap;
  direction: rtl;
  text-decoration: none;
}
.ar-cwd-cta:hover {
  background: var(--cwd-gd);
  transform: translateY(-1px);
  color: var(--cwd-ink);
}
.ar-cwd-cta-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* ── Inline feedback / warnings ── */
.ar-cwd-card .datetime-warning {
  font-size: 11px;
  color: #b45309;
  margin-top: 3px;
  direction: rtl;
  text-align: right;
}
.ar-cwd-card .persons-error {
  font-size: 11px;
  color: #dc2626;
  margin-top: 2px;
  direction: rtl;
  text-align: right;
}
.ar-cwd-card .transfer-notice {
  font-size: 11px;
  direction: rtl;
  text-align: right;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */

/* Tablet: collapse to 2-column */
@media (max-width: 900px) {
  .ar-cwd-row-main {
    grid-template-columns: 1fr 1fr;
  }
  .ar-cwd-row-sec {
    grid-template-columns: 1fr;
  }
}

/* Mobile: fully stacked */
@media (max-width: 560px) {
  .ar-cwd-row-main,
  .ar-cwd-row-sec {
    grid-template-columns: 1fr;
  }
  .ar-cwd-hire-toggle {
    width: 100%;
  }
  .ar-cwd-ht-seg label {
    flex: 1;
    justify-content: center;
  }
  .ar-cwd-body {
    padding: 14px 14px 0;
  }
  .ar-cwd-footer {
    padding: 12px 14px 16px;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .ar-cwd-cta {
    width: 100%;
    justify-content: center;
  }
  .ar-cwd-opts-row {
    flex-direction: column;
    gap: 16px;
  }
  .ar-cwd-tabs {
    padding: 0 14px;
  }
  .ar-cwd-hire-toggle {
    margin: 14px 14px 0;
  }
}
