.jd-booking{--jd-gold:#FCB900;--jd-bg:#171819;--jd-card:#242526;max-width:1120px;margin:25px auto;padding:clamp(16px,3vw,35px);background:var(--jd-bg);color:#fff;border:1px solid #57451e;border-radius:20px;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box}.jd-booking *{box-sizing:border-box}.jd-booking header small{color:var(--jd-gold);font-weight:800;letter-spacing:1px}.jd-booking h2{color:#fff;font-size:clamp(25px,4vw,36px);margin:10px 0}.jd-booking h3{color:var(--jd-gold);margin:22px 0 12px}.jd-booking p{color:#ddd}.jd-legend{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0;font-size:13px}.jd-legend span{display:flex;align-items:center;gap:5px}.jd-legend i{display:inline-block;width:13px;height:13px;border-radius:4px}.jd-free{background:#1DBF73}.jd-busy{background:#E54848}.jd-pending{background:#FCB900}.jd-off{background:#555}.jd-month{display:flex;align-items:center;justify-content:space-between;max-width:560px;margin:22px auto 12px}.jd-month button{background:#343434;color:white;border:1px solid #777;border-radius:8px;cursor:pointer;font-size:26px;width:42px;height:42px}.jd-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-width:560px;margin:auto}.jd-calendar .jd-week{font-size:12px;color:#bbb;text-align:center;padding:7px 0}.jd-calendar button{min-width:0;min-height:59px;border:2px solid transparent;border-radius:9px;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:15px;font-weight:bold;padding:5px 2px;cursor:pointer}.jd-calendar button small{font-size:10px;font-weight:normal}.jd-calendar button.jd-free{background:#159B58}.jd-calendar button.jd-busy{background:#CC3535}.jd-calendar button.jd-pending{background:#D89E00}.jd-calendar button.jd-off{background:#363636;color:#aaa}.jd-calendar button:disabled{cursor:not-allowed;opacity:.85}.jd-calendar button.jd-active{border-color:#fff;box-shadow:0 0 0 3px var(--jd-gold),0 0 16px rgba(252,185,0,.36)}.jd-calendar button:focus-visible,.jd-booking button:focus-visible,.jd-booking input:focus-visible,.jd-booking select:focus-visible{outline:3px solid var(--jd-gold);outline-offset:2px}.jd-form{margin-top:30px;border-top:1px solid #65512c;padding-top:12px}.jd-selected{color:var(--jd-gold)!important;font-weight:bold}.jd-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.jd-booking label{display:block;color:#eee;font-weight:600;font-size:14px}.jd-booking input:not([type=checkbox]),.jd-booking select,.jd-booking textarea{display:block;width:100%;margin-top:6px;margin-bottom:14px;background:#292a2c;color:white;border:1px solid #75633c;border-radius:9px;padding:12px;font-size:16px}.jd-booking select option{background:#292a2c}.jd-booking .jd-consent{display:flex;gap:10px;align-items:flex-start;font-weight:normal;margin:12px 0}.jd-consent input{margin-top:4px;flex:none}.jd-consent a{color:var(--jd-gold)}.jd-hp{position:absolute!important;left:-9999px!important;opacity:0!important}.jd-submit{border:0;border-radius:30px;padding:15px 28px;background:var(--jd-gold);color:#151515;font-weight:800;cursor:pointer;font-size:15px}.jd-submit:disabled{opacity:.45;cursor:not-allowed}.jd-message{font-weight:600}.jd-message.jd-error{color:#ff7777}.jd-message.jd-ok{color:#80df9e}@media(max-width:600px){.jd-fields{grid-template-columns:1fr}.jd-calendar{gap:3px}.jd-calendar button{min-height:53px;font-size:13px}.jd-calendar button small{font-size:8px}.jd-booking{padding:14px}}

.jd-package-context{border-left:3px solid #FCB900;padding:10px 14px;background:#2b2619;color:#ffe39a!important;border-radius:6px}

/* JD 2.3.1 — jasno vidljiv izbor usluge, samo na javnoj rezervacionoj formi. */
.jd-booking .jd-form .jd-service-row select[name="service"] {
  display: block !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: none !important;
  padding: 0 42px 0 15px !important;
  margin: 6px 0 14px !important;
  line-height: normal !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  color: #FCB900 !important;
  -webkit-text-fill-color: #FCB900 !important;
  background-color: #222325 !important;
  border: 2px solid #FCB900 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  opacity: 1 !important;
  cursor: pointer;
  color-scheme: dark;
}
.jd-booking .jd-form .jd-service-row select[name="service"]:hover,
.jd-booking .jd-form .jd-service-row select[name="service"]:focus {
  background-color: #30302a !important;
  border-color: #FCB900 !important;
  box-shadow: 0 0 0 3px rgba(252,185,0,.22) !important;
}
.jd-booking .jd-form .jd-service-row select[name="service"] option {
  color: #FCB900 !important;
  background-color: #1e1f20 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: normal !important;
}
.jd-booking .jd-form .jd-service-row .jd-field-service {
  color: #FCB900 !important;
  font-weight: 800 !important;
}
@media(max-width:600px) {
  .jd-booking .jd-form .jd-service-row select[name="service"] {
    height: 54px !important;
    min-height: 54px !important;
    font-size: 16px !important;
  }
}

/* JD 2.3.2 — intenzivnije boje statusa i diskretna interakcija na kalendaru. */
.jd-booking .jd-calendar button.jd-free:not(:disabled):hover{background:#1DBF73;box-shadow:0 3px 15px rgba(29,191,115,.25)}
.jd-booking .jd-calendar button.jd-busy:not(:disabled):hover{background:#E54848}
.jd-booking .jd-calendar button.jd-pending:not(:disabled):hover{background:#FCB900;color:#171819}
.jd-booking .jd-calendar button.jd-free,.jd-booking .jd-calendar button.jd-busy,.jd-booking .jd-calendar button.jd-pending{transition:background-color .16s ease,box-shadow .16s ease,border-color .16s ease}
.jd-booking .jd-month button:hover{border-color:#FCB900;color:#FCB900}
@media(prefers-reduced-motion:reduce){.jd-booking .jd-calendar button{transition:none!important}}

/* JD 2.3.4 — stabilan redoslijed i kad je HTML stranice privremeno keširan. */
.jd-booking .jd-fields > label:has([name="service"]){order:-10!important}
.jd-booking .jd-fields > label:has([name="full_name"]){order:-9!important}
.jd-booking .jd-fields > label:has([name="phone"]){order:-8!important}
.jd-booking .jd-fields > label:has([name="email"]){order:-7!important}
.jd-booking .jd-fields > label:has([name="make"]){order:-6!important}
.jd-booking .jd-fields > label:has([name="model"]){order:-5!important}
.jd-booking .jd-fields > label:has([name="car_year"]){order:-4!important}
.jd-booking .jd-fields > label:has([name="car_color"]){order:-3!important}

/* JD 2.3.5 — dodatna stabilnost redoslijeda na mobilnim preglednicima. */
@media(max-width:600px){.jd-booking .jd-fields{display:grid!important;grid-template-columns:1fr!important}}

/* JD 2.3.6 — determinističan raspored (bez :has), uključujući Samsung Internet. */
.jd-booking .jd-form .jd-fields > .jd-field-service{order:0!important}
.jd-booking .jd-form .jd-fields > .jd-field-full_name{order:1!important}
.jd-booking .jd-form .jd-fields > .jd-field-phone{order:2!important}
.jd-booking .jd-form .jd-fields > .jd-field-email{order:3!important}
.jd-booking .jd-form .jd-fields > .jd-field-make{order:4!important}
.jd-booking .jd-form .jd-fields > .jd-field-model{order:5!important}
.jd-booking .jd-form .jd-fields > .jd-field-car_year{order:6!important}
.jd-booking .jd-form .jd-fields > .jd-field-car_color{order:7!important}
@media(max-width:768px){
 .jd-booking .jd-form .jd-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .jd-booking .jd-form .jd-fields > label{grid-column:auto!important;min-width:0}
}

/* JD 2.3.7 — usluga je zaseban red iznad svih licnih i podataka o vozilu.
   Nije dio .jd-fields grida; CSS redoslijed kolona vise ne moze da je premjesti. */
.jd-booking .jd-form .jd-service-row{display:block!important;width:100%!important;max-width:100%!important;clear:both!important;margin:12px 0 4px!important;position:relative!important}
.jd-booking .jd-form .jd-service-row > .jd-field-service{display:block!important;width:100%!important;color:#FCB900!important;font-weight:800!important;float:none!important}
.jd-booking .jd-form .jd-service-row select[name="service"]{width:100%!important;max-width:100%!important}
.jd-booking .jd-form .jd-fields{clear:both!important}
@media(max-width:768px){.jd-booking .jd-form .jd-service-row{grid-column:1/-1!important}.jd-booking .jd-form .jd-fields{grid-template-columns:minmax(0,1fr)!important}}


/* JD 2.3.8 — naglasena usluga, ugodniji razmak i veličina vozila odmah iza modela. */
.jd-booking .jd-form .jd-service-row {
  margin: 18px 0 27px !important;
  padding: 0 !important;
}
.jd-booking .jd-form .jd-service-row > .jd-field-service {
  font-size: 16px !important;
  letter-spacing: .1px;
  font-weight: 800 !important;
}
.jd-booking .jd-form .jd-service-row select[name="service"] {
  min-height: 62px !important;
  height: 62px !important;
  margin: 9px 0 0 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  padding: 0 48px 0 17px !important;
  background-color: #25231c !important;
  box-shadow: 0 0 0 1px rgba(252,185,0,.12) !important;
}
.jd-booking .jd-form .jd-fields > .jd-field-vehicle_size {order:6!important;}
.jd-booking .jd-form .jd-fields > .jd-field-car_year {order:7!important;}
.jd-booking .jd-form .jd-fields > .jd-field-car_color {order:8!important;}
.jd-booking .jd-form .jd-fields select[name="vehicle_size"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: #292a2c !important;
  border-color: #75633c !important;
  min-height: 48px !important;
  line-height: 1.35 !important;
  cursor: pointer;
  color-scheme: dark;
}
.jd-booking .jd-form .jd-fields select[name="vehicle_size"]:focus {
  border-color: #FCB900 !important;
}
.jd-booking .jd-form .jd-fields select[name="vehicle_size"] option {
  background-color: #292a2c !important;
  color: #fff !important;
}
/* Mobilni pregledači u "desktop site" režimu često prijavljuju širi viewport.
   Touch pravilo omogućava jedan stupac i u tom slučaju. */
@media (max-width:900px), (hover:none) and (pointer:coarse) {
  .jd-booking .jd-form .jd-fields {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 9px !important;
  }
  .jd-booking .jd-form .jd-fields > label {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1/-1 !important;
  }
  .jd-booking .jd-form .jd-service-row select[name="service"] {
    font-size: 18px !important;
    min-height: 62px !important;
    height: 62px !important;
  }
  .jd-booking .jd-form .jd-service-row {margin-bottom: 24px !important;}
}
