/* ===== JCR FRONTEND STYLES ===== */
#jcr-booking-wrap { font-family: 'Segoe UI', Arial, sans-serif; max-width: 1100px; margin: 0 auto; }

/* Form Card */
.jcr-form-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.jcr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.jcr-field { display: flex; flex-direction: column; }
.jcr-field label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.jcr-req { color: #e87722; }
.jcr-field input,
.jcr-field select,
.jcr-field textarea,
#jcr-search-wrap input,
#jcr-search-wrap select,
#jcr-search-wrap textarea,
#jcr-booking-wrap input[type="text"],
#jcr-booking-wrap input[type="email"],
#jcr-booking-wrap input[type="tel"],
#jcr-booking-wrap input[type="number"],
#jcr-booking-wrap select,
#jcr-booking-wrap textarea {
  border: 1.5px solid #d8d8d8 !important;
  border-radius: 3px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  color: #333 !important;
  outline: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.jcr-field input:focus,
.jcr-field select:focus,
.jcr-field textarea:focus,
#jcr-search-wrap input:focus,
#jcr-search-wrap select:focus,
#jcr-booking-wrap input:focus,
#jcr-booking-wrap select:focus,
#jcr-booking-wrap textarea:focus {
  border-color: #e87722 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(232,119,34,0.1) !important;
}
/* Qty input gets its own treatment — small box, not full width */
#jcr-booking-wrap input.jcr-qty-input,
.jcr-qty-input {
  width: 50px !important;
  height: 34px !important;
  text-align: center !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 9px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #333 !important;
  background: #ffffff !important;
}
.jcr-input-icon { position: relative; }
.jcr-input-icon input { padding-right: 42px; cursor: pointer; }
.jcr-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; display: inline-flex; align-items: center; }
.jcr-icon svg { display: block; }
.jcr-field-full { grid-column: 1 / -1; }

/* Buttons */
.jcr-btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.jcr-btn-primary { background: #e87722; color: #fff; }
.jcr-btn-primary:hover { background: #cf6519; }
.jcr-btn-outline { background: transparent; border: 2px solid #e87722; color: #e87722; }
.jcr-btn-full { width: 100%; text-align: center; margin-top: 20px; }
.jcr-btn-wrap { text-align: center; margin-top: 24px; }
.jcr-btn-back { background: none; border: none; color: #e87722; font-size: 14px; cursor: pointer; font-weight: 600; padding: 0; }
.jcr-btn-back:hover { text-decoration: underline; }

/* Back Bar */
.jcr-back-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.jcr-search-summary { font-size: 13px; color: #666; }

/* Loading */
.jcr-loading { text-align: center; padding: 40px; }
.jcr-spinner { width: 40px; height: 40px; border: 4px solid #f0f0f0; border-top-color: #e87722; border-radius: 50%; animation: jcrSpin .8s linear infinite; margin: 0 auto 12px; }
@keyframes jcrSpin { to { transform: rotate(360deg); } }

/* Vehicle Cards */
.jcr-vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.jcr-vehicle-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.jcr-vehicle-card:hover { border-color: #e87722; transform: translateY(-2px); }
.jcr-vehicle-card.not-available { opacity: .7; }
.jcr-vehicle-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.jcr-vehicle-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg,#f0f0f0,#e0e0e0); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.jcr-vehicle-body { padding: 18px; }
.jcr-vehicle-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.jcr-vehicle-name { font-size: 18px; font-weight: 700; color: #222; }
.jcr-vehicle-type { font-size: 12px; color: #888; font-weight: 500; background: #f5f5f5; padding: 3px 8px; border-radius: 20px; }
.jcr-avail-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.jcr-avail-badge.available { background: #dcfce7; color: #16a34a; }
.jcr-avail-badge.not-available { background: #fee2e2; color: #dc2626; }
.jcr-vehicle-specs { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.jcr-spec { font-size: 12px; color: #666; display: flex; align-items: center; gap: 4px; }
.jcr-vehicle-price { font-size: 22px; font-weight: 800; color: #e87722; margin: 12px 0 6px; }
.jcr-vehicle-price span { font-size: 13px; color: #888; font-weight: 400; }
.jcr-total-price { font-size: 13px; color: #444; margin-bottom: 14px; }
.jcr-unit-selector { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.jcr-unit-selector label { font-size: 13px; color: #555; font-weight: 600; }
.jcr-qty-btn { width: 34px !important; height: 34px !important; border-radius: 9px !important; border: 2px solid #e87722 !important; background: #fff !important; color: #e87722 !important; font-size: 18px !important; line-height: 1 !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; font-weight: bold !important; padding: 0 !important; transition: all .15s !important; box-shadow: none !important; }
.jcr-qty-btn:hover { background: #e87722 !important; color: #fff !important; }
.jcr-qty-btn:active { transform: scale(0.95); }
.jcr-qty-input::-webkit-outer-spin-button,
.jcr-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jcr-book-vehicle-btn { width: 100%; padding: 12px; border-radius: 8px; background: #e87722; color: #fff; font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: background .2s; }
.jcr-book-vehicle-btn:hover { background: #cf6519; }
.jcr-book-vehicle-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Vehicle Detail (Step 3) */
.jcr-detail-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 24px; }
.jcr-detail-inner { display: grid; grid-template-columns: 1fr 1fr; }
.jcr-detail-img { width: 100%; height: 280px; object-fit: cover; display: block; }
.jcr-detail-info { padding: 28px; }
.jcr-detail-info h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #222; }
.jcr-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.jcr-feature-tag { background: #fff8f0; color: #e87722; border: 1px solid #fbd0a3; border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 600; }

/* Booking Form Card */
.jcr-booking-form-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.jcr-section-title { font-size: 16px; font-weight: 700; color: #222; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }

/* Price Summary */
.jcr-price-summary { background: #fff8f0; border: 2px solid #fbd0a3; border-radius: 12px; padding: 18px; margin: 20px 0; }
.jcr-price-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #555; }
.jcr-price-row.total { font-size: 16px; font-weight: 700; color: #222; border-top: 1.5px solid #fbd0a3; margin-top: 8px; padding-top: 10px; }
.jcr-price-row .highlight { color: #e87722; font-weight: 700; }

/* Payment */
.jcr-payment-section { margin-top: 24px; }
.jcr-payment-type, .jcr-payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.jcr-radio-card { display: flex; align-items: center; gap: 10px; border: 2px solid #e0e0e0; border-radius: 10px; padding: 14px; cursor: pointer; transition: border-color .2s; }
.jcr-radio-card:hover { border-color: #e87722; }
.jcr-radio-card input[type="radio"] { accent-color: #e87722; width: 16px; height: 16px; }
.jcr-radio-card input[type="radio"]:checked + .jcr-radio-content { color: #e87722; }
.jcr-radio-content { display: flex; flex-direction: column; }
.jcr-radio-content strong { font-size: 14px; font-weight: 700; }
.jcr-radio-content span { font-size: 12px; color: #888; margin-top: 2px; }
.jcr-payment-amount-display { background: #f5f5f5; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; color: #444; }
.jcr-payment-amount-display strong { color: #e87722; font-size: 18px; }
.jcr-stripe-card { border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fff; }

/* Pay at Pickup Notice */
.jcr-notice-box { background: #fff8f0; border: 1.5px solid #fbd0a3; color: #8a4a10; padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin: 16px 0; }
.jcr-radio-highlight { background: #fff8f0; border-color: #fbd0a3 !important; }

/* Confirmation */
.jcr-confirmation-card { text-align: center; background: #fff; border-radius: 20px; padding: 50px 40px; box-shadow: 0 8px 40px rgba(0,0,0,0.1); max-width: 500px; margin: 0 auto; }
.jcr-success-icon { width: 80px; height: 80px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.jcr-confirmation-card h2 { font-size: 28px; font-weight: 800; color: #222; margin: 0 0 10px; }
.jcr-conf-number-box { background: #fff8f0; border: 2px solid #e87722; border-radius: 12px; padding: 20px; margin: 24px 0; }
.jcr-conf-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #888; margin-bottom: 6px; }
.jcr-conf-number { display: block; font-size: 32px; font-weight: 900; color: #e87722; letter-spacing: 4px; }
.jcr-conf-note { font-size: 14px; color: #666; line-height: 1.6; }

/* Error */
.jcr-error { color: #dc2626; font-size: 13px; padding: 8px 12px; background: #fee2e2; border-radius: 6px; margin-top: 8px; }
.jcr-no-results { text-align: center; padding: 40px; background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.jcr-no-results h3 { font-size: 20px; color: #444; }

/* Responsive */
@media (max-width: 768px) {
  .jcr-form-grid, .jcr-payment-type, .jcr-payment-methods { grid-template-columns: 1fr; }
  .jcr-vehicles-grid { grid-template-columns: 1fr; }
  .jcr-detail-inner { grid-template-columns: 1fr; }
}
