/* ================= BOOK TRUCK FORM (RED + PROFESSIONAL WEIGHT) ================= */

.book-truck{ padding: 90px 0; background: #ffffff; }
.book-truck-wrap{ width: 92%; max-width: 1120px; margin: auto; }

/* Heading */
.book-truck-head{ text-align: center; margin-bottom: 32px; }
.book-truck-head h1{ font-size: 44px; font-weight: 800; color: #111; margin-bottom: 10px; }
.book-truck-head h1 span{ color: #32CD32; }
.book-truck-head p{ color: #5b5b5b; font-size: 15px; line-height: 1.7; max-width: 760px; margin: auto; font-weight: 500; }

/* Card */
.book-truck-card{
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.10);
  padding: 22px;
}

/* Blocks */
.book-truck-block{
  padding: 18px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.book-truck-block-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.book-truck-dot{
  width: 10px; height: 10px; background: #32CD32; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,0,0,0.10);
}

.book-truck-block-title h3{
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-truck-ico{ font-size: 16px; }

/* Grid helpers */
.book-truck-grid{ display: grid; gap: 14px; }
.book-truck-grid.two{ grid-template-columns: repeat(2, 1fr); }
.book-truck-grid.three{ grid-template-columns: repeat(3, 1fr); }
.book-truck-grid.four{ grid-template-columns: repeat(4, 1fr); }

/* Field */
.book-truck-field label{
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #111;
  margin-bottom: 7px;
}
.book-truck-field label span{ color: #32CD32; font-weight: 700; }

/* Input with icon */
.book-truck-input{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  transition: 0.25s ease;
}

.book-truck-input.textarea{ align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }

.book-truck-icon{ font-size: 15px; opacity: 0.85; }

.book-truck-input input,
.book-truck-input select{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.book-truck-input textarea{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  resize: vertical;
  min-height: 110px;
  padding: 6px 0;
}

.book-truck-input:focus-within{
  border-color: rgba(9, 255, 0, 0.45);
  box-shadow: 0 0 0 4px rgba(255,0,0,0.10);
}

.book-truck-field.full{ margin-top: 14px; }

.book-truck-err{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #32CD32;
  min-height: 16px;
}

/* CAPTCHA */
.book-truck-captcha{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.book-truck-captcha-left{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.book-truck-captcha-box{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,0,0,0.06);
  border: 1px solid rgba(255,0,0,0.14);
}

.book-truck-captcha-label{
  font-weight: 700;
  color: #111;
  font-size: 13px;
}

.book-truck-captcha-code{
  font-weight: 800;
  letter-spacing: 4px;
  color: #32CD32;
  font-size: 16px;
  user-select: none;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
}

.book-truck-refresh{
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  transition: 0.25s ease;
}
.book-truck-refresh:hover{ background: #1eff00; transform: translateY(-1px); }

/* Submit */
.book-truck-submit{
  width: 100%;
  margin-top: 10px;
  border: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #15ff00, #1de13e);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: not-allowed;
  transition: 0.3s ease;
  opacity: 0.55;
  box-shadow: 0 16px 35px rgba(255,0,0,0.22);
}

.book-truck-submit.enabled{
  cursor: pointer;
  opacity: 1;
}

.book-truck-submit.enabled:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.book-truck-note{
  margin-top: 12px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  color: #333;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 992px){
  .book-truck-head h1{ font-size: 36px; }
  .book-truck-grid.four{ grid-template-columns: repeat(2, 1fr); }
  .book-truck-grid.three{ grid-template-columns: repeat(2, 1fr); }
  .book-truck-captcha{ grid-template-columns: 1fr; }
}

@media(max-width: 600px){
  .book-truck{ padding: 60px 0; margin-top: 40px; }
  .book-truck-head h1{ font-size: 28px; }
  .book-truck-card{ padding: 14px; }
  .book-truck-block{ padding: 14px; }
  .book-truck-grid.two,
  .book-truck-grid.three,
  .book-truck-grid.four{ grid-template-columns: 1fr; }

}




/* ===== Item Photo + QR block ===== */
.book-truck-media-grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:18px;
  margin-top:10px;
}
@media (max-width: 900px){
  .book-truck-media-grid{ grid-template-columns: 1fr; }
}

.book-truck-upload{
  border:1px dashed rgba(0,0,0,.18);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.65);
}
.book-truck-file{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.book-truck-upload-hint{
  font-size:12px;
  opacity:.75;
  margin-top:8px;
}

.book-truck-camera{
  margin-top:14px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.book-truck-camera-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.book-truck-camera-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
.book-truck-camera-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.book-truck-cam-btn{
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.book-truck-cam-btn.outline{
  background:#fff;
  color:#111;
}
.book-truck-cam-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.book-truck-camera-body{
  display:grid;
  grid-template-columns: 1fr .9fr;
  gap:12px;
  padding:12px;
}
@media (max-width: 900px){
  .book-truck-camera-body{ grid-template-columns:1fr; }
}

.book-truck-video-wrap{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#000;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
#camVideo{
  width:100%;
  height:100%;
  max-height:320px;
  object-fit:cover;
  display:block;
}

.book-truck-preview-wrap{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:10px;
  background: rgba(255,255,255,.7);
}
.book-truck-preview-title{
  font-weight:800;
  margin-bottom:8px;
}
#photoPreview{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#f3f4f6;
  display:block;
}
.book-truck-preview-note{
  font-size:12px;
  opacity:.75;
  margin-top:8px;
}

/* QR Card */
.book-truck-qr-card{
  position:sticky;
  top:14px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  background:#fff;
  padding:14px;
}
.book-truck-qr-title{
  font-weight:900;
  font-size:16px;
}
.book-truck-qr-sub{
  margin:6px 0 12px;
  font-size:13px;
  opacity:.8;
  line-height:1.5;
}
.book-truck-qr-img{
  border-radius:14px;
  border:1px dashed rgba(0,0,0,.18);
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.7);
}
.book-truck-qr-img img{
  width:100%;
  max-width:220px;
  height:auto;
  display:block;
}
.book-truck-qr-foot{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
}
.book-truck-qr-foot a{
  text-decoration:none;
  font-weight:800;
}
