/* ════════════════════════════════════════════════════════════
   Jet Logistics Solution v3.0.0 — Styles
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────── */
.jls-wrap {
  --jls-btn: #C41E3A;
  --jls-card-bg: rgba(0, 0, 0, 0.35);
  --jls-field-bg: rgba(255, 255, 255, 0.12);
  --jls-text: #FFFFFF;
  
  --jls-radius: 20px;
  --jls-radius-field: 999px; /* Pill shape */
  --jls-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --jls-field-h: 52px;
  --jls-gap: 20px;
}

/* ── Reset ────────────────────────────────── */
.jls-wrap,
.jls-wrap *,
.jls-wrap *::before,
.jls-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.jls-wrap {
  width: 100%;
  font-family: var(--jls-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.jls-wrap input,
.jls-wrap select,
.jls-wrap textarea,
.jls-wrap button { font-family: var(--jls-font); }

/* ════════════════════════════════════════════
   CARD (Glassmorphism for all variants)
   ════════════════════════════════════════════ */

.jls-card {
  position: relative;
  max-width: 600px; /* More compact width to match screenshot */
  margin: 0 auto;
  border-radius: var(--jls-radius);
  padding: 35px 30px;
  background: var(--jls-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: var(--jls-text);
}

/* Simple inline variant - specific tweaks if needed */
.jls--simple .jls-card {
  max-width: 100%;
  padding: 20px 25px;
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */

.jls-header {
  margin-bottom: 30px;
  text-align: left; /* Left align like screenshot */
}

.jls-header h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jls--simple .jls-header {
    display: none; /* Hide header in simple inline form */
}

/* ════════════════════════════════════════════
   FORM — 2-Column Grid
   ════════════════════════════════════════════ */

.jls-form { position: relative; }

.jls-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.jls-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Labels */
.jls-field label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.jls-field label span { color: #F87171; margin-left: 4px; }

/* ── Inputs ───────────── */
.jls-field input,
.jls-field select,
.jls-field textarea {
  width: 100%;
  height: var(--jls-field-h);
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--jls-radius-field);
  background: var(--jls-field-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}

/* Fix dropdown text color for options */
.jls-field select option {
  color: #1a1a1a; /* Dark text for dropdown options so they are visible */
  background: #ffffff;
}

.jls-field textarea {
  height: auto;
  min-height: 52px;
  padding: 14px 20px;
  resize: vertical;
  border-radius: 26px; /* Pill shape adapted for textarea */
}

.jls-field input::placeholder,
.jls-field textarea::placeholder { 
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.jls-field input:focus,
.jls-field select:focus,
.jls-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

/* Select arrow */
.jls-field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  cursor: pointer;
}

/* ════════════════════════════════════════════
   AUTOCOMPLETE
   ════════════════════════════════════════════ */

.jls-autocomplete-wrap { position: relative; }

.jls-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.jls-suggestion-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #1a1a1a;
  transition: background .15s;
}

.jls-suggestion-item:hover { background: #f1f5f9; }

/* ════════════════════════════════════════════
   SUBMIT BUTTON
   ════════════════════════════════════════════ */

.jls-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--jls-field-h);
  border: none;
  border-radius: var(--jls-radius-field);
  padding: 0 24px;
  background: var(--jls-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s, background-color .2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.jls-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: color-mix(in srgb, var(--jls-btn) 90%, #000);
}

.jls-submit-btn:active { transform: translateY(0); }

.jls-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ════════════════════════════════════════════
   RESPONSE / RESULTS
   ════════════════════════════════════════════ */

.jls-response {
  display: none;
  margin-top: 20px;
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: jlsFadeUp .4s ease;
}

@keyframes jlsFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.jls-result-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.jls-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.jls-result-item {
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.jls-result-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.jls-result-item span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.jls-result-highlight { grid-column: 1 / -1; background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); }
.jls-result-highlight .jls-price {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

/* Error Response */
.jls-response.is-error {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
}

/* ════════════════════════════════════════════
   SIMPLE — Inline Single Row
   ════════════════════════════════════════════ */

.jls--simple .jls-form { width: 100%; }

.jls-inline-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.jls-inline-field { flex: 1 1 0%; min-width: 0; }
.jls-inline-field--select { flex: 0 0 180px; }

.jls--simple .jls-inline-field input,
.jls--simple .jls-inline-field select {
  width: 100%;
  height: var(--jls-field-h);
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--jls-radius-field);
  background: var(--jls-field-bg);
  color: #fff;
  font-size: 14px;
  transition: all .2s;
  -webkit-appearance: none;
  appearance: none;
}

.jls--simple .jls-inline-field select option {
  color: #1a1a1a;
  background: #ffffff;
}

.jls--simple .jls-inline-field input::placeholder { color: rgba(255, 255, 255, 0.7); }

.jls--simple .jls-inline-field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  cursor: pointer;
}

.jls--simple .jls-inline-field input:focus,
.jls--simple .jls-inline-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.jls--simple .jls-submit-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0 30px;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 640px) {
  .jls-fields { grid-template-columns: 1fr; gap: 15px; }
  .jls-card { padding: 25px 20px; }
  
  .jls-inline-row { flex-direction: column; align-items: stretch; }
  .jls-inline-field--select { flex: 0 0 auto; }
  .jls--simple .jls-submit-btn { width: 100%; }
}

/* ════════════════════════════════════════════
   ADMIN DASHBOARD UI
   ════════════════════════════════════════════ */

.jls-admin-wrap { 
  max-width: 900px; 
  margin-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.jls-admin-header {
  background: #fff;
  padding: 24px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jls-admin-header h1 {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.jls-admin-header h1 .dashicons { font-size: 26px; width: 26px; height: 26px; color: #C41E3A; }
.jls-admin-header p { margin: 0; color: #64748b; font-size: 14px; }

/* Tabs */
.jls-admin-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
}

.jls-admin-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
}

.jls-admin-tab:hover { color: #0f172a; }
.jls-admin-tab.active { background: #fff; color: #C41E3A; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

.jls-admin-panel { display: none; }
.jls-admin-panel.active { display: block; animation: jlsFadeIn .3s ease; }

@keyframes jlsFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Cards */
.jls-admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.jls-admin-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.jls-admin-card h3 { font-size: 15px; font-weight: 600; color: #334155; margin-bottom: 12px; }

.jls-admin-card .description { color: #64748b; font-size: 13px; margin-top: 6px; margin-bottom: 0; }
.jls-admin-card > .description { margin-top: -10px; margin-bottom: 20px; }

.jls-admin-card .form-table th { width: 240px; padding: 18px 10px 18px 0; font-weight: 500; color: #334155; }
.jls-admin-card .form-table td { padding: 12px 10px; }

/* Inputs */
.jls-input-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}

.jls-input-group:focus-within { border-color: #C41E3A; box-shadow: 0 0 0 2px rgba(196,30,58,0.1); }

.jls-input-prefix {
  padding: 0 12px;
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.jls-input-group input {
  border: none !important;
  box-shadow: none !important;
  padding: 8px 12px;
  width: 140px;
  font-size: 14px;
}

.jls-admin-card input[type="text"].regular-text,
.jls-admin-card input[type="text"].large-text,
.jls-admin-card input[type="number"] {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  min-height: 36px;
  box-shadow: none;
  transition: border-color .2s;
}

.jls-admin-card input[type="text"]:focus,
.jls-admin-card input[type="number"]:focus {
  border-color: #C41E3A;
  box-shadow: 0 0 0 2px rgba(196,30,58,0.1);
  outline: none;
}

.jls-admin-card .widefat { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: none; }
.jls-admin-card .widefat th { background: #f8fafc; font-weight: 600; color: #334155; border-bottom: 1px solid #e2e8f0; }
.jls-admin-card .widefat td { border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.jls-admin-card .widefat tr:last-child td { border-bottom: none; }

.jls-admin-card .widefat code {
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  color: #C41E3A;
  font-size: 13px;
}

.jls-admin-wrap .button-primary {
  background: #C41E3A !important;
  border-color: #C41E3A !important;
  box-shadow: 0 2px 6px rgba(196,30,58,0.3) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 4px 20px;
  font-weight: 600;
  text-shadow: none;
}
.jls-admin-wrap .button-primary:hover { background: #a01830 !important; border-color: #a01830 !important; }

.jls-admin-wrap .button-secondary {
  border-radius: 6px;
  border-color: #cbd5e1;
  color: #334155;
}

.jls-remove-tier { color: #ef4444; text-decoration: none; font-size: 13px; cursor: pointer; }
.jls-remove-tier:hover { color: #dc2626; text-decoration: underline; }

/* ── Service Manager — Legend ───────────────────────────── */
.jls-svc-legend {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.8;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.jls-svc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.jls-svc-badge--per-km { background: #dbeafe; color: #1d4ed8; }
.jls-svc-badge--fixed  { background: #dcfce7; color: #166534; }

/* ── Service Manager — Individual Cards ─────────────────── */
.jls-service-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #f8fafc;
  transition: box-shadow .2s, border-color .2s;
}
.jls-service-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); border-color: #cbd5e1; }

/* Card header row */
.jls-service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

/* Drag handle */
.jls-drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 20px;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.jls-drag-handle:hover  { color: #475569; background: #f1f5f9; }
.jls-drag-handle:active { cursor: grabbing; }

/* jQuery UI sortable states */
.ui-sortable-helper {
  box-shadow: 0 10px 30px rgba(0,0,0,0.14) !important;
  background: #fff !important;
  border-radius: 10px !important;
  opacity: 0.95;
}
.jls-svc-placeholder {
  border: 2px dashed #cbd5e1 !important;
  background: #f8fafc !important;
  border-radius: 10px;
  min-height: 58px;
  list-style: none;
}

/* Service label text input */
.jls-svc-label-input {
  flex: 1 1 180px;
  min-width: 0;
  height: 34px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: none !important;
  transition: border-color .2s;
}
.jls-svc-label-input:focus {
  border-color: #C41E3A !important;
  box-shadow: 0 0 0 2px rgba(196,30,58,0.1) !important;
  outline: none;
}

/* Type badge (synced with JS on type change) */
.jls-svc-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.jls-svc-type-badge--per-km { background: #dbeafe; color: #1d4ed8; }
.jls-svc-type-badge--fixed  { background: #dcfce7; color: #166534; }

/* Type selector dropdown */
.jls-svc-type-select {
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: #334155;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .2s;
}
.jls-svc-type-select:focus { border-color: #C41E3A; outline: none; }

/* Remove service button */
.jls-remove-service {
  margin-left: auto;
  flex-shrink: 0;
  color: #ef4444;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  line-height: 1;
}
.jls-remove-service:hover { color: #dc2626; text-decoration: underline; }

/* Card body — pricing fields */
.jls-service-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
}

/* Individual field block */
.jls-svc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
  flex: 1 1 150px;
}
.jls-svc-field-notes { flex: 2 1 260px; }

/* Field label */
.jls-svc-field > label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Hint text below inputs */
.jls-field-hint {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.4;
}

/* Constrain the number inputs inside .jls-input-group within a service card */
.jls-service-card .jls-input-group input { width: 100px; }

/* Notes input — span full width of its flex cell */
.jls-service-card .jls-svc-field-notes .regular-text { width: 100%; }

/* Lead Editor */
.jls-admin-lead {
    background: #fff;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.jls-admin-lead input[type="text"],
.jls-admin-lead select,
.jls-admin-lead textarea { width: 100%; max-width: 500px; border-radius: 6px; border: 1px solid #cbd5e1; }
.jls-admin-lead select { padding: 4px 8px; min-height: 32px; }

/* ------------------------------------------------------------
   NEW v3.0  BOX WEIGHT CHECKBOX & WARNING
   ------------------------------------------------------------ */

.jls-field--full { grid-column: 1 / -1; }

.jls-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.jls-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--jls-btn);
  cursor: pointer;
}
.jls-box-warning {
  margin-top: 10px;
  padding: 12px 16px;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 10px;
  color: #fecaca;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  animation: jlsFadeUp .3s ease;
}

/* ------------------------------------------------------------
   BOOK NOW BUTTON (inside result card)
   ------------------------------------------------------------ */

.jls-book-now-wrap { margin-top: 18px; display: flex; justify-content: center; }
.jls-book-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  border: none;
  border-radius: 999px;
  background: var(--jls-btn, #C41E3A);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 18px rgba(196,30,58,0.35);
  letter-spacing: 0.01em;
}
.jls-book-now-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,30,58,0.45); background: #a01830; }
.jls-book-now-btn:active { transform: translateY(0); }

/* ------------------------------------------------------------
   SIMPLE FORM  EXTRAS ROW
   ------------------------------------------------------------ */

.jls-simple-extras-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.jls-simple-extra-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 120px; min-width: 0; }
.jls-simple-extra-field--province { flex: 1.5 1 180px; }
.jls-simple-extra-field--check    { flex: 0 0 auto; align-self: flex-end; padding-bottom: 2px; }
.jls-simple-extra-field label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); letter-spacing: 0.02em; }
.jls-simple-extra-field input,
.jls-simple-extra-field select {
  height: var(--jls-field-h, 52px);
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--jls-radius-field, 999px);
  background: var(--jls-field-bg, rgba(255,255,255,0.12));
  color: #fff;
  font-size: 14px;
  font-family: var(--jls-font);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.jls-simple-extra-field input::placeholder { color: rgba(255,255,255,0.65); }
.jls-simple-extra-field select option { color: #1a1a1a; background: #fff; }
.jls-simple-extra-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
}
.jls-simple-box-warning { margin-top: 10px; }

@media (max-width: 640px) {
  .jls-simple-extras-row { flex-direction: column; align-items: stretch; }
  .jls-simple-extra-field--check { align-self: flex-start; }
}

/* ------------------------------------------------------------
   BOOKING MODAL OVERLAY
   ------------------------------------------------------------ */

#jls-booking-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#jls-booking-overlay.is-open { display: flex; animation: jlsOverlayIn .25s ease; }
@keyframes jlsOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.jls-bk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,10,20,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.jls-bk-modal {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 680px;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
  overflow-y: auto;
  scroll-behavior: smooth;
  animation: jlsModalSlide .3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
@keyframes jlsModalSlide {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.jls-bk-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, transform .15s;
  z-index: 10;
}
.jls-bk-close:hover { background: #e2e8f0; color: #0f172a; transform: scale(1.1); }
#jls-bk-content { padding: 28px 32px 36px; clear: both; }

.jls-bk-header { margin-bottom: 22px; }
.jls-bk-title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -0.02em; }
.jls-bk-notice {
  font-size: 13px; color: #64748b; line-height: 1.6;
  padding: 10px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; margin: 0;
}
.jls-bk-notice strong { color: #92400e; }

.jls-bk-summary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; color: #fff;
}
.jls-bk-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.jls-bk-summary-row:last-child { border-bottom: none; }
.jls-bk-summary-row span   { color: rgba(255,255,255,0.7); }
.jls-bk-summary-row strong { color: #fff; font-weight: 600; }
.jls-bk-total { margin-top: 8px !important; padding-top: 12px !important; border-top: 1px solid rgba(255,255,255,0.2) !important; border-bottom: none !important; }
.jls-bk-total span   { color: rgba(255,255,255,0.9); font-weight: 700; font-size: 15px; }
.jls-bk-total strong { font-size: 22px; font-weight: 800; color: #fbbf24; }

.jls-bk-section-title {
  font-size: 13px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 24px 0 12px;
}
.jls-bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jls-bk-field { display: flex; flex-direction: column; gap: 6px; }
.jls-bk-field label {
  font-size: 12px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.jls-bk-field label span { color: #ef4444; margin-left: 2px; }
.jls-bk-field input,
.jls-bk-field select,
#jls-booking-form textarea {
  height: 44px; padding: 0 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: #1e293b; background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%; -webkit-appearance: none; appearance: none;
}
#jls-booking-form textarea { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; margin-top: 0; }
.jls-bk-field input:focus,
.jls-bk-field select:focus,
#jls-booking-form textarea:focus {
  outline: none; border-color: #C41E3A; background: #fff;
  box-shadow: 0 0 0 3px rgba(196,30,58,0.1);
}
.jls-bk-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center; background-repeat: no-repeat; background-size: 10px 6px; cursor: pointer;
}

.jls-bk-methods { display: flex; flex-direction: column; gap: 10px; }
.jls-bk-method {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 18px;
  border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  background: #f8fafc; position: relative;
}
.jls-bk-method:hover       { border-color: #cbd5e1; background: #fff; }
.jls-bk-method.is-selected { border-color: #C41E3A; background: #fff7f7; box-shadow: 0 0 0 3px rgba(196,30,58,0.1); }
.jls-bk-method input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.jls-bk-method-label { font-size: 15px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.jls-bk-method.is-selected .jls-bk-method-label { color: #C41E3A; }
.jls-bk-method-desc { font-size: 13px; color: #64748b; line-height: 1.5; }

#jls-stripe-wrap { padding: 18px; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; margin-top: 12px; }
.jls-stripe-label { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.jls-stripe-element { padding: 12px 14px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px; }
.jls-stripe-error { color: #ef4444; font-size: 13px; margin-top: 8px; }

.jls-bk-error {
  padding: 12px 16px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px; color: #dc2626; font-size: 14px; font-weight: 500; margin-top: 16px;
}
.jls-bk-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.jls-bk-submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 40px; background: #C41E3A; color: #fff;
  font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif;
  border: none; border-radius: 999px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
}
.jls-bk-submit-btn:hover:not(:disabled) { background: #a01830; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,30,58,0.4); }
.jls-bk-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.jls-bk-instructions { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 18px 20px; margin-top: 16px; }
.jls-bk-instructions-title { font-size: 14px; font-weight: 700; color: #166534; margin-bottom: 10px; }
.jls-bk-instructions p { font-size: 14px; color: #166534; margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.jls-bk-ref { font-size: 13px !important; margin-top: 10px !important; color: #15803d !important; }

.jls-bk-confirm { text-align: center; padding: 20px 0; }
.jls-bk-confirm-icon { font-size: 56px; margin-bottom: 16px; animation: jlsBounceIn .5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes jlsBounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
.jls-bk-confirm-title { font-size: 24px; font-weight: 800; color: #0f172a; margin: 0 0 10px; letter-spacing: -0.02em; }
.jls-bk-confirm-id { font-size: 15px; color: #64748b; margin: 0 0 12px; }
.jls-bk-confirm-id strong { color: #C41E3A; }
.jls-bk-confirm-msg { font-size: 14px; color: #475569; line-height: 1.7; max-width: 440px; margin: 0 auto 20px; }
.jls-bk-done-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 36px; background: #0f172a; color: #fff;
  font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif;
  border: none; border-radius: 999px; cursor: pointer; margin-top: 4px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.jls-bk-done-btn:hover { background: #1e293b; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

@media (max-width: 540px) {
  .jls-bk-modal { border-radius: 16px; }
  #jls-bk-content { padding: 20px 18px 28px; }
  .jls-bk-grid { grid-template-columns: 1fr; }
  .jls-bk-actions { justify-content: stretch; }
  .jls-bk-submit-btn { width: 100%; }
  .jls-bk-title { font-size: 18px; }
}

/* ------------------------------------------------------------
   ADMIN  BOOKINGS LIST PAGE
   ------------------------------------------------------------ */

.jls-bookings-wrap { max-width: 1200px; margin-top: 20px; }
.jls-bookings-wrap .jls-admin-header { max-width: none; }
.jls-bookings-wrap .wp-list-table .column-customer_name { min-width: 180px; }
.jls-bookings-wrap .wp-list-table .column-route         { min-width: 200px; }
.jls-bookings-wrap .wp-list-table .column-status        { min-width: 120px; }
.jls-bookings-wrap .wp-list-table td { vertical-align: middle; padding: 12px 8px; line-height: 1.5; }
.jls-bookings-wrap .wp-list-table th { font-weight: 600; }
#jls-admin-bk-modal input[type="text"],
#jls-admin-bk-modal input[type="email"],
#jls-admin-bk-modal input[type="tel"],
#jls-admin-bk-modal select,
#jls-admin-bk-modal textarea {
  border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 8px 12px;
  font-size: 14px; min-height: 38px; width: 100%; box-sizing: border-box; transition: border-color .2s;
}
#jls-admin-bk-modal input:focus,
#jls-admin-bk-modal select:focus,
#jls-admin-bk-modal textarea:focus {
  outline: none; border-color: #C41E3A; box-shadow: 0 0 0 2px rgba(196,30,58,0.1);
}

/* ------------------------------------------------------------
   ADMIN - SETTINGS TOGGLE SWITCH
   ------------------------------------------------------------ */

.jls-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
}

.jls-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.jls-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px;
}

.jls-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.jls-switch input:checked + .jls-slider {
  background-color: var(--jls-btn, #C41E3A);
}

.jls-switch input:focus + .jls-slider {
  box-shadow: 0 0 1px var(--jls-btn, #C41E3A);
}

.jls-switch input:checked + .jls-slider:before {
  transform: translateX(24px);
}


/* ------------------------------------------------------------
   BOOKING POPUP REDESIGN - MULTI STEP INDICATOR
   ------------------------------------------------------------ */

.jls-bk-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.jls-bk-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.3s;
}

.jls-bk-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.3s;
}

.jls-bk-step.active {
  color: var(--jls-btn, #C41E3A);
}

.jls-bk-step.active span {
  background: var(--jls-btn, #C41E3A);
  color: #fff;
}

.jls-bk-step-line {
  flex-grow: 1;
  max-width: 50px;
  height: 2px;
  background: #e2e8f0;
}


/* ------------------------------------------------------------
   BOOKING POPUP REDESIGN - PILL-STYLE PAYMENT CARDS
   ------------------------------------------------------------ */

.jls-bk-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.jls-bk-method {
  display: flex !important;
  flex-direction: column;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.jls-bk-method:hover {
  border-color: #cbd5e1;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.jls-bk-method.is-selected {
  border-color: var(--jls-btn, #C41E3A) !important;
  background: #fff8f8 !important;
  box-shadow: 0 4px 12px rgba(196,30,58,0.08) !important;
}

.jls-bk-method-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 4px;
}

.jls-bk-method.is-selected .jls-bk-method-label {
  color: var(--jls-btn, #C41E3A) !important;
}

.jls-bk-method-desc {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

.jls-cc-card-section {
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  margin-top: 16px;
  animation: jlsSlideDown 0.3s ease-out;
}

@keyframes jlsSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.jls-stripe-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.jls-stripe-element {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  min-height: 20px;
}

.jls-stripe-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
}

/* Spinner animation */
@keyframes jlsSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
