/* ================================ 
   CPC COURIER CALCULATOR – FULL CSS
   ================================ */

/* ===== ROOT WRAPPER ===== */
/* FORCE calculator to ignore Elementor layout */

#cpc-calculator {
  max-width: 1400px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  font-family: Arial, sans-serif;
}

#cpc-calculator * {
  box-sizing: border-box;
}

/* FORCE LEFT COLUMN WIDTH */
.cpc-main {
  width: auto;
  min-width: 0;
}

/* ===== STEP DOTS ===== */
.cpc-steps {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  margin: 0 auto 30px;
}

.cpc-steps span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  opacity: .4;
}

.cpc-steps span.active {
  background: #063584;
  color: #fff;
  opacity: 1;
}

/* ===== MAIN LAYOUT ===== */
.cpc-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 40px;
  align-items: start;
}

/* ===== STEP VISIBILITY ===== */
.cpc-step {
  display: none;
}

.cpc-step.active {
  display: block;
}

/* ===== FORM ELEMENTS ===== */
.cpc-step label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

/* ===== FORM FIELDS – BLUE STYLE ===== */

.cpc-step input,
.cpc-step select,
.cpc-step textarea{

  width:100%;
  min-height:52px;
  padding:12px 16px;

  border:2px solid #1e4db7;
  border-radius:14px;

  font-size:15px;
  line-height:1.4;

  background:#fff;
  box-sizing:border-box;
}

/* dropdown spacing */
.cpc-step select{
  cursor:pointer;
  padding-right:40px;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23063584' d='M5.5 7l4.5 5 4.5-5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px;
}

/* textarea exception */
.cpc-step textarea{
  height:auto;
  padding:14px 16px;
}

/* placeholder style */
.cpc-step input::placeholder,
.cpc-step textarea::placeholder{
  color:#666;
}

/* focus effect */
.cpc-step input:focus,
.cpc-step select:focus,
.cpc-step textarea:focus{

  outline:none;
  border-color:#063584;
  box-shadow:0 0 0 3px rgba(6,53,132,.15);
}

/* spacing between fields */
.cpc-step input,
.cpc-step select,
.cpc-step textarea{
  margin-bottom:14px;
}
/* ===== BUTTONS ===== */
.cpc-next,
.cpc-back,
#cpc-calc,
#cpc-book {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 25px;
  font-weight: 600;
}

.cpc-next,
#cpc-calc,
#cpc-book {
  background: #063584;
  color: #fff;
}

.cpc-next:hover,
#cpc-calc:hover,
#cpc-book:hover {
  background: #042554;
}

.cpc-back {
  background: #e5e7eb;
  color: #333;
  margin-right: 10px;
}

.cpc-left {
  width: 100%;
  max-width: 100%;
}

/* ===== VEHICLE GRID ===== */
.cpc-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* hide radios safely */
.vehicle-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

/* card */
.vehicle-card label {
  display: block;
  padding: 18px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  text-align: center;
  cursor: pointer;
  background: #f9fafb;
  transition: all .25s ease;
}

.vehicle-card img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.vehicle-card h4 {
  margin: 6px 0;
  font-size: 15px;
}

.vehicle-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #555;
}

/* hover */
.vehicle-card label:hover {
  border-color: #063584;
}

/* selected */
.vehicle-card input:checked + label {
  border-color: #063584;
  background: #eef3fb;
  box-shadow: 0 0 0 3px rgba(6,53,132,.15);
}

/* ===== SUMMARY SIDEBAR ===== */
.cpc-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 20px;
  width: 100%;
}

.cpc-summary h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.cpc-summary p {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 14px;
}

.cpc-summary h2 {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #ddd;
  color: #063584;
  font-size: 22px;
  text-align: right;
}

/* Step 3 spacing fix */
.step-3 h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.step-3 input,
.step-3 textarea,
.step-3 select {
  background: #f8fafc;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .cpc-layout {
    grid-template-columns: 1fr;
  }

  .cpc-summary {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }

}
/* ===== STEP 1 BUTTON ALIGNMENT FIX ===== */

.cpc-step1-actions{
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:25px;
  flex-wrap:wrap;
}

/* CONTINUE BUTTON */
#cpc-calc{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:48px;
  padding:0 24px;
  background:#063584;
  color:#fff;
  border:2px solid #063584;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}

/* BOOK DIRECT BUTTON */
.cpc-book-direct{
margin-top:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:48px;
  padding:0 24px;
  border:2px solid #063584;
  border-radius:8px;
  background:#fff;
  color:#063584;
  font-weight:700;
  font-size:15px;
  line-height:1;
  text-decoration:none;
  transition:all .25s ease;
}

/* HOVER */
.cpc-book-direct:hover{
  background:#063584;
  color:#fff;
}
.cpc-step input[type="date"],
.cpc-step input[type="time"]{
  padding:10px 16px;
}