/* ===== Variables ===== */
:root {
  --primary: #1a5fb4;
  --primary-dark: #0d3d7a;
  --primary-light: #e8f0fb;
  --accent: #2d7dd2;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --shadow: 0 4px 20px rgba(26, 95, 180, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 95, 180, 0.18);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}

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

.top-bar-right,
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: var(--transition);
}

.top-link:hover {
  opacity: 1;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.top-bar-left i,
.top-link i {
  font-size: 12px;
}

/* ===== Header ===== */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 16px;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link i {
  font-size: 18px;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--gray-100);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.85) 40%,
    rgba(255, 255, 255, 0.95) 60%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.hero-buttons .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Hero Stats ===== */
.hero-stats {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  padding-bottom: 40px;
}

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 95, 180, 0.2);
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-info span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Departments ===== */
.departments {
  padding: 60px 0 80px;
  background: var(--white);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.heartbeat-line {
  color: var(--primary);
  font-size: 20px;
  opacity: 0.6;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.dept-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dept-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.dept-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 14px;
}

.dept-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.dept-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.dept-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.dept-link:hover {
  gap: 10px;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ===== Bottom Stats ===== */
.bottom-stats {
  background: var(--primary-light);
  padding: 48px 0;
}

.bottom-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bottom-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.bottom-stat-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.bottom-stat-info {
  display: flex;
  flex-direction: column;
}

.bottom-stat-info strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.bottom-stat-info span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo .logo-name {
  color: var(--white);
}

.footer-col p {
  margin-top: 16px;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  opacity: 0.8;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  padding-right: 4px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  font-size: 14px;
}

.contact-list i {
  color: var(--accent);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.7;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .departments-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--gray-200);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    flex-direction: row;
    width: 100%;
    padding: 12px 16px;
  }

  .nav-link.active::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .main-header {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text h1 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .top-bar-left span:not(:first-child) {
    display: none;
  }

  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 100%
    );
  }

  .hero-content {
    padding: 60px 24px 100px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== Inner Pages ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 0;
  color: var(--white);
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}

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

.breadcrumb i {
  font-size: 10px;
  opacity: 0.7;
}

.page-section {
  padding: 64px 0;
}

.page-section.alt-bg {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.timeline {
  max-width: 700px;
  margin: 40px auto 0;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-year {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 15px;
}

.departments-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doctor-photo {
  height: 220px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-photo i {
  font-size: 64px;
  color: var(--primary);
  opacity: 0.4;
}

.doctor-info {
  padding: 20px;
}

.doctor-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doctor-info .specialty {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-info .dept {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.doctor-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.doctor-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: var(--transition);
}

.doctor-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card ul {
  margin-bottom: 16px;
}

.service-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card ul li i {
  color: var(--primary);
  font-size: 11px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog-link:hover {
  gap: 10px;
}

.blog-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.blog-cat {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.blog-cat:hover,
.blog-cat.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

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

.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 16px;
}

.cta-section .btn-outline {
  color: var(--white);
  border-color: var(--white);
  margin-right: 12px;
}

.cta-section .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== Appointment Section ===== */
.appointment-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.appointment-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.appointment-form::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.appointment-form-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--gray-100);
}

.appointment-form-header i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.appointment-form-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.appointment-form-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.appointment-form .form-group {
  min-width: 0;
}

.appointment-form .form-group.full,
.appointment-form .form-actions {
  grid-column: 1 / -1;
}

.appointment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.appointment-form .required {
  color: #dc2626;
  font-weight: 700;
}

.appointment-form .field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.appointment-form .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.appointment-form .input-wrap > i {
  position: absolute;
  right: 14px;
  color: var(--primary);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.appointment-form .input-wrap.textarea-wrap > i {
  display: none;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--text);
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: #9ca3af;
}

.appointment-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a5fb4' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
  cursor: pointer;
}

.appointment-form input[type="date"] {
  direction: rtl;
  text-align: right;
  color-scheme: light;
  cursor: pointer;
  position: relative;
}

.appointment-form input[type="date"]:valid {
  color: var(--text);
}

.appointment-form input[type="date"]:invalid {
  color: #9ca3af;
}

.appointment-form input[type="date"]::-webkit-calendar-picker-indicator,
.appointment-form input[type="date"]::-webkit-inner-spin-button {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.appointment-form input[type="time"] {
  direction: ltr;
  text-align: right;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.appointment-form textarea {
  resize: vertical;
  min-height: 110px;
  padding: 14px 16px;
  line-height: 1.7;
}

.appointment-form .form-actions {
  padding-top: 8px;
}

.appointment-form .form-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 16px;
}

.appointment-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.appointment-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  border-right: 4px solid var(--primary);
  transition: var(--transition);
}

.appointment-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.appointment-info-card i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
}

.appointment-info-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.appointment-info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}

.appointment-alert {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}

.appointment-alert.show {
  display: flex;
}

.appointment-alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.appointment-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 992px) {
  .appointment-wrapper {
    grid-template-columns: 1fr;
  }

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

  .appointment-info {
    position: static;
  }
}

@media (max-width: 576px) {
  .appointment-form {
    padding: 24px 20px;
  }

  .appointment-form-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }
}

@media (max-width: 1200px) {
  .departments-page-grid,
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .departments-page-grid,
  .doctors-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-banner h1 {
    font-size: 28px;
  }

  .values-grid,
  .departments-page-grid,
  .doctors-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-text h1 {
    font-size: 26px;
  }

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

  .top-bar-right {
    gap: 12px;
  }
}
