/* ===================================================================
   Cargo Taxi — quote calculator + cookie banner
   Desktop sits inside the 1920px Figma canvas (child of .services),
   mobile falls back to document flow like the rest of the theme.
=================================================================== */

/* `hidden` must win over the display rules below */
.calc [hidden],
.ct-cookie[hidden],
.veh-modal[hidden]{display:none !important}

/* ---------- shell ---------- */
.calc{
  position:absolute;left:312px;top:1163px;width:1296px;height:860px;
  background:#0A0A0A;border:1px solid #525252;border-radius:24px;
  display:flex;overflow:hidden;z-index:6
}
.calc__anchor{position:absolute;left:0;top:-140px;width:1px;height:1px}

/* ---------- aside ---------- */
.calc__aside{
  flex:0 0 430px;width:430px;padding:48px 40px;color:#fff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(247,137,0,.22) 0%, transparent 58%),
    #0A0A0A;
  display:flex;flex-direction:column
}
.calc__aside .eyebrow--light{color:rgba(255,255,255,.8);font-size:14px;font-weight:500;line-height:20px}
.calc__title{
  margin-top:16px;font-size:44px;font-weight:500;line-height:48px;letter-spacing:-1.2px;color:#fff
}
.calc__lead{margin-top:18px;font-size:16px;line-height:24px;color:var(--grey)}

.calc__steps{margin:36px 0 0;list-style:none;counter-reset:none}
.calc__step-item{
  display:flex;align-items:center;gap:14px;padding:11px 0;
  color:rgba(255,255,255,.45);transition:color .3s var(--ease-ui)
}
.calc__step-num{
  flex:0 0 36px;width:36px;height:36px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.07);font-size:13px;font-weight:600;
  transition:background .3s var(--ease-ui),color .3s var(--ease-ui)
}
.calc__step-label{font-size:16px;font-weight:500}
.calc__step-item.is-done{color:rgba(255,255,255,.75)}
.calc__step-item.is-done .calc__step-num{background:rgba(247,137,0,.22);color:#FFCE93}
.calc__step-item.is-current{color:#fff}
.calc__step-item.is-current .calc__step-num{background:var(--orange);color:#fff}

.calc__contacts{margin-top:auto;display:flex;flex-direction:column;gap:16px;padding-top:28px}

/* ---------- main ---------- */
.calc__main{
  flex:1 1 auto;min-width:0;background:#fff;
  display:flex;flex-direction:column
}
.calc__form{display:flex;flex-direction:column;height:100%;padding:32px 36px 28px}
.calc__progress{height:4px;border-radius:4px;background:#EDEDED;overflow:hidden;flex:0 0 4px}
.calc__progress-bar{display:block;height:100%;background:var(--orange);transition:width .4s var(--ease-out)}

.calc__panes{flex:1 1 auto;min-height:0;overflow-y:auto;padding:24px 4px 8px;margin-right:-4px}
.calc-step{display:none}
.calc-step.is-active{display:block;animation:ct-fadeIn .3s var(--ease-out)}

.calc-h{font-size:24px;font-weight:500;line-height:30px;letter-spacing:-.3px;color:var(--ink)}
.calc-h--sp{margin-top:30px}

/* ---------- fields ---------- */
.ct-field{margin-top:18px}
.ct-label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:var(--grey4)}
.ct-label--inline{margin:0;flex:0 0 96px}
.ct-input{
  display:block;width:100%;height:52px;padding:0 16px;
  background:#F7F7F7;border:1px solid #E5E5E5;border-radius:12px;
  font-family:inherit;font-size:16px;font-weight:500;color:var(--ink);outline:none;
  transition:border-color .25s var(--ease-ui),background .25s var(--ease-ui)
}
.ct-input:focus{border-color:var(--orange);background:#fff}
.ct-input::placeholder{color:#9A9A9A;font-weight:400}
.ct-input--area{height:92px;padding:14px 16px;line-height:24px;resize:vertical}
.ct-select{appearance:none;-webkit-appearance:none;padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23656565' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center}
.ct-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.ct-input-row{display:flex;gap:10px;align-items:stretch}
.ct-input-row .ct-input{flex:1 1 auto;min-width:0}
.ct-geo,.ct-stop-del{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;
  height:52px;padding:0 16px;border-radius:12px;
  background:#FFF3E4;border:1px solid rgba(247,137,0,.35);
  font-size:14px;font-weight:500;color:#A35A00;white-space:nowrap;
  transition:background .25s var(--ease-ui)
}
.ct-geo:hover{background:#FFE7CB}
.ct-geo.is-busy{opacity:.6;pointer-events:none}
.ct-stop-del{
  width:52px;padding:0;justify-content:center;font-size:22px;line-height:1;
  background:#F3F3F3;border-color:#E5E5E5;color:var(--grey4)
}
.ct-addstop{
  margin-top:12px;font-size:15px;font-weight:500;color:var(--orange)
}
.ct-addstop:hover{text-decoration:underline}
.ct-hint{margin-top:8px;font-size:13px;line-height:19px;color:var(--grey2)}
.ct-hint--strong{color:var(--ink);font-weight:500}

.ct-map{
  margin-top:18px;width:100%;height:220px;border-radius:14px;overflow:hidden;background:#EFEFEF
}
.ct-route{
  margin-top:16px;padding:16px 18px;border-radius:14px;
  background:#FAFAFA;border:1px solid #ECECEC
}
.ct-route__path{font-size:18px;font-weight:600;letter-spacing:2px;color:var(--orange)}
.ct-route__stats{display:flex;flex-wrap:wrap;gap:24px;margin-top:10px;font-size:15px;color:var(--grey4)}
.ct-route__stats b{color:var(--ink)}

/* ---------- choices ---------- */
.ct-choice{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ct-opt{position:relative;cursor:pointer}
.ct-opt input{position:absolute;opacity:0;width:0;height:0}
.ct-opt span{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:86px;height:50px;padding:0 20px;
  background:#F7F7F7;border:1px solid #E5E5E5;border-radius:12px;
  font-size:15px;font-weight:500;color:var(--grey4);
  transition:background .25s var(--ease-ui),border-color .25s var(--ease-ui),color .25s var(--ease-ui)
}
.ct-opt:hover span{border-color:rgba(247,137,0,.45)}
.ct-opt.is-on span{background:#FFF3E4;border-color:var(--orange);color:var(--ink)}
.ct-opt input:focus-visible + span{outline:2px solid var(--orange);outline-offset:2px}
.ct-choice--num .ct-opt span{min-width:56px;padding:0 10px}

.ct-access{margin-top:26px;padding-top:22px;border-top:1px solid #EDEDED}
.ct-access__block{margin-top:18px}
.ct-access__title{font-size:16px;font-weight:600;color:var(--ink)}
.ct-access__row{display:flex;align-items:center;gap:14px;margin-top:10px;flex-wrap:wrap}
.ct-access__row .ct-choice{margin-top:0}

/* ---------- vehicles ---------- */
.veh-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px}
.veh{
  position:relative;display:flex;flex-direction:column;cursor:pointer;
  padding:16px;border:1.5px solid #E8E8E8;border-radius:16px;background:#fff;
  transition:border-color .25s var(--ease-ui),box-shadow .25s var(--ease-ui),background .25s var(--ease-ui)
}
.veh input{position:absolute;opacity:0;width:0;height:0}
.veh:hover{border-color:rgba(247,137,0,.5)}
.veh.is-on{border-color:var(--orange);background:#FFFBF5;box-shadow:0 10px 24px rgba(247,137,0,.12)}
.veh__media{
  display:flex;align-items:center;justify-content:center;
  height:118px;border-radius:12px;background:#F4F4F4;overflow:hidden;margin-bottom:14px
}
.veh__media img{width:100%;height:100%;object-fit:contain;padding:10px}
.veh__name{font-size:17px;font-weight:600;color:var(--ink);line-height:22px}
.veh__pallets{margin-top:4px;font-size:14px;font-weight:500;color:var(--orange)}
.veh__spec{margin-top:2px;font-size:13px;color:var(--grey2);line-height:19px}
.veh__btn{
  margin-top:12px;align-self:flex-start;
  height:38px;padding:0 14px;border-radius:10px;
  background:var(--ink);color:#fff;font-size:13px;font-weight:500
}
.veh__btn:hover{filter:brightness(1.25)}

.veh-modal{
  position:fixed;inset:0;z-index:999;
  display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(10,10,10,.6);backdrop-filter:blur(4px)
}
.veh-modal__box{
  position:relative;width:min(520px,100%);background:#fff;border-radius:20px;padding:32px 28px 28px
}
.veh-modal__x{
  position:absolute;right:14px;top:12px;width:36px;height:36px;border-radius:10px;
  font-size:24px;line-height:1;color:var(--grey4);background:#F3F3F3
}
.veh-modal__box h4{font-size:22px;font-weight:600;color:var(--ink);padding-right:40px}
.veh-modal__box ul{list-style:none;margin-top:18px}
.veh-modal__box li{
  display:flex;justify-content:space-between;gap:16px;
  padding:11px 0;border-bottom:1px solid #EFEFEF;font-size:15px;color:var(--grey4)
}
.veh-modal__box li b{color:var(--ink)}
.veh-modal__draw{
  position:relative;margin-top:22px;height:150px;border-radius:12px;
  background:repeating-linear-gradient(45deg,#FAFAFA 0 8px,#F3F3F3 8px 16px);
  display:flex;align-items:flex-end;padding:12px
}
.veh-modal__box-view{
  position:relative;border:2px solid var(--orange);border-radius:6px;background:rgba(247,137,0,.12)
}
.veh-modal__len,.veh-modal__hgt{
  position:absolute;font-size:11px;font-weight:600;color:#A35A00;white-space:nowrap
}
.veh-modal__len{left:50%;transform:translateX(-50%);bottom:-18px}
.veh-modal__hgt{right:-6px;top:50%;transform:translateY(-50%) rotate(-90deg)}
body.ct-modal-open{overflow:hidden}

/* ---------- photos ---------- */
.ct-photos-btn{
  display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 20px;
  border:1.5px dashed rgba(247,137,0,.55);border-radius:12px;cursor:pointer;
  font-size:15px;font-weight:500;color:#A35A00;background:#FFFBF5
}
.ct-photos-btn:hover{background:#FFF3E4}
.ct-photos{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.ct-photo{position:relative;width:72px;height:72px;border-radius:10px;overflow:hidden;background:#F3F3F3}
.ct-photo img{width:100%;height:100%;object-fit:cover}
.ct-photo__x{
  position:absolute;right:2px;top:2px;width:22px;height:22px;border-radius:6px;
  background:rgba(0,0,0,.6);color:#fff;font-size:15px;line-height:1
}

/* ---------- result ---------- */
.ct-recap__list{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
.ct-recap__list div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #F0F0F0}
.ct-recap__list dt{font-size:14px;color:var(--grey2)}
.ct-recap__list dd{font-size:14px;font-weight:600;color:var(--ink);text-align:right}
.ct-recap__lines{list-style:none;margin-top:20px}
.ct-recap__lines li{
  display:flex;justify-content:space-between;gap:16px;padding:10px 0;
  font-size:15px;color:var(--grey4);border-bottom:1px dashed #EAEAEA
}
.ct-recap__lines b{color:var(--ink)}

.ct-total{
  margin-top:22px;padding:22px 26px;border-radius:16px;
  background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px
}
.ct-total__lbl{font-size:16px;color:var(--grey)}
.ct-total__val{font-size:44px;font-weight:600;letter-spacing:-1px;color:var(--orange)}
.ct-legal{margin-top:16px;font-size:12px;line-height:19px;color:var(--grey2)}

.ct-opt-tag{font-size:12px;font-weight:400;color:var(--grey);margin-left:6px}

.ct-done{text-align:center;padding:26px 0}
.ct-done__ic{
  width:64px;height:64px;margin:0 auto 18px;border-radius:50%;
  background:#E8F7EC;color:#1E9E4A;font-size:32px;line-height:64px;font-weight:700
}
.ct-done__msg{margin-top:10px;font-size:16px;line-height:24px;color:var(--grey4)}
.ct-ref{
  display:inline-flex;align-items:center;gap:10px;margin-top:18px;
  padding:12px 20px;border-radius:12px;background:#F7F7F7;font-size:15px;color:var(--grey4)
}
.ct-ref b{font-size:18px;letter-spacing:1px;color:var(--ink)}

/* ---------- buttons / errors ---------- */
.ct-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:54px;padding:0 30px;border-radius:14px;
  font-size:16px;font-weight:500;
  transition:filter .25s var(--ease-out),transform .25s var(--ease-out),opacity .25s var(--ease-ui)
}
.ct-btn--primary{background:var(--orange);color:#fff}
.ct-btn--primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
.ct-btn--ghost{background:#F3F3F3;color:var(--grey4)}
.ct-btn--ghost:hover{background:#E9E9E9}
.ct-btn--wa{margin-top:20px;background:#25D366;color:#fff}
.ct-btn[disabled],.ct-btn.is-busy{opacity:.6;pointer-events:none}
#ctToBooking,#ctSend{margin-top:22px;width:100%}

.ct-error{
  margin-top:12px;padding:12px 16px;border-radius:12px;
  background:#FFF1F1;border:1px solid #F6C9C9;color:#A42121;font-size:14px;line-height:20px
}
.calc__nav{display:flex;gap:12px;justify-content:flex-end;padding-top:18px;flex:0 0 auto}

/* ===================================================================
   COOKIE BANNER
=================================================================== */
.ct-cookie{
  position:fixed;left:20px;right:20px;bottom:20px;z-index:900;
  max-width:980px;margin:0 auto;padding:22px 26px;
  background:#0A0A0A;border:1px solid #333;border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  display:flex;align-items:center;gap:26px;
  animation:ct-fadeInUp .5s var(--ease-out) both
}
.ct-cookie[hidden]{display:none}
.ct-cookie__body{flex:1 1 auto;min-width:0}
.ct-cookie__title{display:block;font-size:17px;font-weight:600;color:#fff}
.ct-cookie__text{margin-top:6px;font-size:14px;line-height:21px;color:var(--grey)}
.ct-cookie__text p{margin:0}
.ct-cookie__link{color:var(--orange);font-weight:500;text-decoration:underline}
.ct-cookie__actions{flex:0 0 auto;display:flex;gap:10px}
.ct-cookie__actions .ct-btn{height:46px;padding:0 22px;font-size:15px}
.ct-cookie__actions .ct-btn--ghost{background:rgba(255,255,255,.1);color:#fff}
.ct-cookie__actions .ct-btn--ghost:hover{background:rgba(255,255,255,.18)}

/* ===================================================================
   MOBILE
=================================================================== */
@media (max-width:900px){
  .calc{
    position:relative !important;left:auto !important;top:auto !important;
    width:calc(100% - 32px) !important;height:auto !important;
    margin:32px 16px 0 !important;
    flex-direction:column;border-radius:20px;
    box-shadow:0 16px 40px rgba(0,0,0,.12)
  }
  .calc__anchor{top:-80px}
  .calc__aside{
    flex:none;width:100% !important;padding:28px 22px 24px
  }
  .calc__title{font-size:28px;line-height:32px;letter-spacing:-.5px}
  .calc__lead{font-size:15px;line-height:22px}
  .calc__steps{
    margin-top:22px;display:flex;gap:8px;overflow-x:auto;
    scrollbar-width:none;-webkit-overflow-scrolling:touch
  }
  .calc__steps::-webkit-scrollbar{display:none}
  .calc__step-item{flex:0 0 auto;padding:0;gap:8px}
  .calc__step-num{width:30px;height:30px;flex-basis:30px;font-size:12px}
  .calc__step-label{font-size:13px}
  .calc__contacts{margin-top:24px;padding-top:0}

  .calc__main{border-radius:0 0 20px 20px}
  .calc__form{height:auto;padding:22px 18px 22px}
  .calc__panes{overflow:visible;min-height:0;padding:18px 0 4px;margin-right:0}
  .calc-h{font-size:20px;line-height:26px}
  .ct-input,.ct-geo,.ct-stop-del{height:48px}
  .ct-geo__t{display:none}
  .ct-geo{padding:0 14px}
  .ct-grid2{grid-template-columns:1fr}
  .veh-grid{grid-template-columns:1fr}
  .veh__media{height:132px}
  .ct-map{height:200px}
  .ct-recap__list{grid-template-columns:1fr}
  .ct-total{flex-direction:column;align-items:flex-start;gap:6px;padding:18px 20px}
  .ct-total__val{font-size:36px}
  .calc__nav{position:sticky;bottom:0;background:#fff;padding:14px 0 2px;justify-content:stretch}
  .calc__nav .ct-btn{flex:1 1 auto;padding:0 16px}

  .ct-cookie{
    left:12px;right:12px;bottom:12px;padding:18px;
    flex-direction:column;align-items:stretch;gap:14px
  }
  .ct-cookie__actions .ct-btn{flex:1 1 auto}
}
