/* =========================
   CC NEMT App Styles (FIXED)
   - Removes extreme z-index from whole app
   - Fixes Google Places dropdown layering/position
   - Removes dangerous transform: none !important
   - Removes duplicate/conflicting step rules
   ========================= */

/* App container */
.cc-app{
  max-width: 860px;
  margin: 30px auto;
  padding: 0 14px;
  position: relative;
  z-index: 1; /* ✅ normal stacking so it doesn't float above site header/footer */
}

.cc-app-form{ position: relative; }

/* Alerts */
.cc-alert{
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}
.cc-alert.success{ background:#e8fff3; border:1px solid #b9f1d3; }
.cc-alert.warn{ background:#fff6e6; border:1px solid #ffd9a6; }
.cc-alert.error{ background:#ffecec; border:1px solid #ffb3b3; }

/* Header */
.cc-app-header{
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  margin-bottom: 14px;
}

.cc-app-title{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.cc-app-badge{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 13px;
}

.cc-app-h1{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0;
}

.cc-app-sub{
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
}

/* Progress */
.cc-progress{ margin-top: 14px; }
.cc-progress-bar{
  height: 8px;
  background: #edf2f7;
  border-radius: 999px;
  overflow:hidden;
}
.cc-progress-fill{
  height: 100%;
  width: 0%;
  background: #3b82f6;
}

/* Cards / steps */
.cc-step{ display:none; }
.cc-step.active{ display:block; } /* ✅ matches wizard.js */

.cc-card{
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  margin-bottom: 14px;
}

.cc-card h3{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Field styles */
.cc-field{ margin-bottom: 14px; }
.cc-label{
  display:block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
  letter-spacing: .2px;
}
.cc-req{ color:#ef4444; }

.cc-input, .cc-textarea, .cc-select{
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #f8fafc;
}

.cc-input:focus, .cc-textarea:focus, .cc-select:focus{
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background:#fff;
}

.cc-textarea{ min-height: 90px; resize: vertical; }

.cc-help{
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

/* Radio options - chips */
.cc-options{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-opt{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.cc-opt input{ transform: scale(1.05); }

/* Inline actions */
.cc-inline-actions{ margin-top: 8px; }

/* Location button (color changed) */
.cc-location-btn{
  background: #0f766e !important; /* teal */
  color: #fff !important;
  border: none !important;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cc-location-btn:active{ transform: scale(.98); }

/* Miles status */
.cc-mile-status{
  display:none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background:#f8fafc;
  font-weight: 700;
  color:#0f172a;
}
.cc-mile-status.ok{ background:#e8fff3; border-color:#b9f1d3; }
.cc-mile-status.warn{ background:#fff6e6; border-color:#ffd9a6; }
.cc-mile-status.err{ background:#ffecec; border-color:#ffb3b3; }

/* Review */
.cc-review-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.cc-review-k{ color:#475569; font-weight:700; }
.cc-review-v{ color:#0f172a; font-weight:800; text-align:right; }

/* Total */
.cc-total{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.cc-total-amount{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}
.cc-total-note{
  max-width: 320px;
  color:#64748b;
  font-weight: 700;
}

/* Footer buttons (sticky + clickable on mobile) */
.cc-app-footer{
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 12px;
  display:flex;
  gap: 10px;
  justify-content: space-between;
  z-index: 50; /* ✅ enough for form, not enough to sit above entire website */
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  margin-bottom: 18px;
}

.cc-btn{
  border: none;
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 15px;
  cursor:pointer;
  flex: 1;
}

.cc-btn.ghost{
  background: #f1f5f9;
  color:#0f172a;
}

.cc-btn.primary{
  background: #0f172a;
  color:#fff;
}

.cc-btn:not(.primary){
  background:#3b82f6;
  color:#fff;
}

.cc-btn:active{ transform: scale(.99); }

/* Grid helpers */
.cc-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px){
  .cc-grid2{ grid-template-columns: 1fr; }
  .cc-total{ flex-direction: column; }
}

/* =========================
   Google Places Dropdown FIX
   ========================= */

/* ✅ Keep dropdown above everything */
.pac-container{
  z-index: 2147483647 !important;
}

/* ✅ Make dropdown look sleek */
.pac-container{
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  font-family: inherit !important;
}

/* ✅ Improve suggestion rows */
.pac-item{
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}
.pac-item:hover{
  background: #f1f5f9 !important;
}
.pac-item-selected{
  background: #e2e8f0 !important;
}

/* ✅ Fix the little google icon spacing */
.pac-icon{
  margin-top: 2px !important;
}

/* IMPORTANT:
   DO NOT force position:fixed on pac-container.
   It causes "strange" dropdown placement on many themes/mobile.
*/

/* Prevent clipping ONLY in our plugin wrappers (safe) */
.cc-app,
.cc-app-form,
.cc-step,
.cc-card{
  overflow: visible !important;
}

/* Progress step dots */
.cc-progress-steps{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.cc-step-dot{
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:13px;
  background:#e9eef6;
  color:#2b2f36;
}

.cc-step-dot.active{
  background:#2d7ef7;
  color:#fff;
}

.cc-step-dot.done{
  background:#1db954;
  color:#fff;
}
