/* ==========================================================================
   Nanhikali Care & Adoption Support India - Main Stylesheet
   Design Aesthetic: Corporate-Medical (Deep Navy, Pure White, Soft Pink Accents)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --navy: #0d3b66;
  --navy-dark: #07223d;
  --primary: #0077b6;
  --primary-hover: #023e8a;
  --teal: #00b4d8;
  --teal-light: #e0f2fe;
  
  --pink: #d81b60;
  --pink-hover: #ad1457;
  --pink-light: #f8bbd0;
  --pink-bg: #fff5f8;

  --success: #1eb853;
  --success-bg: #e8f5e9;
  --warning: #f59e0b;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 15px 35px rgba(13, 59, 102, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Emergency Top Bar
   ========================================================================== */
.top-helpline-bar {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.helpline-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.helpline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.helpline-item a {
  color: #ffdd59;
  font-weight: 600;
}

.helpline-item a:hover {
  text-decoration: underline;
}

.top-badge {
  background: rgba(216, 27, 96, 0.2);
  color: #ff80ab;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(216, 27, 96, 0.4);
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--pink), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.25);
  border: 2px solid white;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 8px 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--pink), #e91e63);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 27, 96, 0.45);
}

/* ==========================================================================
   Top Hero Image Banner
   ========================================================================== */
.top-hero-banner {
  width: 100%;
  overflow: hidden;
  background-color: #ffffff; /* Matches the white background of the banner image */
}

.banner-container {
  width: 100%;
  position: relative;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #07223d 0%, #0d3b66 60%, #0077b6 100%);
  color: white;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(216, 27, 96, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-tag span {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #7dd3fc, #ff80ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--teal), var(--primary));
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item i {
  color: #38bdf8;
}

/* Hero Right Floating Image */
.hero-right-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-floating-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.8);
  animation: floatHeroImage 6s ease-in-out infinite;
}

@keyframes floatHeroImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Hero Right Card */
.hero-card-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.preview-badge {
  display: inline-block;
  background: rgba(216, 27, 96, 0.3);
  color: #ff80ab;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.preview-child-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.preview-info h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 6px;
}

.preview-info p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.progress-bar-wrap {
  background: rgba(255, 255, 255, 0.15);
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* ==========================================================================
   Live Impact Stats Bar
   ========================================================================== */
.impact-stats-bar {
  background: #ffffff;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 10px;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Section Headers & Common
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   Regional Hubs Section
   ========================================================================== */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.hub-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.hub-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hub-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hub-card:hover .hub-img-wrap img {
  transform: scale(1.05);
}

.hub-tag-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hub-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.hub-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.hub-address i {
  color: var(--primary);
  margin-top: 3px;
}

.hub-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hub-meta-item strong {
  color: var(--text-primary);
  display: block;
  font-size: 1rem;
}

.hub-contact-btn {
  margin-top: auto;
  width: 100%;
  background: var(--teal-light);
  color: var(--primary);
  border: 1px solid rgba(0, 119, 182, 0.2);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  display: block;
}

.hub-contact-btn:hover {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Child Profiles Registry Section
   ========================================================================== */
.filter-controls-wrap {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 35px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-input-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-box input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 30px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: white;
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.child-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.child-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.child-img-wrap {
  position: relative;
  height: 220px;
}

.child-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.child-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 59, 102, 0.85);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.child-status-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--pink);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.child-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.child-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.child-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.child-age {
  font-size: 0.85rem;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

.child-hospital {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.child-condition {
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #f8fafc;
  padding: 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-bottom: 15px;
  font-weight: 500;
}

.financial-progress {
  margin-bottom: 18px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.raised-val {
  font-weight: 700;
  color: var(--primary);
}

.goal-val {
  color: var(--text-muted);
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.btn-invoice {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-invoice:hover {
  background: #e2e8f0;
}

.btn-sponsor {
  background: var(--pink);
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-sponsor:hover {
  background: var(--pink-hover);
}

/* Pagination / View More */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  background: var(--navy);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
}

.btn-load-more:hover {
  background: var(--navy-dark);
}

/* ==========================================================================
   Certified Doctors Directory Section
   ========================================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.doctor-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.doctor-avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  position: relative;
}

.doctor-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--teal-light);
}

.doctor-verified-icon {
  position: absolute;
  bottom: 0;
  right: 4px;
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid white;
}

.doctor-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.doctor-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.doctor-degree {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.doctor-hospital-tag {
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
}

.doctor-meta-row {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.doc-meta-item strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
}

.btn-book-doc {
  margin-top: auto;
  background: var(--navy);
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  width: 100%;
}

.btn-book-doc:hover {
  background: var(--primary);
}

/* ==========================================================================
   Multi-Step Application & Document Form Section
   ========================================================================== */
.form-wrapper-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.form-banner-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 30px;
  text-align: center;
  border-bottom: 4px solid var(--pink);
}

.form-banner-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-banner-header p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Wizard Steps Bar */
.wizard-steps-container {
  display: flex;
  justify-content: space-between;
  padding: 25px 40px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  transition: var(--transition);
  border: 2px solid white;
}

.wizard-step-item.active .step-circle {
  background: var(--pink);
  color: white;
  box-shadow: 0 0 0 4px var(--pink-light);
}

.wizard-step-item.completed .step-circle {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.wizard-step-item.active .step-label {
  color: var(--pink);
  font-weight: 700;
}

/* Form Content Body */
.wizard-content-body {
  padding: 35px 40px;
}

.form-step-pane {
  display: none;
}

.form-step-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-heading {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group-field {
  margin-bottom: 20px;
}

.form-group-field.full-width {
  grid-column: span 2;
}

.form-group-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group-field label span {
  color: var(--pink);
}

.form-control-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #ffffff;
}

.form-control-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
  outline: none;
}

textarea.form-control-input {
  resize: vertical;
  min-height: 90px;
}

/* File Upload Zone */
.upload-drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-drop-zone:hover {
  border-color: var(--pink);
  background: var(--pink-bg);
}

.upload-drop-zone i {
  font-size: 2rem;
  color: var(--pink);
  margin-bottom: 8px;
}

.upload-drop-zone p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
}

.file-preview-box img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

/* Wizard Navigation Controls */
.wizard-footer-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  margin-top: 25px;
}

.btn-wizard-prev {
  background: #e2e8f0;
  color: var(--text-secondary);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-wizard-prev:hover {
  background: #cbd5e1;
}

.btn-wizard-next {
  background: var(--pink);
  color: white;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-wizard-next:hover {
  background: var(--pink-hover);
}

/* ==========================================================================
   Payment Gateway & Sponsoring Banner
   ========================================================================== */
.payment-section-box {
  background: linear-gradient(135deg, #07223d, #0d3b66);
  color: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.payment-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.payment-banner-left h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.payment-banner-left p {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 25px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pay-provider-btn {
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pay-provider-btn.phonepe { background: #5f259f; }
.pay-provider-btn.gpay { background: #4285f4; }
.pay-provider-btn.paytm { background: #002e6e; }
.pay-provider-btn.card { background: #1f2937; }

.pay-provider-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.security-trust-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.security-trust-box h4 {
  font-size: 1.1rem;
  color: #38bdf8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-check-list {
  list-style: none;
}

.trust-check-list li {
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-check-list li i {
  color: #4ade80;
}

/* ==========================================================================
   Modals (Medical Invoice, Booking, Payment, Receipt)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-header-pad {
  padding: 25px 30px 15px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header-pad h3 {
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 800;
}

.modal-body-pad {
  padding: 25px 30px;
}

/* Invoice Modal Breakdown Table */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.invoice-table th, .invoice-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.invoice-table th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 700;
}

.invoice-total-row td {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  border-top: 2px solid var(--navy);
  background: #f1f5f9;
}

/* Receipt Modal Styles */
.official-receipt-box {
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 30px;
  color: var(--text-primary);
}

.receipt-watermark {
  text-align: center;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.receipt-watermark h2 {
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 800;
}

.receipt-watermark p {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
}

.receipt-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--navy);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--success);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: var(--success);
  font-size: 1.4rem;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

/* Printable CSS */
@media print {
  body * {
    visibility: hidden;
  }
  #receiptModal, #receiptModal * {
    visibility: visible;
  }
  #receiptModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--navy);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mobile-toggle-btn:hover {
  background: #e2e8f0;
}

/* Mobile Drawer CTA */
.mobile-cta-item {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .payment-banner-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* De-clutter Top Helpline Bar on Mobile */
  .top-helpline-bar {
    padding: 6px 0;
    font-size: 0.8rem;
  }

  .helpline-links {
    display: none; /* Hide redundant email & settlement badge on mobile top bar */
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  /* De-clutter Navigation Header on Mobile */
  .navbar {
    height: 60px;
  }

  .nav-container {
    height: 60px;
    padding: 0 16px;
  }

  .brand-text span {
    display: none; /* Hide subtitle text on mobile header so logo never wraps or overlaps */
  }

  .brand-text h1 {
    font-size: 1.25rem;
    letter-spacing: -0.3px;
  }

  .nav-container > .btn-header-cta {
    display: none; /* Hide header CTA button on sticky mobile navbar (it lives inside menu & hero) */
  }

  .mobile-cta-item {
    display: block;
    margin-top: 10px;
  }

  .mobile-drawer-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
  }

  .mobile-toggle-btn {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary);
    gap: 16px;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  /* Mobile Hero Banner Section */
  .hero-section {
    padding: 35px 16px 45px;
    background: linear-gradient(180deg, rgba(7, 34, 61, 0.88) 0%, rgba(13, 59, 102, 0.96) 100%),
                url('../assets/Apollo Hospital Regional Center, Guwahati.webp') center/cover no-repeat;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-tag {
    padding: 4px 12px;
    font-size: 0.76rem;
    margin-bottom: 12px;
    display: inline-flex;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: column;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .hero-trust-row {
    font-size: 0.78rem;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
  }

  .hero-card-preview {
    padding: 16px;
    border-radius: 16px;
  }

  .preview-child-img {
    height: 170px;
  }

  /* De-clutter Stats Bar */
  .impact-stats-bar {
    margin-top: -25px;
    padding: 18px 12px;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .section-padding {
    padding: 45px 0;
  }

  .section-header {
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  /* Horizontal Filter Pills Touch Slider */
  .filter-controls-wrap {
    padding: 14px;
    margin-bottom: 25px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    width: 100%;
    gap: 8px;
    scrollbar-width: none; /* Firefox */
  }

  .filter-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .filter-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .search-input-box {
    width: 100%;
    min-width: 100%;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-group-field.full-width {
    grid-column: span 1;
  }

  .wizard-steps-container {
    padding: 15px 8px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .step-label {
    font-size: 0.7rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    margin: 10px;
    max-height: 95vh;
  }

  .modal-body-pad, .modal-header-pad {
    padding: 18px 20px;
  }

  .receipt-grid-info {
    grid-template-columns: 1fr;
  }

  /* Floating Sticky Mobile Button (Visible under 768px) */
  .floating-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: linear-gradient(135deg, var(--pink), #e91e63);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(216, 27, 96, 0.45);
    border: 2px solid white;
    transition: var(--transition);
  }

  .floating-sticky-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(216, 27, 96, 0.55);
  }

  .floating-sticky-btn:active {
    transform: translateY(0) scale(0.98);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .top-helpline-bar {
    font-size: 0.74rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
  }

  .hubs-grid, .children-grid, .doctors-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating Sticky Button - Default Hidden on Desktop */
.floating-sticky-btn {
  display: none;
}

/* Floating Contact Widget Styles */
.floating-contact-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact-widget .floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid white;
  text-decoration: none;
}

.floating-contact-widget .btn-call {
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.floating-contact-widget .btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-contact-widget .floating-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-contact-widget .floating-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Tooltip on Hover */
.floating-contact-widget .floating-btn .tooltip {
  position: absolute;
  right: 65px;
  background: var(--navy-dark);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.floating-contact-widget .floating-btn .tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--navy-dark);
}

.floating-contact-widget .floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 60px;
}


