/* Justdial Ultra Modern Premium Design System CSS */

:root {
  --primary-blue: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --dark-slate: #0f172a;
  --dark-navy: #0b1120;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #334155;
  --text-muted: #64748b;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 25px 50px -12px rgba(2, 132, 199, 0.15);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------------------------------------------------- */
/* Header & Navbar                                      */
/* ---------------------------------------------------- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo i {
  font-size: 1.7rem;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-orange), #ff8c00);
  color: white;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ---------------------------------------------------- */
/* Hero Section                                         */
/* ---------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 45%, #0369a1 100%);
  color: white;
  padding: 5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1.2px;
  line-height: 1.25;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2.75rem;
  line-height: 1.6;
}

/* Glassmorphism Search Box */
.search-box-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  backdrop-filter: blur(10px);
}

.search-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.search-field:focus-within {
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.search-field i {
  color: var(--primary-blue);
  font-size: 1.3rem;
}

.search-field input, .search-field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-slate);
}

.search-btn {
  padding: 1rem 2.4rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
}

/* ---------------------------------------------------- */
/* Section Layout & Category Cards                      */
/* ---------------------------------------------------- */
.section {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-slate);
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.35rem;
}

.category-card {
  background: white;
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.cat-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.category-card:hover .cat-icon-box {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  transform: rotate(5deg);
}

.cat-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark-slate);
}

.cat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------- */
/* Sellers Cards Grid                                  */
/* ---------------------------------------------------- */
.seller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.seller-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.seller-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}

.seller-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.seller-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.seller-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 0.3rem;
}

.seller-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.badge-verified {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rating-badge {
  background: #fef9c3;
  color: #a16207;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.seller-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------------------------------------------------- */
/* Modals & Popups                                     */
/* ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 560px;
  padding: 2.25rem;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.45);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
  color: var(--dark-slate);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15);
}

/* Wizard Step Progress */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  position: relative;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
}

.wizard-step.active {
  color: var(--primary-blue);
}

.wizard-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.wizard-step.active .wizard-number {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

/* Option Cards for Plan Selection */
.plan-option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  background: #ffffff;
}

.plan-option-card:hover, .plan-option-card.selected {
  border-color: var(--primary-blue);
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

/* ---------------------------------------------------- */
/* Footer                                              */
/* ---------------------------------------------------- */
footer {
  background: var(--dark-navy);
  color: #94a3b8;
  padding: 4.5rem 1.5rem 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

/* Website Animated Preloader */
#site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: autoHidePreloader 0.4s ease 0.4s forwards;
  pointer-events: none;
}

#site-preloader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

@keyframes autoHidePreloader {
  0% { opacity: 1; visibility: visible; }
  90% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; display: none !important; }
}

.preloader-content {
  text-align: center;
}

.preloader-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spinPreloader 0.75s linear infinite;
  margin: 0 auto 1.2rem;
}

@keyframes spinPreloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .hero-title { font-size: 2.15rem; }
  .search-box-wrap { padding: 0.5rem; }
  .search-btn { width: 100%; }
  .nav-actions { gap: 0.4rem; }
  .btn { padding: 0.55rem 0.85rem; font-size: 0.82rem; }
}
