﻿/* ==========================================================================
   PAGE-SPECIFIC STYLES & COMPLEX LAYOUTS
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 6.5rem 0;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.12) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(251, 113, 133, 0.08) 0%, transparent 50%),
              var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background-color: var(--primary-light);
  color: var(--primary-darker);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-heading);
}

.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.trust-avatar-stack {
  display: flex;
  align-items: center;
}

.trust-avatar-stack img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  margin-left: -12px;
  object-fit: cover;
}

.trust-avatar-stack img:first-child {
  margin-left: 0;
}

.trust-text-block {
  display: flex;
  flex-direction: column;
}

.trust-score-stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.trust-score-stars svg {
  width: 16px;
  height: 16px;
  fill: #F59E0B;
}

.trust-score-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Media & Floating Cards */
.hero-media-wrapper {
  position: relative;
}

.hero-main-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #FFFFFF;
}

.hero-main-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 10;
  animation: float-slow 4s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-top {
  top: 2rem;
  left: -2rem;
}

.hero-floating-badge.badge-bottom {
  bottom: 2.5rem;
  right: -1.5rem;
  animation-delay: 2s;
}

@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-icon.coral {
  background: var(--accent-light);
  color: var(--accent);
}

.floating-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.floating-text h6 {
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  text-transform: none;
  letter-spacing: 0;
}

.floating-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* Dual Wing Showcase (Dental & Healthcare) */
.dual-wing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.wing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.wing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-medium);
}

.wing-banner {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.wing-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.wing-card:hover .wing-banner img {
  transform: scale(1.06);
}

.wing-banner-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(15, 118, 110, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.wing-banner-tag.coral {
  background: rgba(251, 113, 133, 0.92);
}

.wing-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wing-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.wing-body p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.wing-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.wing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}

.wing-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Page Banner / Header */
.page-hero {
  padding: 4.5rem 0 3.5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(251, 113, 133, 0.08) 0%, transparent 50%),
              var(--bg-section-light);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.page-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.breadcrumb-nav a {
  color: var(--primary);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* Filter Bar for Doctors & Blog */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* Treatment Process Steps */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid #fff;
  box-shadow: var(--shadow-xs);
}

.step-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-section-light) 100%);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-coral);
}

.pricing-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.pricing-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: var(--text-main);
}

.pricing-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.15rem;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Blog Cards & Reader */
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-img-box {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.06);
}

.blog-tag-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 118, 110, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.blog-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-title a {
  color: var(--text-heading);
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blog-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* Appointment Wizard Box */
.booking-wizard-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-steps-indicator::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-node-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 2px solid var(--border-medium);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.wizard-step-node.active .step-node-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.wizard-step-node.completed .step-node-circle {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.step-node-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  background-color: var(--bg-white);
  color: var(--text-main);
  font-size: 0.98rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 2.75rem;
}

/* Time Slot Picker */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.slot-btn {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slot-btn:hover {
  border-color: var(--secondary);
  background: var(--primary-light);
}

.slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Confirmation Card */
.confirmation-box {
  background: var(--bg-section-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-medium);
  text-align: center;
}

.conf-check-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}

.conf-check-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.booking-details-table {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  text-align: left;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

.booking-detail-row:last-child {
  border-bottom: none;
}

.booking-detail-row span:first-child {
  color: var(--text-muted);
}

.booking-detail-row span:last-child {
  font-weight: 700;
  color: var(--text-heading);
}
/* Emergency Protocol Responsive Table */
.emergency-table-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-section-light);
  font-weight: 700;
}

.emergency-table-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
  gap: 1rem;
}

.emergency-table-row:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .emergency-table-header {
    display: none !important;
  }
  .emergency-table-row {
    grid-template-columns: 1fr !important;
    padding: 1.25rem 1rem !important;
    gap: 0.5rem !important;
  }
}