/* =============================================
   NIRAPPEL MEDICALS — COMPLETE STYLE
   Premium Medical Theme
   ============================================= */

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

/* ── CSS Variables ── */
:root {
  --green:       #1a7f5a;
  --green-dark:  #115940;
  --green-mid:   #1e9e72;
  --green-light: #e8f8f2;
  --teal:        #0891b2;
  --dark:        #0c1220;
  --mid:         #334155;
  --muted:       #64748b;
  --light:       #f8fafc;
  --border:      #e2e8f0;
  --white:       #ffffff;
  --radius-sm:   10px;
  --radius-md:   20px;
  --radius-lg:   30px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.10);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--mid);
  line-height: 1.7;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; color: var(--dark); line-height: 1.2; }

/* ── Layout Wrapper ── */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: 100px 0; }
.center { text-align: center; }

/* ── Buttons ── */
.btn-pill-filled {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,127,90,0.25);
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}
.btn-pill-filled:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26,127,90,0.35);
}
.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  border: 2.5px solid var(--green);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}
.btn-pill-ghost:hover {
  background: var(--green);
  color: #fff;
}

/* ── Labels ── */
.pill-label, .section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.highlight { color: var(--green); }

/* ============================================
   HEADER
   ============================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--dark); }
.logo-text strong { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mid);
  transition: color var(--transition);
}
.nav-a:hover, .nav-a.active { color: var(--green); }
.nav-cta { padding: 12px 28px; font-size: 0.92rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--dark); border-radius: 3px; transition: var(--transition); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf8 0%, #e8f8f2 40%, #f0f9ff 100%);
  padding: 100px 0 120px;
}
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.blob1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #a7f3d0, transparent);
  top: -200px; right: -100px;
}
.blob2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #bae6fd, transparent);
  bottom: -100px; left: -100px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0 24px;
  color: var(--dark);
}
.hero-text p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-main {
  position: relative;
  width: 380px;
  height: 380px;
  background: white;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(26,127,90,0.12), 0 0 0 1px rgba(26,127,90,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pharmacy-art {
  width: 160px; height: 160px;
  background: var(--green-light);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--green);
}
.floating-badge {
  position: absolute;
  background: white;
  border-radius: 100px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  animation: float 4s ease-in-out infinite;
}
.floating-badge i { font-size: 1.1rem; color: var(--green); }
.badge1 { top: -20px; left: -30px; animation-delay: 0s; }
.badge2 { top: 30px; right: -40px; animation-delay: 1s; }
.badge3 { bottom: -10px; left: 10px; animation-delay: 2s; }
.badge4 { bottom: 60px; right: -30px; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  background: var(--green);
  padding: 40px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 10px 60px; flex-shrink: 0; }
.stat-num { display: block; font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.25); flex-shrink: 0; }

/* ============================================
   SERVICES
   ============================================ */
.section-head { margin-bottom: 60px; }
.section-head h2 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.s-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: var(--transition);
  cursor: default;
}
.s-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.s-icon {
  width: 62px; height: 62px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.s-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.s-card p { font-size: 0.97rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--light);
  padding: 100px 0;
}
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 60px;
}
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  text-align: center;
  flex: 1;
  max-width: 320px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.step h4 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.step-arrow { font-size: 1.4rem; color: var(--green); padding: 0 20px; flex-shrink: 0; }

/* ============================================
   ORDER SECTION
   ============================================ */
.order-section { background: #f0fdf8; }
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.order-info-col h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 20px; }
.order-info-col p { color: var(--muted); margin-bottom: 40px; }

.delivery-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
}
.delivery-box h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivery-box h4 i { color: var(--green); }
.d-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.d-rate:last-of-type { border-bottom: none; }
.d-rate span { font-size: 0.97rem; color: var(--muted); }
.d-rate strong { font-family: 'Outfit', sans-serif; font-size: 1.2rem; color: var(--green); }
.d-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

/* Form */
.order-form-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-group { margin-bottom: 24px; }
.f-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.f-group input, .f-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.f-group input:focus, .f-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26,127,90,0.08);
}
.f-group textarea { resize: none; }

/* Type Toggle */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.type-btn {
  padding: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.type-btn.active {
  background: var(--green);
  color: var(--white);
  border-radius: calc(var(--radius-sm) - 1px);
}

.loc-row {
  display: flex;
  gap: 12px;
}
.loc-row input { flex: 1; }

.loc-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.loc-note i { color: var(--teal); }

.loc-hint {
  font-size: 0.82rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 8px;
  align-items: center;
  gap: 8px;
}
.loc-hint i { color: #d97706; }
.btn-loc {
  flex-shrink: 0;
  padding: 14px 20px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-loc:hover { filter: brightness(1.1); }

/* Charge Chip */
.charge-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--green-dark);
}

/* Upload Box */
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px;
  border: 2.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--light);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}
.upload-box:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.upload-box i { font-size: 2rem; }
.upload-box input { display: none; }

.submit-btn { width: 100%; justify-content: center; margin-top: 10px; padding: 20px; font-size: 1.1rem; }

/* Form Message */
.form-msg {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  display: none;
}
.form-msg.success { display: block; background: #d1fae5; color: #065f46; }
.form-msg.error { display: block; background: #fee2e2; color: #991b1b; }

/* Success Banner (shown after redirect) */
.success-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 28px;
  animation: fadeIn 0.5s ease;
}
.success-banner i { font-size: 1.5rem; color: #059669; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info-col h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; }
.contact-info-col > p { color: var(--muted); margin-bottom: 40px; }
.c-items { display: flex; flex-direction: column; gap: 28px; }
.c-item { display: flex; align-items: flex-start; gap: 20px; }
.c-icon {
  width: 52px; height: 52px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.c-item strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.c-item p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.map-col iframe {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #0c1220;
  color: #fff;
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 80px;
  padding-bottom: 60px;
}
.footer-brand .logo-footer { margin-bottom: 20px; display: inline-flex; }
.logo-footer .logo-text { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: 0.97rem; line-height: 1.8; margin-bottom: 28px; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: var(--transition);
}
.socials a:hover { background: var(--green); transform: translateY(-4px); }

.footer-links, .footer-contact { display: flex; flex-direction: column; }
.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.footer-contact p i { color: var(--green); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 48px;
  text-align: center;
  color: #475569;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .wrap, .nav-inner, .hero-inner, .stats-inner, .footer-inner { padding: 0 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .hero-text h1 { font-size: 3.2rem; }
}

@media (max-width: 900px) {
  .hero-inner, .order-layout, .contact-layout, .f-row { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-row { flex-direction: column; gap: 20px; }
  .step-arrow { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 10px 30px; }
  .section-head h2 { font-size: 2.2rem; }
  .wrap, .nav-inner, .stats-inner, .footer-bar { padding-left: 20px; padding-right: 20px; }
  .order-form-col { padding: 28px 24px; }
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-pill-filled, .hero-actions .btn-pill-ghost { text-align: center; justify-content: center; }
  .type-toggle { grid-template-columns: 1fr; }
  .loc-row { flex-direction: column; }
}
