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

:root{
  --navy:#102a56;
  --blue:#1769aa;
  --cyan:#21a5c9;
  --ink:#172033;
  --muted:#64748b;
  --line:#e5edf5;
  --surface:rgba(255,255,255,.92);
  --shadow:0 18px 55px rgba(16,42,86,.10);
}

*{box-sizing:border-box}
[hidden]{display:none!important}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Cairo,Arial,sans-serif;
  background:
    radial-gradient(circle at 10% 0%,#eaf7fc 0,transparent 32%),
    radial-gradient(circle at 100% 20%,#eef3ff 0,transparent 28%),
    #f6f9fc;
  color:var(--ink);
  letter-spacing:.05px;
}

button,input,select,textarea{font:inherit}

/* ==================== LOGO / HEADER ==================== */
.logo-area{
  position:sticky;
  top:0;
  z-index:50;
  height:92px;
  overflow:hidden;
  background:#ffffff;
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(229,237,245,.85);
  transition:height .95s cubic-bezier(.22,1,.36,1),box-shadow .95s ease;
}

.nav{
  max-width:1180px;
  height:92px;
  margin:auto;
  padding:8px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:height .95s cubic-bezier(.22,1,.36,1),padding .95s ease;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  position:relative;
  z-index:20;
  transform-origin:center;
  transition:transform .95s cubic-bezier(.22,1,.36,1);
}

.brand img,
.nav>img{
  width:76px;
  height:76px;
  object-fit:contain;
  border-radius:18px;
  background:#e8f1f8;

  transform-origin:center;
  transition:
    width .95s cubic-bezier(.22,1,.36,1),
    height .95s cubic-bezier(.22,1,.36,1),
    transform .95s cubic-bezier(.22,1,.36,1);
}

.brand img:hover{transform:translateY(-2px) scale(1.03)}

.brand h1{
  margin:0;
  font-size:21px;
  color:var(--navy);
  font-weight:800;
}

.brand p{
  margin:0;
  font-size:12px;
  color:#718096;
}

/* ==================== MAIN LAYOUT ==================== */
.container{
  max-width:1180px;
  margin:auto;
  padding:30px 18px 60px;
}

.hero{
  position:relative;
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:#fff;
  text-align:center;
  background:linear-gradient(135deg,#102a56 0%,#1769aa 55%,#21a5c9 100%);
  border-radius:30px;
  padding:52px 24px;
  box-shadow:0 24px 70px rgba(16,42,86,.18);
  transition:
    min-height .8s cubic-bezier(.22,1,.36,1),
    height .65s cubic-bezier(.22,1,.36,1),
    padding .8s cubic-bezier(.22,1,.36,1),
    box-shadow .8s ease,
    margin .8s ease,
    border-radius .8s ease;
}

.hero:before,
.hero:after{
  content:"";
  position:absolute;
  border-radius:50%;
}

.hero:before{
  width:360px;
  height:360px;
  top:-220px;
  left:-80px;
  background:rgba(255,255,255,.08);
}

.hero:after{
  width:260px;
  height:260px;
  bottom:-190px;
  right:-70px;
  background:rgba(255,255,255,.06);
}

.hero>*{position:relative;z-index:1}

.hero h2{
  margin:0 0 8px;
  font-size:clamp(27px,4vw,40px);
  font-weight:800;
  letter-spacing:-.6px;
}

.hero p{
  margin:0;
  font-size:15px;
  opacity:.9;
}

/* ==================== MAIN SERVICE BUTTONS ==================== */
.main-service-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:26px;
}

.main-service-button{
  position:relative;
  padding:32px 26px;
  text-align:center;
  cursor:pointer;
  background:var(--surface);
  border:1px solid rgba(229,237,245,.95);
  border-radius:24px;
  box-shadow:var(--shadow);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}

.main-service-button:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(33,165,201,.06),transparent 45%);
  pointer-events:none;
}

.main-service-button:hover{
  transform:translateY(-7px);
  box-shadow:0 25px 60px rgba(16,42,86,.15);
  border-color:#b9ddec;
}

.icon{
  width:58px;
  height:58px;
  margin:0 auto;
  display:grid;
  place-items:center;
  color:var(--blue);
  filter:drop-shadow(0 8px 12px rgba(16,42,86,.10));
}
.icon svg{width:48px;height:48px;display:block}
.icon img{width:58px;height:58px;display:block;object-fit:contain}
.button-symbol{width:17px;height:17px;display:inline-block;vertical-align:-3px;margin-inline-end:5px}
.page-quick-links{max-width:1180px;margin:10px auto 0;padding:0 20px;display:flex;gap:9px;align-items:center}
.page-icon-link{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 4px 12px rgba(16,42,86,.08);text-decoration:none;transition:transform .18s ease,background .18s ease}
.page-icon-link:hover{transform:translateY(-1px);background:#f1f7fc}
.page-icon-link svg{width:18px;height:18px;display:block}
.page-quick-links .page-icon-link{flex:0 0 38px;min-width:38px;min-height:38px;padding:0;line-height:1;color:var(--navy);background:#fff;border:1px solid var(--line);border-radius:50%;box-shadow:0 4px 12px rgba(16,42,86,.08);text-decoration:none}
.notification-permission-status{min-height:0;margin:5px 0 0;color:#52677c;font-size:12px;line-height:1.6}
.account-actions-box{display:flex;align-items:center;gap:7px;padding:5px;background:linear-gradient(120deg,#102a56,#1769aa);border:1px solid rgba(255,255,255,.7);border-radius:999px;box-shadow:0 7px 18px rgba(16,42,86,.22)}
.account-actions-box .page-icon-link{box-shadow:none}
.global-notifications-fab{position:fixed;z-index:1000;inset-inline-end:18px;top:18px;padding:5px;background:linear-gradient(120deg,#102a56,#1769aa);border:1px solid rgba(255,255,255,.7);border-radius:999px;box-shadow:0 7px 18px rgba(16,42,86,.22)}
.notification-bell{position:relative;cursor:pointer}
.notification-badge{position:absolute;top:-4px;inset-inline-end:-4px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:#dc2626;color:#fff;font:700 10px/1 Arial,sans-serif;box-shadow:0 2px 6px rgba(127,29,29,.24)}
.notifications-dialog{width:min(560px,calc(100vw - 28px));max-height:min(78vh,720px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(15,35,70,.24)}
.notifications-dialog::backdrop{background:rgba(13,31,58,.42);backdrop-filter:blur(3px)}
.notifications-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8fbfd,#eef6fb)}
.notifications-dialog-header h2{margin:0;color:var(--navy);font-size:21px}
.notifications-dialog-header p{margin:5px 0 0;color:var(--muted);font-size:13px}
.notifications-close{width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);font-size:24px;line-height:1;cursor:pointer}
.notifications-list{max-height:calc(78vh - 92px);overflow:auto;padding:14px 18px 18px;overscroll-behavior:contain}
.notification-item{position:relative;margin:8px 0;padding:15px 16px;border:1px solid var(--line);border-radius:15px;background:#fff}
.notification-item.is-unread{border-color:#fca5a5;background:#fffafa}
.notification-item.is-unread::before{content:"";position:absolute;top:19px;inset-inline-start:13px;width:9px;height:9px;border-radius:50%;background:#dc2626}
.notification-item-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-inline-start:16px;color:var(--muted);font-size:12px}
.notification-kind{color:var(--blue);font-weight:800}
.notification-item h3{margin:10px 0 5px;color:var(--navy);font-size:16px}
.notification-item p{margin:0;color:#334155;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.notifications-empty,.notifications-loading,.notifications-error{padding:28px 12px;text-align:center;color:var(--muted)}
.notifications-empty span{display:inline-grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#eaf7f1;color:#078b66;font-size:22px;font-weight:800}
.notifications-empty p{margin:10px 0 0}

.main-service-button h3{
  margin:10px 0 5px;
  font-size:21px;
  color:var(--navy);
}

.main-service-button p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}

/* ==================== FORM PANEL ==================== */
.panel{
  display:none;
  margin-top:26px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.95);
  box-shadow:var(--shadow);
}

.panel.active{display:block}

.steps{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:26px;
}

.step{
  padding:8px 16px;
  color:var(--muted);
  background:#f5f8fb;
  border:1px solid var(--line);
  border-radius:20px;
  font-size:13px;
}

.step.active{
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--blue));
  box-shadow:0 8px 20px rgba(23,105,170,.22);
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

.full{grid-column:1/-1}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field label,
label{
  font-weight:700;
  font-size:14px;
}

.field label{color:var(--navy)}

.input-fields input,
.input-fields select,
.input-fields textarea,
input,select,textarea{
  padding:13px 14px;
  outline:0;
  background:#fff;
  border:1px solid #d8e3ed;
  border-radius:13px;
  box-shadow:inset 0 1px 2px rgba(16,42,86,.03);
  transition:border-color .2s,box-shadow .2s,transform .2s;
}

.input-fields input:hover,
.input-fields select:hover,
.input-fields textarea:hover,
input:hover,select:hover,textarea:hover{
  border-color:#b8ccdc;
}

.input-fields input:focus,
.input-fields select:focus,
.input-fields textarea:focus,
input:focus,select:focus,textarea:focus{
  border-color:#1b86b8;
  box-shadow:0 0 0 4px rgba(27,134,184,.12);
  transform:translateY(-1px);
}

textarea{
  min-height:105px;
  resize:vertical;
}

/* ==================== NAVIGATION BUTTONS ==================== */
.navigation-buttons{
  display:flex;
  gap:11px;
  margin-top:20px;
}

.btn{
  border:0;
  border-radius:13px;
  padding:12px 24px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s;
}

.btn:hover{transform:translateY(-2px)}

.primary{
  color:#fff;
  background:linear-gradient(135deg,#102a56,#1769aa);
  box-shadow:0 9px 22px rgba(23,105,170,.20);
}

.secondary{
  color:#334155;
  background:#eef4f8;
  border:1px solid #dde8ef;
}

.success{
  color:#fff;
  background:linear-gradient(135deg,#087b5d,#0ca477);
  box-shadow:0 9px 22px rgba(8,123,93,.18);
}

/* ==================== DOCTOR CARDS ==================== */
.doctor-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  direction:ltr;
}

.specialty-card{
  direction:rtl;
  position:relative;
  min-height:205px;
  padding:18px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--navy);
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  background:linear-gradient(180deg,#fff,#f9fbfd);
  border:1px solid #e1eaf2;
  border-radius:22px;
  box-shadow:0 10px 28px rgba(16,42,86,.07);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease,background .3s ease;
}

.specialty-card:after{
  content:"";
  position:absolute;
  left:14%;
  right:14%;
  bottom:0;
  height:3px;
  border-radius:5px;
  background:linear-gradient(90deg,var(--blue),var(--cyan));
  opacity:0;
  transition:.3s;
}

.specialty-card:hover{
  transform:translateY(-7px);
  box-shadow:0 20px 42px rgba(16,42,86,.13);
  border-color:#acd8e7;
}

.specialty-card:hover:after,
.specialty-card.selected:after{opacity:1}

.specialty-card.selected{
  border-color:var(--blue);
  background:linear-gradient(180deg,#f5fbfe,#edf7fb);
  box-shadow:0 0 0 4px rgba(23,105,170,.10),0 18px 42px rgba(23,105,170,.13);
}

.specialty-image{
  position:relative;
  width:112px;
  height:112px;
  aspect-ratio:1;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  background:#e8f1f8;
  border:4px solid #fff;
  border-radius:22px;
  box-shadow:0 10px 22px rgba(16,42,86,.10);
}

.doctor-image-select{
  width:100%;
  height:100%;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}

.doctor-card-next{
  position:absolute;
  inset-inline:14px;
  bottom:10px;
  min-height:32px;
  padding:4px 12px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:999px;
  background:linear-gradient(110deg,#12335f,#1769aa);
  color:#fff;
  font-size:13px;
  font-weight:800;
  box-shadow:0 5px 14px rgba(16,42,86,.25);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
  cursor:pointer;
}

.specialty-card.selected .doctor-card-next{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.specialty-card.selected{min-height:250px;padding-bottom:54px}

.doctor-image-select:focus-visible,
.doctor-card-next:focus-visible{outline:3px solid #f5c542;outline-offset:2px}

.specialty-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  display:block;
}

.doctor-cards .specialty-card[data-doctor="د.نورا حسين كمال"] .specialty-image,
.doctor-cards .specialty-card[data-doctor="د.صفاء صابر"] .specialty-image,
.doctor-cards .specialty-card[data-doctor="د.بهاء عسران"] .specialty-image{
  background:#addcff !important;
}

.doctor-cards .specialty-card[data-doctor="د.نورا حسين كمال"] .specialty-image img{
  width:88%;
  height:88%;
}

.doctor-cards .specialty-card[data-doctor="د.بهاء عسران"] .specialty-image img{
  width:110%;
  height:110%;
}

/* ==================== CONFIRMATION / FINAL MESSAGES ==================== */
.confirmation-messages{
  background:linear-gradient(135deg,#f8fbfd,#eef7fb);
  border:1px solid #d9e9f1;
  border-radius:15px;
  padding:18px;
  line-height:2;
  color:var(--navy)!important;
  font-size:16px;
  text-align:right;
}

.confirmation-messages b{color:var(--navy)}

/* Confirmation review and completion panels */
#confirmStep .confirmation-message.summary{
  margin:14px 0 18px;
  padding:clamp(16px,3vw,24px);
  border:1px solid #d9e9f1;
  border-radius:18px;
  background:linear-gradient(145deg,#f8fbfd,#eef7fb);
  color:var(--ink);
  font-size:16px;
  line-height:1.9;
  text-align:right;
  overflow-wrap:anywhere;
  box-shadow:0 8px 22px rgba(16,42,86,.05);
}

#confirmStep .confirmation-message.summary b{color:var(--navy)}
#confirmStep .confirmation-message.summary hr{border:0;border-top:1px solid #d5e1eb;margin:14px 0}
#confirmStep .contact-box{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}
#confirmStep .contact-title{margin:0 0 12px;color:var(--navy)}
#confirmStep .contact-methods{display:flex;flex-wrap:wrap;gap:10px}
#confirmStep .contact-option{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #dce6ef;border-radius:12px;background:#fff;color:var(--navy);cursor:pointer}
#confirmStep .contact-actions{margin-top:14px}
#confirmStep .contact-actions .btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px}
#confirmStep .navigation-buttons.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}
#confirmStep .navigation-buttons.actions .btn{min-width:150px}

#successStep.final-message{max-width:760px;margin:24px auto;padding:clamp(24px,5vw,44px);border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);text-align:center;box-shadow:var(--shadow)}
#successStep.final-message h3{margin:8px 0 16px;color:#078b66;font-size:clamp(22px,3vw,30px)}
#siteConfirmationDetails.final-confirmation-message{margin:18px auto;padding:18px;border:1px solid #d9e9f1;border-radius:16px;background:linear-gradient(145deg,#f8fbfd,#eef7fb);color:var(--navy);line-height:1.9;text-align:right;overflow-wrap:anywhere}
#siteConfirmationNote{color:var(--muted);line-height:1.8}

@media(max-width:650px){
  #confirmStep .contact-option{flex:1;justify-content:center;min-width:130px}
  #confirmStep .navigation-buttons.actions .btn{flex:1;min-width:140px}
}

.contact-box.confirmation-messages{
  margin-top:18px;
  padding:16px;
  border-color:#d5dfea;
  border-radius:14px;
}

.final-messages{
  text-align:center;
  padding:25px;
}

.final-messages h3{color:#078b66}

.check{font-size:55px}

/* ==================== HOME / FOOTER ==================== */
.home-navigation{
  display:flex;
  justify-content:flex-start;
  margin-bottom:16px;
}

.footer-area{
  padding:28px;
  text-align:center;
  color:#718096;
  font-size:12px;
}
.footer-copy{margin-bottom:16px}
.footer-actions{display:flex;direction:rtl;align-items:center;justify-content:space-between;gap:20px;max-width:980px;margin:0 auto}
.footer-contact-group{display:flex;align-items:center;gap:8px}
.footer-social-link{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dbe6ef;border-radius:50%;background:#fff;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.footer-social-link:hover{transform:translateY(-2px);box-shadow:0 6px 15px rgba(16,42,86,.15)}
.footer-social-link svg{display:block;width:18px;height:18px;fill:currentColor}
.facebook-link{color:#14549a}
.whatsapp-link{color:#087b5d}
@media(max-width:600px){.footer-actions{max-width:100%;gap:12px}.footer-contact-group{gap:6px}.footer-social-link{width:32px;height:32px}.footer-social-link svg{width:16px;height:16px}}

/* ==================== SERVICE LOGO ==================== */
.hero-service-logo{
  display:none;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.hero.service-active{
  min-height:190px!important;
  height:190px!important;
  width:100%!important;
  margin:0!important;
  padding:12px 18px!important;
  border-radius:25px!important;
  box-shadow:0 10px 30px #0002!important;
}

.hero.service-active .hero-service-logo{
  display:flex;
  min-height:165px!important;
  height:165px!important;
}

.hero.service-active .hero-service-logo img{
  display:block;
  width:min(80vw,340px)!important;
  height:160px!important;
  max-height:160px!important;
  object-fit:contain;
  object-position:center;
  transform-origin:center;
  animation:logoFromHeader 1.15s cubic-bezier(.16,1,.3,1) both!important;
  filter:drop-shadow(0 10px 20px #00000014);
}

.hero.service-active #heroWelcome{display:none}

.heroWelcomeHidden{display:none!important}

@keyframes logoFromHeader{
  0%{
    opacity:0;
    transform:translate3d(0,18px,0) scale(.94);
    filter:blur(2px);
  }
  72%{
    opacity:1;
    transform:translate3d(0,-2px,0) scale(1.005);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
    filter:blur(0);
  }
}

/* ==================== SERVICE SCROLL STATE ==================== */
body.service-booking .hero,
body.service-medicine .hero{display:none!important}

body.service-booking .logo-area,
body.service-medicine .logo-area{
  height:350px!important;
  
}

body.service-booking .nav,
body.service-medicine .nav{
  height:350px!important;
  justify-content:center!important;
  padding:18px!important;
}

body.service-booking .brand{
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:0!important;
}

body.service-booking .brand img{
  width:300px!important;
  height:300px!important;
  border-radius:28px!important;
  object-fit:contain!important;
  animation:serviceLogoEnter 1.15s cubic-bezier(.16,1,.3,1) both;
}

body.service-booking .brand h1,
body.service-booking .brand p,
body.service-booking .nav>img{display:none!important}

body.service-medicine .brand{display:none!important}

body.service-medicine .nav>img{
  display:block!important;
  width:300px!important;
  height:300px!important;
  max-width:92vw!important;
  max-height:360px!important;
  object-fit:contain!important;
  border-radius:28px!important;
  animation:serviceLogoEnter 1.15s cubic-bezier(.16,1,.3,1) both;
}

@keyframes serviceLogoEnter{
  from{opacity:.65;transform:translate3d(0,12px,0) scale(.97)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}

body.service-scrolling .logo-area{
  height:110px!important;

}

body.service-scrolling .nav{
  height:110px!important;
  padding:10px 18px!important;
}

body.service-scrolling .brand{
  flex-direction:row!important;
  gap:12px!important;
}

body.service-scrolling .brand img,
body.service-scrolling .nav>img{
  width:90px!important;
  height:90px!important;
  border-radius:14px!important;
}

body.service-scrolling .brand h1,
body.service-scrolling .brand p{display:block!important}

body.service-scrolling .nav>img{display:block!important}

body.service-scrolling.service-booking .brand{display:flex!important}
body.service-scrolling.service-booking .brand img{display:block!important}
body.service-scrolling.service-booking .nav>img{display:none!important}
body.service-scrolling.service-medicine .brand{display:none!important}
body.service-scrolling.service-medicine .nav>img{display:block!important}

/* ==================== LOADING ==================== */
#loadingScreen{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  opacity:1;
  visibility:visible;
  transition:opacity .4s ease,visibility .4s ease;
}

#loadingScreen.hide{
  opacity:0;
  visibility:hidden;
}

#loadingScreen img{
  width:200px;
  height:200px;
  border-radius:40px;
  object-fit:contain;
}
}

/* ==================== MOBILE ==================== */
@media(max-width:700px){
  .logo-area,.nav{height:78px}
  .nav{padding:6px 12px}

  .brand img{
    width:62px;
    height:62px;
  }

  .brand h1{font-size:16px}
  .brand p{font-size:10px}

  .container{padding:20px 12px 40px}

  .hero{
    min-height:165px;
    padding:38px 18px;
    border-radius:24px;
  }

  .hero h2{font-size:26px}

  .main-service-buttons,
  .grid{
    grid-template-columns:1fr;
  }

  .main-service-buttons{gap:14px}
  .main-service-button{
    padding:25px 16px;
    border-radius:20px;
  }

  .panel{
    padding:20px 14px;
    border-radius:20px;
  }

  .doctor-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .specialty-card{
    min-height:180px;
    padding:12px 8px;
    border-radius:18px;
    font-size:14px;
  }

  .specialty-image{
    width:92px;
    height:92px;
  }

  .navigation-buttons{
    flex-wrap:wrap;
  }

  .navigation-buttons .btn{
    flex:1;
    min-width:120px;
  }

  body.service-booking .logo-area,
  body.service-medicine .logo-area,
  body.service-booking .nav,
  body.service-medicine .nav{
    height:250px!important;
  }

  body.service-booking .brand img,
  body.service-medicine .nav>img{
    width:210px!important;
    height:210px!important;
    max-width:88vw!important;
    max-height:250px!important;
  }

  body.service-scrolling .logo-area,
  body.service-scrolling .nav{
    height:85px!important;
  }

  body.service-scrolling .brand img,
  body.service-scrolling .nav>img{
    width:72px!important;
    height:72px!important;
  }

  .hero.service-active{
    min-height:155px!important;
    height:155px!important;
    border-radius:18px!important;
    padding:8px 10px!important;
  }

  .hero.service-active .hero-service-logo{
    min-height:140px!important;
    height:140px!important;
  }

  .hero.service-active .hero-service-logo img{
    width:86vw!important;
    height:130px!important;
    max-height:130px!important;
  }

  .home-navigation{margin-bottom:14px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero,.main-service-button,.specialty-card,.btn,.brand img{transition:none}
  .hero-service-logo img,
  body.service-booking .brand img,
  body.service-medicine .nav>img{animation:none!important}
}

/* Account and doctor detail pages */
.page-shell{max-width:1000px;margin:28px auto;padding:0 18px 50px}.account-panel,.doctor-profile,.doctor-form{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow);margin:18px 0}.account-nav{display:flex;gap:12px;justify-content:flex-end;margin:14px auto;max-width:1000px;padding:0 18px}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.account-grid .field{display:flex;flex-direction:column;gap:7px}.account-grid input,.account-grid textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.account-switch{display:flex;gap:10px;margin-bottom:18px}.account-switch button{border:0;border-radius:12px;padding:10px 18px;cursor:pointer;background:#eef3f8}.account-switch button.active{background:var(--navy);color:#fff}.activity-item{border:1px solid var(--line);border-radius:14px;padding:15px;margin:10px 0}.doctor-hero{display:flex;align-items:center;gap:22px}.doctor-hero img{width:150px;height:150px;object-fit:cover;border-radius:22px;background:#eef3f8}.doctor-hero h2{margin:0 0 6px;color:var(--navy)}.doctor-meta{color:var(--muted);line-height:1.9}.form-status{min-height:28px;color:#a33}.page-links{display:flex;gap:10px;align-items:center}
@media(max-width:650px){.account-grid{grid-template-columns:1fr}.doctor-hero{flex-direction:column;text-align:center}.doctor-hero img{width:130px;height:130px}.account-panel,.doctor-profile,.doctor-form{padding:18px}.page-links{flex-wrap:wrap;justify-content:flex-end}}

.account-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.account-profile-item{min-width:0;display:flex;flex-direction:column;gap:7px;padding:16px 18px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,#fbfdff,#f5f9fc)}
.account-profile-item span{color:var(--muted);font-size:14px;font-weight:700}
.account-profile-item strong{color:var(--navy);font-size:17px;font-weight:700;overflow-wrap:anywhere}
.account-profile-address{grid-column:1/-1}
.account-profile-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.account-profile-actions .btn,.profile-edit-actions .btn{min-width:150px}
.profile-edit-actions{grid-column:1/-1;justify-content:flex-start;margin-top:4px}
@media(max-width:650px){.account-profile-grid{grid-template-columns:1fr}.account-profile-address{grid-column:auto}.account-profile-actions .btn,.profile-edit-actions .btn{flex:1}}

/* Account shortcut inside the blue welcome banner */
.hero-account-button{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:9px;margin-top:18px;padding:10px 24px;min-width:132px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:#fff;color:#102a56;text-decoration:none;font-weight:800;box-shadow:0 8px 22px rgba(7,25,57,.18);transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
.hero-account-button:hover{transform:translateY(-2px);background:#eff9ff;box-shadow:0 12px 28px rgba(7,25,57,.24)}
.hero-account-button:focus-visible{outline:3px solid #ffe08a;outline-offset:3px}
.hero-account-actions{position:relative;z-index:2;display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:5px 7px;background:linear-gradient(120deg,#102a56,#1769aa);border:1px solid rgba(255,255,255,.65);border-radius:999px;box-shadow:0 9px 24px rgba(7,25,57,.2)}
.hero-account-actions .hero-account-button{margin:0;box-shadow:none}
.home-notification-bell{position:relative;display:grid;place-items:center;width:42px;height:42px;flex:none;padding:0;border:1px solid rgba(255,255,255,.85);border-radius:50%;background:#fff;color:#102a56;cursor:pointer;box-shadow:0 5px 14px rgba(7,25,57,.15);transition:transform .18s ease,background .18s ease}
.home-notification-bell:hover{transform:translateY(-1px);background:#eff9ff}
.home-notification-bell:focus-visible{outline:3px solid #ffe08a;outline-offset:3px}
.home-notification-bell svg{display:block;width:19px;height:19px}
.hero-account-actions .notification-badge{border-color:#fff}
@media(max-width:700px){.hero-account-button{margin-top:14px;padding:9px 22px}}
@media(max-width:700px){.hero-account-actions{margin-top:14px}.hero-account-actions .hero-account-button{margin:0}}
.booking-signup-suggestion{margin:0 0 18px;padding:16px 18px;border:1px solid #cfe0f1;border-right:4px solid #1769aa;border-radius:14px;background:#f2f8fd;color:var(--ink);line-height:1.8;text-align:right}
.booking-signup-suggestion strong{display:block;color:var(--navy);font-size:1.05em}
.booking-signup-suggestion p{margin:3px 0 6px}
.booking-signup-suggestion a{color:#1769aa;font-weight:800;text-decoration:underline;text-underline-offset:3px}

/* Doctor cards: three columns on desktop and two on phone screens. */
.doctor-cards,
.doctor-cards-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.doctor-cards{grid-auto-rows:1fr;align-items:stretch}
.doctor-cards .specialty-card{height:100%;justify-content:flex-start}
.doctor-cards .specialty-image{width:140px;height:140px;flex:0 0 140px}
.doctor-cards .specialty-card>span{display:flex;align-items:center;justify-content:center;min-height:2.8em;line-height:1.4;text-align:center}
.doctor-cards .specialty-card>small{display:flex;align-items:flex-start;justify-content:center;min-height:2.8em;line-height:1.5}
@media(max-width:700px){
  .doctor-cards,
  .doctor-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .doctor-cards .specialty-image{width:118px;height:118px;flex-basis:118px}
  .doctor-cards .specialty-card>span{min-height:2.8em}
  .doctor-cards .specialty-card>small{min-height:3em}
}
