:root{
  --crs-navy:#131f28;
  --crs-sea:#486068;
  --crs-muted:#6e8086;
  --crs-soft:#f5f7f7;
  --crs-line:#e4e9eb;
  --crs-beige:#b3907f;
  --crs-ok:#2f8a55;
  --crs-danger:#d9534f;
  --crs-white:#fff;

  --crs-accent:#1f7a8c;
  --crs-accent-2:#143642;
  --crs-shadow:0 18px 55px rgba(19,31,40,.08);
}

.crs-booking{
    direction: rtl;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    max-width: 1180px;
    margin: 34px auto;
    padding: 24px;
    font-family: iransans,inherit;
    color: var(--crs-navy);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 0;
    width: 100%;
}

.crs-booking,
.crs-booking *{box-sizing:border-box}

.crs-main,.crs-summary{
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--crs-line);
    border-radius: 13px;
    box-shadow: 0 10px 10px rgba(19, 31, 40, .06);
}
.crs-main{padding:18px;min-height:640px}
.crs-summary{padding:24px;align-self:start;position:sticky;top:32px}

.crs-hero{
  padding:28px;
  border-radius:22px;
  background:
    radial-gradient(circle at 12% 20%,rgba(179,144,127,.22),transparent 34%),
    linear-gradient(135deg,var(--crs-navy),#253743 68%,var(--crs-sea));
  color:#fff;
  margin-bottom:20px;
  overflow:hidden;
  position:relative;
}
.crs-hero:after{
  content:"";
  position:absolute;
  left:-50px;
  bottom:-70px;
  width:210px;height:210px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
}
.crs-hero span{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:13px;
  font-weight:650;
}
.crs-hero h2{margin:14px 0 8px;font-size:30px;line-height:1.4;font-weight:800}
.crs-hero p{margin:0;opacity:.86;line-height:1.9;font-weight:450}

.crs-stepper{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:20px 0 26px;
}
.crs-stepper span{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 10px;
  border:1px solid var(--crs-line);
  border-radius:14px;
  background:#fff;
  color:var(--crs-muted);
  font-size:13px;
  text-align:center;
  font-weight:600;
  white-space:nowrap;
}
.crs-stepper .crs-step-ic{
  width:18px;
  height:18px;
  flex:0 0 auto;
  opacity:.9;
  color:var(--crs-accent);
}
.crs-stepper span.active{
  background:#082543;
  border-color:#082543;
  color:#fff;
  box-shadow:0 8px 24px rgba(19,31,40,.18);
}
.crs-stepper span.done{
  background:rgba(72,96,104,.08);
  border-color:rgba(72,96,104,.18);
  color:var(--crs-sea);
}

.crs-step{display:none;animation:crsFade .22s ease}
.crs-step.active{display:block}
.crs-step h3{font-size:22px;margin:0 0 8px;font-weight:750}
.crs-muted{color:var(--crs-muted);line-height:1.8;margin:0 0 16px;font-weight:450;font-size:13px}

.crs-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin:14px 0;
}

.crs-card-option,
.crs-select-card,
.crs-card{
  border:1px solid var(--crs-line);
  background:#fff;
  border-radius:18px;
  padding:18px;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:0 6px 18px rgba(19,31,40,.04);
  position:relative;
}
.crs-card-option:hover,
.crs-select-card:hover{
  transform:translateY(-2px);
  border-color:rgba(20,54,66,.26);
  box-shadow:0 14px 26px rgba(19,31,40,.08);
}

.crs-select-card b,
.crs-card-option h4{
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    color: #535353;
}
.crs-card-option h4{font-size:17px}
.crs-card-option p,
.crs-select-card small{
  display:block;
  margin:0;
  color:var(--crs-muted);
  font-size:13px;
  line-height:1.8;
  font-weight:450;
}

.crs-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.crs-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(31,122,140,.10);
  border:1px solid rgba(31,122,140,.18);
  color:var(--crs-accent-2);
  font-weight:650;
  font-size:12px;
  white-space:nowrap;
}

.crs-price{
  display:inline-flex;
  margin-top:12px;
  padding:6px 10px;
  background:rgba(31,122,140,.12);
  color:var(--crs-accent-2);
  border-radius:999px;
  font-weight:650;
}

.crs-card-icon{
  display:inline-flex;
  width:38px;height:38px;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  background:rgba(179,144,127,.22);
  color:var(--crs-beige);
  font-weight:900;
  margin-bottom:10px;
}
.crs-avatar{
  display:inline-flex;
  width:48px;height:48px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--crs-accent),var(--crs-accent-2));
  color:#fff;
  font-weight:900;
  font-size:20px;
  margin-bottom:10px;
}

.crs-select-card.selected,
.crs-card-option.selected{
  border-color:var(--crs-accent-2);
  border-width:2px;
  background:linear-gradient(180deg,rgba(31,122,140,.10),#fff);
  box-shadow:0 14px 36px rgba(20,54,66,.16);
  transform:translateY(-2px);
}
.crs-select-card.selected:after,
.crs-card-option.selected:after{
  content:"✓";
  position:absolute;
  left:14px;
  bottom:14px;
  width:28px;height:28px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--crs-accent),var(--crs-accent-2));
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  box-shadow:0 10px 20px rgba(20,54,66,.22);
}

/* Step 1 palette separation: categories use beige, services use teal. */
.crs-categories .crs-select-card{
  background:linear-gradient(180deg,rgba(179,144,127,.14),#fff);
  border-color:rgba(179,144,127,.30);
}
.crs-categories .crs-select-card:hover{
  border-color:rgba(179,144,127,.55);
  box-shadow:0 16px 32px rgba(179,144,127,.16);
}
.crs-categories .crs-select-card.selected{
  border-color:var(--crs-beige);
  background:linear-gradient(180deg,rgba(179,144,127,.22),#fff);
  box-shadow:0 18px 40px rgba(179,144,127,.22);
}
.crs-categories .crs-select-card.selected:after{
  background:linear-gradient(135deg,var(--crs-beige),#8f6f5f);
  box-shadow:0 10px 22px rgba(179,144,127,.30);
}
.crs-services .crs-select-card{border-color:rgba(20,54,66,.12)}
.crs-services .crs-select-card:hover{
  border-color:rgba(31,122,140,.42);
  box-shadow:0 16px 34px rgba(20,54,66,.10);
}
.crs-services .crs-select-card.selected{
  border-color:var(--crs-accent-2);
  background:linear-gradient(180deg,rgba(31,122,140,.10),#fff);
}
.crs-services .crs-service-card{border:1px solid #e1e4e6;background:#fff;box-shadow:0 0 0}
.crs-services .crs-service-card:hover{box-shadow:0 16px 34px rgba(19,31,40,.10)}
.crs-services .crs-service-card.selected{box-shadow:0 18px 40px rgba(20,54,66,.14)}

/* Step 2: Therapists should feel like service cards (teal palette). */
.crs-therapists .crs-select-card{
border-color: rgba(20, 54, 66, .12);
    background: #fff;
    border: 1px solid #e1e4e6;
}
.crs-therapists .crs-select-card:hover{
  border-color:rgba(31,122,140,.42);
  box-shadow:0 16px 34px rgba(20,54,66,.10);
}
.crs-therapists .crs-select-card.selected{
  border-color:var(--crs-accent-2);
  background:linear-gradient(180deg,rgba(31,122,140,.10),#fff);
  box-shadow:0 18px 40px rgba(20,54,66,.14);
}
.crs-therapists .crs-select-card.selected:after{
  background:linear-gradient(135deg,var(--crs-accent),var(--crs-accent-2));
  box-shadow:0 10px 20px rgba(20,54,66,.22);
}
.crs-therapists .crs-avatar{
  background:linear-gradient(135deg,var(--crs-accent),var(--crs-accent-2));
}
.crs-therapists .crs-price{
  background:rgba(31,122,140,.12);
  color:var(--crs-accent-2);
}

/* v1.1.22 Service Card (step 1) */
.crs-service-card{
  display:grid;
  direction:rtl;
  /* Column 1 is on the right (meta/action), column 2 is on the left (badge/icon). */
  grid-template-columns:minmax(0,1fr) 74px;
  grid-template-areas:
    "meta  badge"
    "action icon";
  column-gap:14px;
  row-gap:10px;
  align-items:start;
  padding:16px 16px 14px;
  border-radius:16px;
  border:0;
  background:#fff;
  box-shadow:0 12px 28px rgba(19,31,40,.08);
  min-height:0;
}
.crs-service-card .crs-svc-badge{
    grid-area: badge;
    justify-self: center;
    padding: 6px 6px;
    border-radius: 6px;
    background: #eff7fb;
    border: 1px solid #d7edf6;
    color: var(--crs-accent);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: -.1px;
    line-height: 17px;
}
.crs-service-card .crs-svc-icon,
.crs-service-card .crs-svc-img{
    grid-area: icon;
    width: 72px;
    height: 72px;
    border-radius: 0;
    background: #fff;
    border: 0;
    box-shadow: 0 0 0;
    position: relative;
    padding: 0 !important;
}
.crs-service-card .crs-svc-img{
  display:block;
  object-fit:contain;
  padding:10px;
}
.crs-service-card .crs-svc-icon:before{
  content:"";
  position:absolute;
  inset:14px;
  border-radius:50%;
  border:2px solid rgba(31,122,140,.45);
}
.crs-service-card .crs-svc-meta{
  grid-area:meta;
  min-width:0;
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.crs-service-card b {
    direction: rtl;
    text-align: right;
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #35393b;
    line-height: 1.45;
}
.crs-service-card .crs-svc-price{
  display:block;
  margin-top:2px;
  font-size:12.5px;
  color:#6c7f87;
  font-weight:700;
}
.crs-service-card small{
  grid-area:meta;
  margin:0;
  font-size:12.5px;
  color:#6c7f87;
  font-weight:700;
}
.crs-service-card .crs-svc-action{
    grid-area: action;
    justify-self: start;
    align-self: end;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3px 17px;
    border-radius: 10px;
    border: 1.5px solid rgba(31, 122, 140, .55);
    background: #fff;
    color: #136b7b;
    font-weight: 600;
    width: fit-content;
    font-size: 13px !important;
}
.crs-service-card .crs-svc-chev{
  display:inline-flex;
  width:18px;height:18px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(31,122,140,.10);
}
.crs-service-card.selected .crs-svc-action{
  border-color:var(--crs-accent-2);
  box-shadow:0 10px 18px rgba(20,54,66,.10);
}
.crs-service-card.selected:after{display:none}

.crs-date-row,.crs-form-grid,.crs-otp-box{
  display:grid;
  grid-template-columns:1fr 160px;
  gap:12px;
  align-items:end;
}
.crs-form-grid{grid-template-columns:1fr 1fr}
.crs-otp-box{grid-template-columns:170px 1fr 140px;margin-top:16px}

.crs-booking label{display:block;color:var(--crs-navy);font-size:13px;font-weight:600}
.crs-booking input,
.crs-booking select,
.crs-booking textarea{
  width:100%;
  box-sizing:border-box;
  margin-top:8px;
  border:1px solid var(--crs-line);
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
  color:var(--crs-navy);
  outline:none;
  transition:.18s ease;
  font-weight:450;
}
.crs-booking input:focus,
.crs-booking select:focus,
.crs-booking textarea:focus{
  border-color:rgba(31,122,140,.55);
  box-shadow:0 0 0 4px rgba(31,122,140,.12);
}

.crs-booking button{
  border:0;
  border-radius:14px;
  padding:13px 18px;
  background:linear-gradient(135deg,var(--crs-accent-2),var(--crs-navy));
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}
.crs-booking button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(19,31,40,.18)}
.crs-booking button:disabled{background:#c8d0d2;color:#68767b;box-shadow:none;cursor:not-allowed;transform:none}
.crs-nav{display:flex;justify-content:space-between;gap:10px;margin-top:22px;padding-top:20px;border-top:1px solid var(--crs-line)}
.crs-prev{background:#eef2f3!important;color:var(--crs-sea)!important}

.crs-slots,.crs-quick-dates{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.crs-slot,.crs-date-chip{
  padding:11px 15px;
  border:1px solid var(--crs-line);
  border-radius:999px;
  background:#fff;
  color:var(--crs-navy);
  cursor:pointer;
  font-weight:650;
  transition:.18s;
}
.crs-slot:hover,.crs-date-chip:hover{border-color:rgba(31,122,140,.45);background:#f8fbfb}
.crs-slot.selected,.crs-date-chip.selected{
  background:linear-gradient(135deg,var(--crs-accent-2),var(--crs-navy));
  border-color:var(--crs-accent-2);
  color:#fff;
}
.crs-slot.disabled{background:#f1f3f4;color:#9aa5a9;cursor:not-allowed;text-decoration:line-through}
.crs-quick-date.selected{background:var(--crs-sea);border-color:var(--crs-sea);color:#fff}

.crs-summary h3{margin:0 0 18px;font-size:22px;font-weight:800}
.crs-summary p{display:flex;justify-content:space-between;gap:12px;padding:13px 0;margin:0;border-bottom:1px dashed var(--crs-line);color:var(--crs-muted)}
.crs-summary strong{color:var(--crs-navy);text-align:left}
.crs-trust{margin-top:18px;background:rgba(72,96,104,.09);border:1px solid rgba(72,96,104,.18);border-radius:16px;padding:14px;color:var(--crs-sea);font-weight:650}

.crs-result{padding:16px 18px;border-radius:16px;margin-bottom:16px;border:1px solid}
.crs-result.success{background:rgba(47,138,85,.10);border-color:rgba(47,138,85,.28);color:var(--crs-ok)}
.crs-result.failed{background:rgba(217,83,79,.10);border-color:rgba(217,83,79,.25);color:var(--crs-danger)}
.crs-otp-status,.crs-pay-status{margin-top:12px;color:var(--crs-sea);font-weight:650}
.crs-otp-status.ok,.crs-pay-status.ok{color:var(--crs-ok)}
.crs-otp-status.err,.crs-pay-status.err{color:var(--crs-danger)}

.crs-loading{opacity:.55;pointer-events:none}
.crs-skeleton{
  height:46px;
  border-radius:14px;
  background:linear-gradient(90deg,#edf1f2,#f7f9f9,#edf1f2);
  background-size:200% 100%;
  animation:crsShimmer 1s infinite;
}

.crs-progress{height:7px;background:#eef2f3;border-radius:999px;overflow:hidden;margin:-14px 0 24px}
.crs-progress-bar{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--crs-accent),var(--crs-accent-2));border-radius:inherit;transition:.25s ease}

.crs-toast{
  position:fixed;
  left:22px;
  bottom:22px;
  z-index:999999;
  background:var(--crs-navy);
  color:#fff;
  padding:14px 18px;
  border-radius:16px;
  box-shadow:0 16px 35px rgba(19,31,40,.22);
  opacity:0;
  transform:translateY(12px);
  transition:.2s;
  font-family:iransans,inherit;
  font-weight:700;
}
.crs-toast.show{opacity:1;transform:none}
.crs-toast.err{background:var(--crs-danger)}
.crs-toast.ok{background:var(--crs-ok)}

.crs-empty{
  background:#f8fafb;
  border:1px dashed var(--crs-line);
  border-radius:16px;
  padding:18px;
  color:var(--crs-muted);
}

@keyframes crsFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes crsShimmer{to{background-position:-200% 0}}

@media(max-width:980px){
  .crs-booking{grid-template-columns:1fr;padding:14px;margin:12px;border-radius:22px}
  .crs-summary{position:static;order:2}
  .crs-stepper{display:flex;overflow:auto}
  .crs-stepper span{min-width:110px}
  .crs-date-row,.crs-form-grid,.crs-otp-box{grid-template-columns:1fr}
  .crs-main{padding:18px}
  .crs-hero h2{font-size:24px}
  .crs-nav{position:sticky;bottom:0;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);padding:12px;border-radius:16px}
}

@media(max-width:520px){
  .crs-booking{padding:12px;margin:10px;border-radius:18px}
  .crs-cards{grid-template-columns:1fr}
}

/* Jalali datepicker (minimal) */
.crs-jdp{
  position:absolute;
  z-index:999999;
  background:#fff;
  border:1px solid #dfe7ea;
  border-radius:18px;
  padding:12px;
  box-shadow:0 18px 45px rgba(19,31,40,.18);
  width:292px;
  font-family:iransans,inherit;
}
.crs-jdp-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.crs-jdp-head button,.crs-jdp-foot button{
  border:0;
  background:#edf4f5;
  color:#131f28;
  border-radius:10px;
  padding:7px 11px;
  font-weight:800;
  cursor:pointer;
}
.crs-jdp-week,.crs-jdp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center}
.crs-jdp-week span{font-size:12px;color:#64748b;font-weight:800}
.crs-jdp-days button{height:34px;border:0;border-radius:10px;background:#f8fafc;color:#111827;font-weight:750;cursor:pointer}
.crs-jdp-days button:hover,.crs-jdp-days button.sel{background:var(--crs-accent);color:#fff}
.crs-jdp-foot{margin-top:10px;text-align:center}
