/* Kurier Emila v2.6 – kalkulator z poprawioną animacją i lepszą mapą */
#ke-kalkulator{background:linear-gradient(145deg,#100e0b,#241c12 55%,#0b0b0a);padding:78px 0 86px;border-top:1px solid #624721;border-bottom:1px solid #49381d;color:#f8f6f2}
#ke-kalkulator *{box-sizing:border-box}
#ke-kalkulator .ke-calc-top{margin-bottom:28px;max-width:850px}
#ke-kalkulator .ke-calc-kicker{font:700 11px Arial,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#e9c477}
#ke-kalkulator h2{font-size:clamp(30px,3.4vw,46px);line-height:1.12;margin:12px 0 14px;letter-spacing:-.03em}
#ke-kalkulator h2 span{color:#e9c477}
#ke-kalkulator .ke-calc-top p{color:#d2c6b1;line-height:1.72;font-size:15px}
#ke-kalkulator .ke-calc-grid{display:grid;grid-template-columns:minmax(315px,.83fr) minmax(0,1.17fr);gap:20px;align-items:start}
#ke-kalkulator .ke-calc-card{background:#171510;border:1px solid #584326;border-radius:10px;padding:25px;box-shadow:0 12px 50px #0004;min-width:0}
#ke-kalkulator .ke-calc-card h3{margin:0 0 18px;font-size:19px}
#ke-kalkulator .ke-calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}
#ke-kalkulator label{display:flex;flex-direction:column;gap:6px;color:#e8dac3;font-size:12px;font-weight:700;letter-spacing:.015em}
#ke-kalkulator input,#ke-kalkulator select,#ke-kalkulator textarea{width:100%;height:44px;min-width:0;border:1px solid #685334;background:#0c0c0b;border-radius:5px;color:#fff;font:400 14px Arial,sans-serif;padding:10px 12px;outline:none}
#ke-kalkulator textarea{height:auto;min-height:92px;resize:vertical}
#ke-kalkulator input:focus,#ke-kalkulator select:focus,#ke-kalkulator textarea:focus{border-color:#e9c477;box-shadow:0 0 0 2px #c79b4b38}
#ke-kalkulator input::placeholder{color:#908774}
#ke-kalkulator .ke-calc-full{grid-column:1/-1}
#ke-kalkulator .ke-calc-btn{border:1px solid #c79b4b;background:#c79b4b;color:#110e09;border-radius:5px;font-weight:800;font-size:13px;padding:14px 20px;cursor:pointer;min-height:44px}
#ke-kalkulator .ke-calc-btn:hover{background:#ebc576}
#ke-kalkulator .ke-calc-btn:disabled{opacity:.6;cursor:wait}
#ke-kalkulator .ke-calc-secondary{background:transparent;color:#e9c477}
#ke-kalkulator .ke-calc-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px;align-items:center}
#ke-kalkulator .ke-calc-note{font-size:11px;color:#a69a83;line-height:1.6;margin:14px 0 0}
#ke-kalkulator .ke-calc-map{height:350px;position:relative;border:1px solid #615033;overflow:hidden;border-radius:10px;background:#141f21;box-shadow:inset 0 0 0 1px #ffffff06,0 16px 30px #00000026}
#ke-kalkulator #ke-calc-leaflet{position:absolute;inset:0;z-index:2;display:block;background:#17252c}
#ke-kalkulator #ke-calc-map-label{position:absolute;bottom:10px;left:10px;z-index:1000;background:#17130ee3;border-radius:6px;border:1px solid #72572c;color:#e9c477;padding:7px 11px;font-size:11px;max-width:92%}
#ke-kalkulator .ke-calc-route-values{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0}
#ke-kalkulator .ke-calc-value{border:1px solid #57472e;border-radius:6px;background:#242017;padding:16px}
#ke-kalkulator .ke-calc-value small{display:block;font-size:11px;color:#cbbda6;margin-bottom:8px}
#ke-kalkulator .ke-calc-value strong{color:#e9c477;font-size:clamp(17px,2.4vw,25px);line-height:1.2;overflow-wrap:anywhere}
#ke-kalkulator .ke-calc-value p{font-size:11px;color:#ae9d82;margin:8px 0 0;line-height:1.45}
#ke-kalkulator #ke-calc-status{font-size:12px;min-height:38px;padding:10px;border:1px solid #4d402a;color:#ddd0b9;border-radius:5px;line-height:1.5}
#ke-kalkulator #ke-calc-status[data-error="1"]{border-color:#af6a63;color:#ffcabf}
#ke-kalkulator .ke-calc-legal{font-size:11px;color:#b7ac9d;line-height:1.6;margin-top:12px}
#ke-kalkulator .ke-calc-legal a{color:#e9c477;text-decoration:underline}
#ke-kalkulator .ke-calc-contact{display:none;margin-top:18px;padding:20px;background:#211c13;border:1px solid #71532d;border-radius:8px}
#ke-kalkulator .ke-calc-contact[aria-hidden="false"]{display:block}
#ke-kalkulator .ke-calc-contact h3{margin:0 0 14px;font-size:18px}
#ke-kalkulator .ke-calc-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:11px;line-height:1.55;font-weight:400}
#ke-kalkulator .ke-calc-check input{height:18px;width:18px;flex:none;margin:0}
#ke-kalkulator .ke-calc-toast{margin-top:12px;padding:10px;border:1px solid #69512b;font-size:12px;line-height:1.5;display:none}
#ke-kalkulator .ke-calc-toast[data-state="error"]{border-color:#ae6560;color:#ffb9b0}
#ke-kalkulator .ke-calc-toast[data-state="success"]{border-color:#7a9a68;color:#d2e9c5}
#ke-kalkulator .ke-map-marker-wrap{display:flex;flex-direction:column;align-items:center;gap:2px;transform:translateY(-4px)}
#ke-kalkulator .ke-map-marker-wrap svg{width:112px;height:64px;overflow:visible;filter:drop-shadow(0 5px 14px rgba(0,0,0,.45))}
#ke-kalkulator .ke-map-marker-wrap span{font:700 9px Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;background:#15120d;border:1px solid #775a2d;color:#f3e3bf;border-radius:999px;padding:3px 7px;box-shadow:0 4px 10px #0005}
@media(max-width:960px){#ke-kalkulator .ke-calc-grid{grid-template-columns:1fr}}
@media(max-width:600px){#ke-kalkulator{padding:55px 0}#ke-kalkulator .ke-calc-card{padding:16px}#ke-kalkulator .ke-calc-fields{grid-template-columns:1fr}#ke-kalkulator .ke-calc-map{height:280px}#ke-kalkulator .ke-calc-route-values{grid-template-columns:1fr 1fr}#ke-kalkulator .ke-calc-value{padding:10px}#ke-kalkulator .ke-calc-value strong{font-size:17px}}

/* v2.7: prawdziwa mapa OSM, bez narysowanej fikcyjnej trasy */
#ke-kalkulator .ke-map-overlay{position:absolute;z-index:700;top:10px;left:10px;right:10px;width:max-content;max-width:calc(100% - 20px);padding:9px 12px;border:1px solid #79623d;border-radius:7px;background:#0b1215dd;color:#f3dbb4;font-size:12px;line-height:1.4;pointer-events:none;box-shadow:0 6px 24px #0007}
#ke-kalkulator .ke-map-overlay[data-state="error"]{border-color:#ad7165;color:#ffe2d6}
#ke-kalkulator .ke-map-overlay[hidden]{display:none}
#ke-kalkulator #ke-calc-leaflet .leaflet-container{background:#17252c}
#ke-kalkulator .leaflet-control-attribution{font:10px Arial,sans-serif!important}
/* Kompaktowy marker nie zasłania drogi. Auto zawsze stoi kołami w dół. */
#ke-kalkulator .ke-vehicle-marker{position:relative;width:80px;height:40px;filter:drop-shadow(0 2px 3px #0009);pointer-events:none}
#ke-kalkulator .ke-icon-truck .ke-vehicle-marker{width:94px;height:42px}
#ke-kalkulator .ke-vehicle-rotor{position:relative;width:80px;height:40px;transform-origin:50% 50%;transition:transform .22s ease-out}
#ke-kalkulator .ke-icon-truck .ke-vehicle-rotor{width:94px;height:42px}
#ke-kalkulator .ke-vehicle-art{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain}
@media(max-width:600px){#ke-kalkulator .ke-vehicle-preview{width:min(210px,60%)}}
#ke-kalkulator .ke-calc-auto-note{display:block;margin-top:3px;font-size:11px;color:#ddbf81;line-height:1.5;font-weight:400}
#ke-kalkulator .ke-calc-map{background:#16232b}
@media(max-width:600px){#ke-kalkulator .ke-map-overlay{font-size:10px;max-width:calc(100% - 14px);padding:7px 9px;top:7px;left:7px}}

/* v2.7.3: static vehicle illustration overlay until a real route is returned */
#ke-kalkulator .ke-vehicle-preview{position:absolute;z-index:650;right:13px;bottom:43px;width:min(225px,55%);padding:10px 12px;border:1px solid #b28946;border-radius:9px;background:linear-gradient(145deg,#161310f5,#261c12ed);box-shadow:0 8px 22px #0009;text-align:center;pointer-events:none}
#ke-kalkulator .ke-vehicle-preview[hidden]{display:none}
#ke-kalkulator .ke-vehicle-preview-head{display:flex;flex-direction:column;gap:4px;align-items:center}
#ke-kalkulator .ke-vehicle-preview-head span{font:800 10px Arial,sans-serif;letter-spacing:.13em;color:#e6bd78}
#ke-kalkulator .ke-vehicle-preview-head strong{font:800 13px Arial,sans-serif;color:#fff}
#ke-kalkulator .ke-vehicle-preview img{width:100%;height:82px;object-fit:contain;display:block;margin:6px auto 3px;filter:drop-shadow(0 4px 6px #0009)}
#ke-kalkulator .ke-vehicle-preview small{display:block;font:10px Arial,sans-serif;color:#cbbda5;line-height:1.35}
@media(max-width:600px){#ke-kalkulator .ke-vehicle-preview{right:7px;bottom:38px;width:min(195px,62%);padding:7px 8px}#ke-kalkulator .ke-vehicle-preview img{height:66px}#ke-kalkulator .ke-vehicle-preview-head strong{font-size:11px}#ke-kalkulator .ke-vehicle-preview small{font-size:9px}}

/* v2.8.3 — wymagane pełne adresy w formularzu transportowym */
#ke-kalkulator .ke-calc-required-note{color:#e7c88f;font-size:12px;line-height:1.55;margin:0 0 15px}
#ke-kalkulator .ke-calc-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
#ke-kalkulator .ke-calc-address-box{min-width:0;margin:0;padding:14px 12px 16px;border:1px solid #72572c;border-radius:7px;display:flex;flex-direction:column;gap:12px;background:#18150f}
#ke-kalkulator .ke-calc-address-box legend{color:#e9c477;font-size:13px;font-weight:800;padding:0 5px}
#ke-kalkulator .ke-calc-address-summary{font-size:13px;font-weight:600;line-height:1.5;color:#fff;padding:9px 11px;background:#302717;border-radius:5px;overflow-wrap:anywhere}
#ke-kalkulator .ke-calc-address-box input{width:100%}
@media(max-width:720px){#ke-kalkulator .ke-calc-address-grid{grid-template-columns:1fr}}

/* v2.8.4 — numer kierunkowy kraju (pełna Europa) przy telefonie klienta */
#ke-kalkulator .ke-calc-phone-field{display:flex;flex-direction:column;gap:7px;min-width:0}
#ke-kalkulator .ke-calc-phone-field label{margin:0;display:block}
#ke-kalkulator .ke-calc-phone-field select,#ke-kalkulator .ke-calc-phone-field input{width:100%;max-width:100%}
#ke-kalkulator .ke-calc-phone-help{color:#cebfa8;font:12px/1.5 Arial,sans-serif}


/* v2.8.8: jedna ścieżka: pełne adresy + kontakt -> wycena -> jedno wysłanie */
#ke-kalkulator .ke-calc-grid{margin:0}
#ke-kalkulator .ke-calc-address-intro{font-size:12px;font-weight:800;color:#e9c477;padding-top:3px}
#ke-kalkulator .ke-calc-address-intro span{color:#b7aa91;font-weight:400}
#ke-kalkulator .ke-calc-address-at-top{grid-column:1/-1}
#ke-kalkulator .ke-calc-address-grid{grid-template-columns:minmax(0,1fr);margin:0}
#ke-kalkulator .ke-calc-address-summary{display:none}
#ke-kalkulator .ke-calc-address-box{padding:11px;gap:9px}
#ke-kalkulator .ke-calc-address-box legend{font-size:12px}
#ke-kalkulator .ke-calc-customer{margin:22px 0 0;padding-top:17px;border-top:1px solid #584326}
#ke-kalkulator .ke-calc-customer h4{color:#e9c477;font-size:15px;line-height:1.35;margin:0 0 8px;font-weight:800}
#ke-kalkulator .ke-calc-customer .ke-calc-fields{grid-template-columns:1fr}
#ke-kalkulator .ke-calc-confirm-summary{margin-top:15px;padding:13px;border:1px solid #8a6c3a;background:#292217;color:#f1deb8;font-size:12px;line-height:1.65;border-radius:6px}
#ke-kalkulator .ke-calc-confirm-summary[hidden]{display:none}
#ke-kalkulator #ke-submit-quote:disabled{opacity:.48;cursor:not-allowed;background:#534632;color:#d2c0a0;border-color:#6a5437}
#ke-kalkulator .ke-calc-toast{border-radius:6px}
@media(max-width:600px){#ke-kalkulator .ke-calc-grid{display:grid;grid-template-columns:minmax(0,1fr)}#ke-kalkulator .ke-calc-address-box{padding:10px}}

#ke-kalkulator .ke-calc-check a{color:#e9c477;text-decoration:underline}

/* v2.8.9: compact currency choice inside existing price tile. */
#ke-kalkulator .ke-fx-picker{display:flex;flex-direction:column;gap:6px;margin-top:12px}
#ke-kalkulator .ke-fx-picker label{font-size:11px;line-height:1.3;font-weight:600;color:#e9c477}
#ke-kalkulator .ke-fx-picker select{height:36px;font-size:12px;padding:5px 7px;max-width:100%;width:100%;border-color:#685334}
#ke-kalkulator #ke-fx-info{color:#c8baa1;font-size:10px;line-height:1.45;overflow-wrap:anywhere}

/* v2.8.11 – address suggestions, intentionally scoped to our own calculator */
#ke-kalkulator .ke-suggest-wrap{position:relative;display:block;max-width:100%}
#ke-kalkulator .ke-suggest-wrap>input{width:100%}
#ke-kalkulator .ke-suggest-list{position:absolute;inset:auto 0 auto 0;top:calc(100% + 2px);z-index:500;display:block;max-height:210px;overflow:auto;overscroll-behavior:contain;background:#171410;border:1px solid #927040;border-radius:6px;box-shadow:0 9px 24px #0009;padding:4px}
#ke-kalkulator .ke-suggest-list[hidden]{display:none!important}
#ke-kalkulator .ke-suggest-option{display:block;padding:10px 9px;border-radius:4px;color:#f4eadd;font-size:12px;line-height:1.45;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
#ke-kalkulator .ke-suggest-option:hover,#ke-kalkulator .ke-suggest-option.ke-suggest-active{background:#443321;color:#fff}
#ke-kalkulator .ke-fx-picker{margin-top:11px}
@media(max-width:600px){#ke-kalkulator .ke-suggest-list{max-height:172px}#ke-kalkulator .ke-suggest-option{font-size:13px;padding:11px 8px}}

/* v2.8.13 — compact and legible pickup / delivery details on all screen sizes */
#ke-kalkulator .ke-calc-address-intro{border-top:1px solid #4b3b25;padding-top:13px;margin-top:4px;letter-spacing:.10em}
#ke-kalkulator .ke-calc-address-intro span{letter-spacing:normal;font-size:11px}
#ke-kalkulator .ke-calc-address-at-top{gap:12px}
#ke-kalkulator .ke-calc-address-box{padding:14px 13px;background:#16130e;border:1px solid #665032;border-radius:8px;gap:11px}
#ke-kalkulator .ke-calc-address-box legend{font-size:13px;color:#e9c477;padding:0 8px}
#ke-kalkulator .ke-calc-address-box label{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:12px;line-height:1.4}
#ke-kalkulator .ke-calc-address-box select,#ke-kalkulator .ke-calc-address-box input{width:100%;max-width:100%}
#ke-kalkulator .ke-postcode-help{font-size:11px;line-height:1.5;color:#b8a88d;margin:0}
#ke-kalkulator .ke-postcode-choices{display:flex;flex-wrap:wrap;gap:6px}
#ke-kalkulator .ke-postcode-choice{border:1px solid #886c40;background:#2b2318;color:#f0dab4;padding:7px 10px;min-height:35px;border-radius:5px;font:600 12px Arial,sans-serif;cursor:pointer}
#ke-kalkulator .ke-postcode-choice:focus-visible,#ke-kalkulator .ke-postcode-choice:hover{outline:2px solid #caa45b;outline-offset:1px}
@media(max-width:600px){#ke-kalkulator .ke-calc-address-box{padding:11px 10px;gap:10px}#ke-kalkulator .ke-postcode-help{font-size:11px}}

/* v2.8.14 — clear reading order: collection first, delivery second. */
#ke-kalkulator .ke-calc-address-at-top{display:flex;flex-direction:column;gap:16px}
#ke-kalkulator .ke-calc-address-box{width:100%;min-width:0;position:relative}
#ke-kalkulator .ke-calc-address-box legend{font-weight:800;font-size:14px;letter-spacing:.01em}
#ke-kalkulator .ke-calc-address-box:focus-within{border-color:#c79b4b}
#ke-kalkulator .ke-postcode-help{padding-left:3px}
@media(max-width:600px){#ke-kalkulator .ke-calc-address-at-top{gap:14px}}
