/* ============================================================
   City Home Service – Customer Portal Styles (customer.css)
   ============================================================ */

/* ── Promo Offer Banner ──────────────────────────────────── */
.promo-banner-section {
  padding: 1.5rem 0 0.5rem;
}

.promo-card {
  border-radius: 24px !important;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem !important;
  position: relative;
  overflow: hidden;
  color: #fff !important;
  animation: promoEntrance .6s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 20px 60px rgba(var(--primary-rgb),.2);
}

@keyframes promoEntrance {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative blobs */
.promo-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
  animation: blobPulse 6s ease-in-out infinite;
}
.promo-blob-1 {
  width: 320px; height: 320px;
  top: -120px; right: -80px;
  animation-delay: 0s;
}
.promo-blob-2 {
  width: 180px; height: 180px;
  bottom: -60px; right: 30%;
  animation-delay: 3s;
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1);   opacity: .08; }
  50%       { transform: scale(1.15); opacity: .14; }
}

.promo-card .promo-badge {
  background: rgba(255,255,255,.2) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #fff !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .28rem .75rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.promo-card .promo-badge-timer {
  background: rgba(239,68,68,.25) !important;
  border-color: rgba(239,68,68,.5) !important;
}

.promo-card .promo-headline {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  color: #fff !important;
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}

.promo-card .promo-subtitle {
  font-size: .95rem;
  color: rgba(255,255,255,.85) !important;
  margin-bottom: 0;
  max-width: 480px;
}

/* Code box – clickable copy */
.promo-card .promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.15) !important;
  backdrop-filter: blur(8px) !important;
  border: 2px dashed rgba(255,255,255,.6) !important;
  border-radius: 12px !important;
  padding: .55rem 1.2rem;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
  color: #fff !important;
}
.promo-card .promo-code-box:hover {
  background: rgba(255,255,255,.25) !important;
  border-color: #fff !important;
  transform: scale(1.03);
}
.promo-card .promo-code-box.promo-code-copied {
  background: rgba(16,185,129,.3) !important;
  border-color: #6ee7b7 !important;
}
.promo-card .promo-code-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff !important;
  letter-spacing: .18em;
}
.promo-card .promo-copy-icon {
  font-size: 1rem;
  opacity: .85;
  transition: transform .2s;
}
.promo-card .promo-code-box:hover .promo-copy-icon {
  transform: scale(1.25);
}

/* CTA button */
.promo-card .promo-cta-btn {
  background: #fff !important;
  color: var(--primary) !important;
  font-weight: 800 !important;
  border-radius: 100px !important;
  padding: .6rem 1.5rem !important;
  font-size: .9rem !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
  transition: all .2s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.promo-card .promo-cta-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.22) !important;
  color: var(--primary-dark) !important;
}

/* Spinning discount ring */
.promo-disc-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,.25) 0%, transparent 100%);
  border: 3px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: discSpin 20s linear infinite;
  box-shadow: 0 0 40px rgba(255,255,255,.15);
}
.promo-disc-inner {
  width: 110px; height: 110px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: discSpin 20s linear infinite reverse; /* counter-rotate to stay upright */
}
@keyframes discSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.promo-disc-value {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.promo-disc-label {
  font-size: .65rem;
  font-weight: 800;
  color: rgba(255,255,255,.85);
  letter-spacing: .2em;
  margin-top: 2px;
}

@media (max-width: 576px) {
  .promo-card { padding: 1.75rem 1.25rem; }
  .promo-headline { font-size: 1.3rem; }
  .promo-code-box { padding: .45rem .9rem; }
  .promo-code-text { font-size: .95rem; }
}


/* ── OTP Login Page ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 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: var(--gradient-main);
  -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: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15);
  transform: scale(1.05);
}

.otp-digit.filled {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary);
}

/* 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(var(--primary-rgb),.1); }

.booking-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-main);
  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: var(--primary); color: var(--primary); }
.time-slot-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.time-slot-btn:disabled { opacity: .38; cursor: not-allowed; }
/* Buffer-window slots – greyed out with a clock icon hint */
.time-slot-btn.time-slot-disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #fef9c3;
  border-color: #fcd34d;
  color: #92400e;
  text-decoration: line-through;
  pointer-events: none;
}

/* ── Checkout / Order Summary ────────────────────────────── */
.order-summary {
  background: var(--gradient-main);
  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(var(--primary-rgb),.1);
  border: 1px solid #e2e8f0;
}

.provider-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

/* ── 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: var(--primary); background: #f8faff; }
.address-card.selected{ border-color: var(--primary); background: rgba(var(--primary-rgb),.05); }
.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; }

  /* Promo Banner Mobile Tuning */
  .promo-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
  }
  .promo-card .promo-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
  }
  .promo-card .promo-headline {
    font-size: 1.2rem !important;
    margin-bottom: 0.25rem !important;
  }
  .promo-card .promo-subtitle {
    font-size: 0.82rem !important;
    margin-bottom: 0.5rem !important;
  }
  .promo-card .promo-code-box {
    padding: 0.4rem 0.8rem !important;
    border-radius: 8px !important;
  }
  .promo-card .promo-code-text {
    font-size: 0.85rem !important;
    letter-spacing: 0.1em !important;
  }
  .promo-card .promo-cta-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  /* Compact Navbar Brand for Mobile */
  .navbar-brand-cp {
    gap: 0.35rem !important;
  }
  .navbar-brand-cp img {
    height: 28px !important;
  }
  .navbar-brand-text {
    font-size: 1rem !important;
    font-weight: 800;
  }
  .navbar-brand-subtext {
    font-size: 0.52rem !important;
    letter-spacing: 0.02em !important;
    margin-top: 1px !important;
  }
}

.navbar-brand-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.navbar-brand-subtext {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .navbar-brand-cp img {
    height: 32px !important;
  }
  .navbar-brand-text {
    font-size: 1.2rem !important;
    font-weight: 800;
  }
  .navbar-brand-subtext {
    font-size: 0.6rem !important;
  }
  .service-card-img {
    height: 140px !important;
  }
  .service-card-body {
    padding: 0.85rem !important;
  }
}

/* ── Add to Cart Button Style ───────────────────────────── */
.atc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 700;
  border-radius: var(--radius-full, 50px);
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.atc-btn:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.2);
}
.atc-btn:hover svg {
  stroke: #fff;
}
.atc-btn.atc-done {
  border-color: var(--success, #10b981);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success, #10b981) !important;
  pointer-events: none;
}
.atc-btn.atc-done svg {
  stroke: var(--success, #10b981);
}
.atc-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── No Scrollbar Utility ───────────────────────────────── */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}


