/* ============================================================
   CleanPro – Customer Portal Styles (customer.css)
   ============================================================ */

/* ── OTP Login Page ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  top: -200px; right: -150px;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  bottom: -100px; left: -80px;
}

.auth-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
  position: relative;
  z-index: 1;
  animation: slideUp .5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .brand {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.04em;
}

.auth-logo .tagline {
  font-size: .85rem;
  color: #64748b;
  margin-top: 4px;
}

.otp-input-group {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all .25s ease;
  color: #1e1b4b;
  background: #f8fafc;
}

.otp-digit:focus {
  border-color: #4f46e5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
  transform: scale(1.05);
}

.otp-digit.filled {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #4f46e5;
}

/* OTP Step switching */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ── Search Bar ──────────────────────────────────────────── */
.hero-search {
  background: rgba(255,255,255,.95);
  border-radius: 100px;
  padding: .5rem .5rem .5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  max-width: 560px;
  margin: 2rem auto 0;
}

.hero-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: transparent;
}

.hero-search input::placeholder { color: #94a3b8; }

/* ── Location Search Dropdown ────────────────────────────── */
.location-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  border: 1px solid #e2e8f0;
  max-height: 280px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.location-option {
  padding: .85rem 1.25rem;
  cursor: pointer;
  font-size: .9rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  transition: background .2s;
}

.location-option:hover { background: #f8fafc; }
.location-option:last-child { border-bottom: none; }
.location-option .icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.location-option .addr-main { font-weight: 600; color: #0f172a; }
.location-option .addr-sub  { font-size: .8rem; color: #64748b; }

/* ── Booking card ────────────────────────────────────────── */
.booking-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow .25s;
}
.booking-card:hover { box-shadow: 0 8px 32px rgba(79,70,229,.1); }

.booking-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.165,.84,.44,1);
}
.service-card:hover .service-card-img img {
  transform: scale(1.1);
}


/* ── Schedule Page ───────────────────────────────────────── */
.time-slot-btn {
  padding: .5rem 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 100px;
  background: #fff;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: #374151;
  transition: all .2s;
  white-space: nowrap;
}
.time-slot-btn:hover  { border-color: #4f46e5; color: #4f46e5; }
.time-slot-btn.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.time-slot-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Checkout / Order Summary ────────────────────────────── */
.order-summary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.price-row:last-child { border-bottom: none; }
.price-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  padding-top: .75rem;
  border-top: 2px solid rgba(255,255,255,.3);
}

/* ── Tracking Page ───────────────────────────────────────── */
#tracking-map {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.tracking-status-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(79,70,229,.1);
  border: 1px solid #e2e8f0;
}

.provider-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4f46e5;
}

/* ── Address Card ────────────────────────────────────────── */
.address-card {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all .25s;
  background: #fff;
}
.address-card:hover   { border-color: #4f46e5; background: #f8faff; }
.address-card.selected{ border-color: #4f46e5; background: #eef2ff; }
.address-card .label-badge {
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  text-transform: uppercase;
}

/* ── Instant Help Banner ─────────────────────────────────── */
.instant-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.instant-banner::after {
  content: '⚡';
  position: absolute;
  right: -10px; top: -20px;
  font-size: 8rem;
  opacity: .15;
}

/* ── Mobile responsive adjustments ──────────────────────── */
@media (max-width: 576px) {
  .auth-card { padding: 2rem 1.5rem; }
  .otp-digit { width: 44px; height: 52px; font-size: 1.25rem; }
  .hero-search { border-radius: 14px; flex-direction: column; align-items: stretch; }
}
