/*
Theme Name: MediCare Hospital Pro Clean
Author: ChatGPT
Description: Clean hospital WordPress theme with built-in doctor registration, admin approval, doctor schedule, appointment serial, patient dashboard, doctor dashboard, printable slip and Redux-style theme settings.
Version: 5.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: medicare-hospital-pro-clean
*/
:root{--hmp-primary:#075de8;--hmp-secondary:#08a06b;--hmp-danger:#ef2f2f;--hmp-dark:#082052;--hmp-text:#1c2b4a;--hmp-muted:#66718a;--hmp-bg:#eef7ff;--hmp-font:Arial,sans-serif;--hmp-heading-size:44px;--hmp-body-size:16px}*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:var(--hmp-font);font-size:var(--hmp-body-size);color:var(--hmp-text);background:linear-gradient(180deg,#f7fbff,var(--hmp-bg) 55%,#fff);overflow-x:hidden}a{text-decoration:none;color:inherit}.hmp-glass{background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.75);box-shadow:0 22px 55px rgba(7,93,232,.14);backdrop-filter:blur(18px)}.hmp-header{position:sticky;top:0;z-index:999;display:flex;align-items:center;justify-content:space-between;padding:16px 5%}.hmp-brand{display:flex;gap:12px;align-items:center}.hmp-logo-icon{width:52px;height:52px;border:3px solid var(--hmp-primary);color:var(--hmp-secondary);border-radius:16px;display:grid;place-items:center;font-size:26px;font-weight:900}.hmp-brand h2{color:var(--hmp-primary);line-height:1;font-size:24px}.hmp-brand p{font-size:12px;color:var(--hmp-secondary);font-weight:700}.hmp-nav{display:flex;gap:22px;font-weight:700;font-size:14px}.hmp-nav a{color:#0b2354}.hmp-actions{display:flex;gap:10px;align-items:center}.hmp-btn,.hmp-login-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:13px 18px;background:linear-gradient(135deg,var(--hmp-primary),#0046c7);color:#fff!important;font-weight:800;cursor:pointer;text-decoration:none}.hmp-btn.light{background:#fff;color:var(--hmp-primary)!important;border:1px solid #cfe0ff}.hmp-btn.danger{background:#fff;color:var(--hmp-danger)!important;border:1px solid rgba(239,47,47,.35)}.hmp-menu-toggle{display:none;border:0;background:var(--hmp-primary);color:#fff;border-radius:10px;padding:10px 13px}.hmp-hero{min-height:620px;display:grid;grid-template-columns:1fr 1.35fr;align-items:center;gap:30px;padding:55px 5% 35px}.hmp-badges{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.hmp-badges span{background:#fff;border-radius:999px;padding:10px 14px;box-shadow:0 8px 25px rgba(0,0,0,.06);font-weight:700;font-size:13px}.hmp-hero h1{font-size:var(--hmp-heading-size);line-height:1.05;color:var(--hmp-dark);letter-spacing:-1px;margin-bottom:20px}.hmp-hero p{font-size:18px;line-height:1.7;color:#23365f;max-width:600px;margin-bottom:26px}.hmp-hero-buttons{display:flex;gap:13px;flex-wrap:wrap}.hmp-visual{perspective:1200px}.hmp-hospital-3d{position:relative;height:465px;border-radius:34px;overflow:hidden;background:linear-gradient(135deg,#dff0ff,#fff 45%,#cbe8ff);box-shadow:0 35px 90px rgba(7,93,232,.22)}.hmp-sun{position:absolute;right:8%;top:10%;width:80px;height:80px;background:#fff6a8;border-radius:50%;filter:blur(2px)}.hmp-cloud{position:absolute;width:95px;height:28px;background:#fff;border-radius:40px;opacity:.9;animation:hmpCloud 8s infinite ease-in-out}.hmp-cloud:before,.hmp-cloud:after{content:"";position:absolute;background:#fff;border-radius:50%}.hmp-cloud:before{width:45px;height:45px;left:15px;top:-24px}.hmp-cloud:after{width:55px;height:55px;right:10px;top:-32px}.hmp-cloud.a{left:20%;top:15%}.hmp-cloud.b{right:22%;top:23%;animation-delay:2s}@keyframes hmpCloud{50%{transform:translateX(25px) translateY(-8px)}}.hmp-building{position:absolute;right:10%;bottom:58px;width:560px;height:350px;transform:rotateY(-10deg) rotateX(3deg)}.hmp-building-main{position:absolute;right:70px;bottom:0;width:370px;height:330px;border-radius:8px 8px 0 0;background:linear-gradient(120deg,#f9fbff,#d8e7f6);box-shadow:25px 25px 60px rgba(0,34,90,.2);border:1px solid rgba(255,255,255,.8)}.hmp-building-side{position:absolute;right:0;bottom:0;width:160px;height:270px;background:linear-gradient(90deg,#cfe1f2,#f4f8fc);transform:skewY(-8deg);border-radius:0 10px 0 0}.hmp-cross{position:absolute;top:25px;left:50%;transform:translateX(-50%);width:70px;height:70px;border-radius:16px;background:linear-gradient(135deg,#0976ff,#0050c7);color:#fff;display:grid;place-items:center;font-size:36px}.hmp-building-main h3{position:absolute;top:105px;left:0;right:0;text-align:center;color:var(--hmp-primary);font-size:27px}.hmp-windows{position:absolute;left:45px;right:45px;top:180px;height:95px;background:linear-gradient(90deg,transparent 31%,#fff 31% 34%,transparent 34% 64%,#fff 64% 67%,transparent 67%),linear-gradient(0deg,transparent 47%,#fff 47% 52%,transparent 52%),linear-gradient(135deg,#63b9ff,#0b70ce);border-radius:8px}.hmp-entrance{position:absolute;left:95px;bottom:0;width:180px;height:45px;background:var(--hmp-danger);color:#fff;font-weight:900;display:grid;place-items:center;border-radius:10px 10px 0 0}.hmp-ambulance{position:absolute;right:25px;bottom:55px;width:180px;height:88px;animation:hmpAmb 3s infinite ease-in-out}@keyframes hmpAmb{50%{transform:translateX(-12px)}}.hmp-van{width:170px;height:62px;background:#fff;border:4px solid #dfe7f2;border-radius:18px 22px 12px 12px;color:var(--hmp-danger);font-size:13px;font-weight:900;display:grid;place-items:center}.hmp-light{position:absolute;left:50px;top:-8px;width:42px;height:13px;background:var(--hmp-danger);border-radius:10px;animation:hmpFlash .8s infinite}@keyframes hmpFlash{50%{background:#0b6bff}}.hmp-wheel{position:absolute;bottom:3px;width:28px;height:28px;background:#1c2b4a;border:5px solid #77859b;border-radius:50%}.hmp-wheel.left{left:28px}.hmp-wheel.right{right:28px}.hmp-section{padding:35px 5%}.hmp-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}.hmp-section-head h2{font-size:28px;color:var(--hmp-dark)}.hmp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.hmp-card{background:#fff;border:1px solid #e7eff8;border-radius:22px;padding:20px;box-shadow:0 14px 35px rgba(8,32,82,.07);transition:.25s}.hmp-card:hover{transform:translateY(-7px);box-shadow:0 24px 55px rgba(7,93,232,.16)}.hmp-icon{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;margin:0 auto 12px;background:linear-gradient(135deg,#eef7ff,#fff);font-size:40px}.hmp-card h3{color:var(--hmp-dark);margin-bottom:7px}.hmp-card p{color:var(--hmp-muted);line-height:1.5}.hmp-quick{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;padding:0 5% 28px}.hmp-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hmp-form input,.hmp-form select,.hmp-form textarea,.hmp-chat textarea{width:100%;border:1px solid #dce7f6;border-radius:12px;padding:13px;background:#fff}.hmp-form textarea,.hmp-form button,.hmp-form .full{grid-column:1/-1}.hmp-form button{border:0;border-radius:12px;background:linear-gradient(135deg,var(--hmp-primary),#0046c7);color:#fff;font-weight:800;padding:14px}.hmp-emergency{background:linear-gradient(135deg,#9d1018,#ff4b36);color:#fff;border-radius:24px;padding:24px;box-shadow:0 25px 60px rgba(239,47,47,.23)}.hmp-emergency li{list-style:none;margin:9px 0}.hmp-emergency li:before{content:"✓ ";font-weight:900}.hmp-stats{margin:30px 5%;padding:25px;border-radius:22px;background:linear-gradient(135deg,#003caa,#066cff);display:grid;grid-template-columns:repeat(4,1fr);gap:10px;color:#fff;text-align:center}.hmp-stats h2{font-size:34px}.hmp-footer{background:#062154;color:#fff;margin-top:30px;padding:42px 5%;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px}.hmp-footer a,.hmp-footer p{display:block;color:#d9e7ff;margin:8px 0;line-height:1.6}.hmp-page{padding:45px 5%;max-width:1150px;margin:auto}.hmp-page h1{font-size:40px;color:var(--hmp-dark);margin-bottom:15px}.hmp-dashboard-card{background:#fff;border:1px solid #e1edff;border-radius:20px;padding:20px;margin:15px 0;box-shadow:0 12px 35px rgba(7,93,232,.1)}.hmp-dashboard-card h3{color:var(--hmp-primary);font-size:26px}.hmp-chat{background:#f7fbff;border-radius:14px;padding:12px;margin-top:12px}.hmp-chat p{background:#fff;padding:8px;border-radius:8px}.hmp-modal{position:fixed;inset:0;background:rgba(5,20,50,.55);z-index:99999;display:none;align-items:center;justify-content:center;padding:20px}.hmp-modal.open{display:flex}.hmp-login-panel{width:min(980px,96vw);background:#fff;border-radius:28px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.25);position:relative}.hmp-close{position:absolute;right:18px;top:16px;background:var(--hmp-danger);color:#fff;border:0;border-radius:50%;width:34px;height:34px;font-weight:bold}.hmp-login-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hmp-login-card{background:linear-gradient(135deg,#f7fbff,#fff);border:1px solid #dce7f6;border-radius:22px;padding:22px}.hmp-login-card h2{color:var(--hmp-dark);margin-bottom:10px}.hmp-login-card input{width:100%;margin:8px 0;border:1px solid #dce7f6;border-radius:12px;padding:13px}.hmp-login-card button{width:100%;border:0;border-radius:12px;background:linear-gradient(135deg,var(--hmp-primary),#0046c7);color:#fff;font-weight:bold;padding:13px}.hmp-error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:10px;margin:8px 0}.hmp-success{background:#dcfce7;color:#166534;padding:12px;border-radius:12px;margin:10px 0}.hmp-table{width:100%;border-collapse:collapse;background:#fff}.hmp-table th,.hmp-table td{padding:11px;border-bottom:1px solid #e5e7eb;text-align:left}.hmp-badge{display:inline-block;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:4px 9px;font-weight:700;font-size:12px}@media(max-width:950px){.hmp-nav{display:none;position:absolute;top:82px;left:5%;right:5%;background:#fff;border-radius:20px;padding:20px;flex-direction:column}.hmp-nav.open{display:flex}.hmp-menu-toggle{display:block}.hmp-hero,.hmp-quick,.hmp-login-grid{grid-template-columns:1fr}.hmp-grid{grid-template-columns:repeat(2,1fr)}.hmp-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.hmp-grid,.hmp-stats,.hmp-form,.hmp-footer{grid-template-columns:1fr}.hmp-hero h1{font-size:38px}.hmp-hospital-3d{height:340px}.hmp-building{right:-50px;transform:scale(.72)}}


/* v1.1 full homepage sections restored */
.hmp-why{display:grid;grid-template-columns:1fr;gap:12px;background:#fff;border:1px solid #e7eff8;border-radius:24px;padding:24px;box-shadow:0 14px 35px rgba(8,32,82,.07)}
.hmp-why h2{color:var(--hmp-dark);margin-bottom:8px}.hmp-why li{list-style:none;margin:10px 0;font-weight:700;color:#22345c}.hmp-why li:before{content:"✚";color:var(--hmp-primary);margin-right:9px}
.hmp-quick{grid-template-columns:1.08fr .86fr .9fr}
.hmp-doctor-avatar{width:130px;height:130px;border-radius:28px;background:linear-gradient(180deg,#eef7ff,#fff);display:grid;place-items:center;font-size:65px;margin:0 auto 14px;box-shadow:inset 0 -20px 30px rgba(7,93,232,.08)}
.hmp-split{display:grid;grid-template-columns:1.15fr .85fr 1.15fr;gap:22px}.hmp-facilities,.hmp-testimonial,.hmp-news,.hmp-insurance,.hmp-contact-card{border-radius:24px;padding:24px}.hmp-facility-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hmp-facility-grid div{background:#fff;border-radius:16px;padding:18px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.05);display:grid;gap:8px;font-size:28px}.hmp-facility-grid b{font-size:13px;color:var(--hmp-dark)}.hmp-stars{color:#ffa500;font-size:22px;margin:10px 0}.hmp-news article{background:#fff;margin-top:12px;padding:15px;border-radius:16px}.hmp-news span{color:var(--hmp-primary);font-size:12px;font-weight:800}.hmp-news h3{font-size:16px;margin:5px 0;color:var(--hmp-dark)}.hmp-news p,.hmp-testimonial p{color:var(--hmp-muted);line-height:1.7}.hmp-bottom-info{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hmp-payment-list{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px}.hmp-payment-list span{background:#fff;border-radius:999px;padding:10px 14px;font-weight:700}.hmp-contact-card p{margin:10px 0;color:#344466}.hmp-home-cta{margin:30px 5%;border-radius:28px;padding:30px;background:linear-gradient(135deg,#003caa,#066cff);color:#fff;display:grid;grid-template-columns:1.3fr .7fr;gap:20px;align-items:center;box-shadow:0 25px 70px rgba(7,93,232,.25)}.hmp-home-cta h2{font-size:34px}.hmp-home-cta p{opacity:.9;line-height:1.7}.hmp-home-cta .hmp-btn{background:#fff;color:#075de8!important}
@media(max-width:950px){.hmp-quick,.hmp-split,.hmp-bottom-info,.hmp-home-cta{grid-template-columns:1fr}.hmp-facility-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.hmp-facility-grid{grid-template-columns:1fr}}


/* v1.3 admin editable design additions */
.hmp-route-wrap{padding:45px 5%;max-width:1180px;margin:auto}
.hmp-route-wrap h1{font-size:42px;color:var(--hmp-dark);margin-bottom:18px}
.hmp-route-card{background:#fff;border:1px solid #e1edff;border-radius:24px;padding:24px;margin:18px 0;box-shadow:0 20px 50px rgba(7,93,232,.12)}
.hmp-admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.hmp-admin-tabs a{padding:10px 14px;background:#fff;border:1px solid #ccdfff;border-radius:10px;text-decoration:none;font-weight:700}
.hmp-setting-grid{display:grid;grid-template-columns:220px 1fr;gap:10px;align-items:center;max-width:900px}
.hmp-setting-grid input,.hmp-setting-grid textarea,.hmp-setting-grid select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px}
.hmp-setting-section{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px;margin:18px 0}
.hmp-setting-section h2{margin-top:0;color:#082052}
.hmp-login-submenu{position:relative;display:inline-flex}
.hmp-login-submenu-menu{display:none;position:absolute;right:0;top:100%;background:#fff;border:1px solid #dbeafe;border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.14);padding:10px;min-width:190px;z-index:9999}
.hmp-login-submenu:hover .hmp-login-submenu-menu{display:block}
.hmp-login-submenu-menu a{display:block;padding:10px;border-radius:10px;color:#082052;font-weight:800}
.hmp-login-submenu-menu a:hover{background:#eef7ff}
@media(max-width:700px){.hmp-setting-grid{grid-template-columns:1fr}.hmp-login-submenu-menu{left:0;right:auto}}


/* HMP v1.4 Professional Dashboard */
.hmp-pro-dashboard{padding:45px 5%;max-width:1260px;margin:auto}
.hmp-pro-title{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.hmp-pro-title h1{font-size:42px;color:var(--hmp-dark);margin:0}
.hmp-pro-title p{color:#64748b;font-size:16px;margin:6px 0 0}
.hmp-pro-pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbeafe;color:#075de8;border-radius:999px;padding:10px 14px;font-weight:800;box-shadow:0 8px 25px rgba(7,93,232,.08)}
.hmp-pro-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}
.hmp-pro-stat{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff,#f7fbff);border:1px solid #e1edff;border-radius:22px;padding:20px;box-shadow:0 18px 45px rgba(7,93,232,.1)}
.hmp-pro-stat:after{content:"";position:absolute;right:-25px;bottom:-25px;width:90px;height:90px;background:rgba(7,93,232,.08);border-radius:50%}
.hmp-pro-stat .icon{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#075de8,#0046c7);color:#fff;display:grid;place-items:center;font-size:22px;margin-bottom:14px}
.hmp-pro-stat h2{font-size:34px;color:#082052;margin:0}
.hmp-pro-stat p{margin:4px 0 0;color:#64748b;font-weight:700}
.hmp-pro-layout{display:grid;grid-template-columns:1fr 360px;gap:18px;align-items:start}
.hmp-pro-card{background:rgba(255,255,255,.92);border:1px solid #e1edff;border-radius:24px;padding:22px;box-shadow:0 18px 50px rgba(7,93,232,.1);margin-bottom:18px}
.hmp-pro-card h2{font-size:24px;color:#082052;margin-bottom:14px;display:flex;align-items:center;gap:10px}
.hmp-pro-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.hmp-pro-table th{text-align:left;color:#64748b;font-size:13px;padding:8px 10px}
.hmp-pro-table td{background:#fff;border-top:1px solid #e8f1ff;border-bottom:1px solid #e8f1ff;padding:14px 10px;vertical-align:middle}
.hmp-pro-table td:first-child{border-left:1px solid #e8f1ff;border-radius:16px 0 0 16px}
.hmp-pro-table td:last-child{border-right:1px solid #e8f1ff;border-radius:0 16px 16px 0}
.hmp-serial-big{font-size:28px;font-weight:900;color:#075de8}
.hmp-status{display:inline-flex;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;background:#fef3c7;color:#92400e}
.hmp-status.completed{background:#dcfce7;color:#166534}
.hmp-status.approved{background:#dbeafe;color:#1d4ed8}
.hmp-status.cancelled{background:#fee2e2;color:#991b1b}
.hmp-action-row{display:flex;gap:8px;flex-wrap:wrap}
.hmp-mini-btn{border:0;border-radius:12px;padding:9px 12px;background:#075de8;color:#fff!important;font-weight:900;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.hmp-mini-btn.green{background:#16a34a}
.hmp-mini-btn.red{background:#dc2626}
.hmp-mini-btn.light{background:#eef7ff;color:#075de8!important;border:1px solid #cfe3ff}
.hmp-message-badge{position:relative;display:inline-flex;align-items:center;gap:8px}
.hmp-count-bubble{background:#ef2f2f;color:#fff;border-radius:999px;min-width:22px;height:22px;display:inline-grid;place-items:center;font-size:12px;font-weight:900}
.hmp-support-list{display:grid;gap:12px}
.hmp-support-item{background:#fff;border:1px solid #e8f1ff;border-radius:16px;padding:14px}
.hmp-support-item b{color:#082052}
.hmp-chat-modern{background:#f8fbff;border:1px solid #e1edff;border-radius:18px;padding:14px;margin-top:14px}
.hmp-chat-modern h4{display:flex;align-items:center;gap:8px;color:#082052;margin-bottom:10px}
.hmp-chat-line{display:flex;margin:8px 0}
.hmp-chat-line.patient{justify-content:flex-start}
.hmp-chat-line.doctor{justify-content:flex-end}
.hmp-chat-bubble{max-width:72%;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #e2e8f0;color:#0f172a}
.hmp-chat-line.doctor .hmp-chat-bubble{background:#075de8;color:#fff;border-color:#075de8}
.hmp-patient-grid{display:grid;grid-template-columns:1fr 330px;gap:18px}
.hmp-patient-main-card{background:#fff;border:1px solid #e1edff;border-radius:26px;padding:22px;box-shadow:0 18px 50px rgba(7,93,232,.1);margin-bottom:18px}
.hmp-patient-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;border-bottom:1px solid #e8f1ff;padding-bottom:16px;margin-bottom:16px}
.hmp-patient-serial{font-size:38px;font-weight:900;color:#075de8;line-height:1}
.hmp-current-chip{background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:7px 11px;font-weight:900;font-size:13px}
.hmp-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.hmp-info-box{background:#f8fbff;border:1px solid #e8f1ff;border-radius:16px;padding:12px}
.hmp-info-box span{display:block;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;margin-bottom:4px}
.hmp-info-box b{color:#082052}
.hmp-side-widget{background:#fff;border:1px solid #e1edff;border-radius:24px;padding:20px;box-shadow:0 18px 50px rgba(7,93,232,.1);margin-bottom:18px}
.hmp-side-widget h3{color:#082052;margin-bottom:12px}
.hmp-notice-smart{background:linear-gradient(135deg,#dcfce7,#f0fdf4);border:1px solid #bbf7d0;color:#166534;border-radius:18px;padding:14px;font-weight:800;margin:10px 0 18px}
@media(max-width:1000px){.hmp-pro-layout,.hmp-patient-grid{grid-template-columns:1fr}.hmp-pro-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.hmp-pro-stats,.hmp-info-grid{grid-template-columns:1fr}.hmp-pro-dashboard{padding:30px 4%}.hmp-pro-table{font-size:13px}.hmp-pro-table th:nth-child(4),.hmp-pro-table td:nth-child(4){display:none}}


/* HMP v1.5 Queue Status + Premium Hospital UI */
:root{
  --hmp-primary:#005bea;
  --hmp-primary-2:#00a6fb;
  --hmp-success:#12b76a;
  --hmp-warning:#f59e0b;
  --hmp-soft:#f4f9ff;
  --hmp-line:#d9e9ff;
}
body{letter-spacing:-.01em}
.hmp-pro-title h1,.hmp-page h1,.hmp-route-wrap h1{letter-spacing:-1.4px}
.hmp-btn,.hmp-login-btn,.hmp-mini-btn,.hmp-form button{
  border-radius:14px!important;
  min-height:44px;
  padding:12px 18px!important;
  background:linear-gradient(135deg,var(--hmp-primary),var(--hmp-primary-2))!important;
  box-shadow:0 12px 26px rgba(0,91,234,.22);
  transition:.22s ease;
}
.hmp-btn:hover,.hmp-login-btn:hover,.hmp-mini-btn:hover,.hmp-form button:hover{transform:translateY(-2px);box-shadow:0 16px 35px rgba(0,91,234,.28)}
.hmp-mini-btn.light,.hmp-btn.light{
  background:#ffffff!important;
  color:#005bea!important;
  border:1px solid #bcd8ff!important;
  box-shadow:0 8px 20px rgba(0,91,234,.08);
}
.hmp-mini-btn.green{background:linear-gradient(135deg,#12b76a,#039855)!important}
.hmp-pro-dashboard{
  background:
    radial-gradient(circle at top left, rgba(0,91,234,.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(18,183,106,.08), transparent 32%);
}
.hmp-patient-main-card,.hmp-pro-card,.hmp-side-widget,.hmp-dashboard-card{
  border-color:#d9e9ff!important;
  box-shadow:0 22px 60px rgba(0,72,180,.10)!important;
}
.hmp-patient-head{
  background:linear-gradient(135deg,#f7fbff,#ffffff);
  border:1px solid #e1efff;
  border-radius:22px;
  padding:18px!important;
}
.hmp-patient-serial{
  background:linear-gradient(135deg,#005bea,#00a6fb);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
}
.hmp-queue-status{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
  padding:14px 16px;
  border-radius:18px;
  font-weight:900;
  border:1px solid #d9e9ff;
}
.hmp-queue-status .q-icon{
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:20px;
  flex:0 0 auto;
}
.hmp-queue-status .q-title{display:block;font-size:17px;color:#082052;line-height:1.2}
.hmp-queue-status .q-sub{display:block;font-size:13px;color:#64748b;margin-top:3px;font-weight:700}
.hmp-queue-status.waiting{background:#f7fbff}
.hmp-queue-status.waiting .q-icon{background:linear-gradient(135deg,#005bea,#00a6fb)}
.hmp-queue-status.next{background:#fff7ed;border-color:#fed7aa}
.hmp-queue-status.next .q-icon{background:linear-gradient(135deg,#f59e0b,#f97316)}
.hmp-queue-status.running{background:#ecfdf3;border-color:#bbf7d0}
.hmp-queue-status.running .q-icon{background:linear-gradient(135deg,#12b76a,#039855)}
.hmp-queue-status.done{background:#f1f5f9;border-color:#cbd5e1}
.hmp-queue-status.done .q-icon{background:linear-gradient(135deg,#64748b,#334155)}
.hmp-info-box{
  background:linear-gradient(135deg,#fbfdff,#f6fbff)!important;
  border-color:#dcecff!important;
  min-height:76px;
}
.hmp-info-box span{color:#557098!important;letter-spacing:.02em}
.hmp-info-box b{font-size:16px}
.hmp-chat-modern textarea{
  min-height:82px;
  border-radius:16px!important;
  border-color:#cfe3ff!important;
  background:#fff!important;
  padding:14px!important;
  font-family:inherit;
}
.hmp-chat-modern form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:end;
}
.hmp-chat-modern button{height:46px}
.hmp-count-bubble{
  background:linear-gradient(135deg,#ef4444,#dc2626)!important;
  box-shadow:0 6px 18px rgba(239,68,68,.25);
}
.hmp-status{
  padding:8px 12px!important;
  min-width:92px;
  justify-content:center;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.hmp-status.pending{background:#fff3c4!important;color:#8a5a00!important}
.hmp-status.completed{background:#d9fbe8!important;color:#087443!important}
.hmp-status.approved{background:#ddecff!important;color:#0046b8!important}
.hmp-side-widget{
  background:linear-gradient(135deg,#ffffff,#f8fbff)!important;
}
.hmp-pro-stat{
  background:linear-gradient(135deg,#ffffff,#f4f9ff)!important;
  border-color:#d9e9ff!important;
}
.hmp-current-chip{
  background:linear-gradient(135deg,#e6f1ff,#dbeafe)!important;
  color:#075de8!important;
  border:1px solid #bcd8ff;
  display:inline-flex;
  gap:6px;
  align-items:center;
}
@media(max-width:620px){
  .hmp-chat-modern form{grid-template-columns:1fr}
  .hmp-patient-head{padding:14px!important}
  .hmp-queue-status{align-items:flex-start}
}


/* HMP v1.6 Mobile Layout Fix */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}

img, iframe, table, textarea, input, select {
  max-width: 100%;
}

.hmp-header {
  width: 100%;
}

.hmp-actions {
  min-width: 0;
}

.hmp-pro-dashboard,
.hmp-route-wrap,
.hmp-page {
  width: 100%;
  overflow-x: hidden;
}

.hmp-patient-main-card,
.hmp-pro-card,
.hmp-side-widget,
.hmp-route-card,
.hmp-dashboard-card {
  max-width: 100%;
  overflow: hidden;
}

.hmp-patient-head,
.hmp-action-row,
.hmp-pro-title,
.hmp-info-grid,
.hmp-chat-modern form {
  min-width: 0;
}

.hmp-chat-modern textarea {
  width: 100% !important;
  min-width: 0 !important;
  resize: vertical;
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .hmp-header {
    padding: 10px 12px !important;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .hmp-brand {
    gap: 8px !important;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 42%;
  }

  .hmp-logo-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 13px !important;
    font-size: 22px !important;
  }

  .hmp-brand h2 {
    font-size: 20px !important;
    line-height: .92 !important;
    letter-spacing: -0.5px;
    word-break: normal;
  }

  .hmp-brand p {
    font-size: 10px !important;
    line-height: 1.05 !important;
  }

  .hmp-actions {
    flex: 0 0 auto;
    gap: 6px !important;
    display: flex;
    align-items: center;
  }

  .hmp-login-btn,
  .hmp-btn,
  .hmp-mini-btn {
    min-height: 40px !important;
    padding: 9px 11px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    white-space: nowrap;
  }

  .hmp-actions .hmp-login-btn {
    max-width: 110px;
    white-space: normal;
    line-height: 1.1;
    text-align: center;
  }

  .hmp-actions .hmp-btn.danger {
    max-width: 86px;
  }

  .hmp-actions > a[href*="#appointment"],
  .hmp-actions > a[href*="doctor-appointment"] {
    display: none !important;
  }

  .hmp-menu-toggle {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .hmp-nav {
    top: 70px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 9999;
  }

  .hmp-pro-dashboard {
    padding: 28px 12px !important;
  }

  .hmp-pro-title {
    display: block !important;
    margin-bottom: 16px !important;
  }

  .hmp-pro-title h1 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }

  .hmp-pro-title p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .hmp-pro-pill {
    margin-top: 12px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hmp-patient-grid,
  .hmp-pro-layout {
    display: block !important;
  }

  .hmp-patient-main-card,
  .hmp-pro-card,
  .hmp-side-widget {
    padding: 16px !important;
    border-radius: 22px !important;
    margin-bottom: 16px !important;
  }

  .hmp-patient-head {
    display: block !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .hmp-patient-serial {
    font-size: 34px !important;
    line-height: 1 !important;
    margin-bottom: 8px;
  }

  .hmp-current-chip {
    font-size: 12px !important;
    padding: 7px 10px !important;
    max-width: 100%;
  }

  .hmp-action-row {
    margin-top: 12px;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .hmp-action-row .hmp-mini-btn,
  .hmp-action-row .hmp-message-badge {
    width: auto;
    max-width: 100%;
  }

  .hmp-queue-status {
    padding: 12px !important;
    border-radius: 18px !important;
    gap: 10px !important;
  }

  .hmp-queue-status .q-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 13px !important;
    font-size: 18px !important;
  }

  .hmp-queue-status .q-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .hmp-queue-status .q-sub {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .hmp-info-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hmp-info-box {
    min-height: auto !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .hmp-chat-modern {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .hmp-chat-modern form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hmp-chat-modern textarea {
    min-height: 88px !important;
    display: block;
  }

  .hmp-chat-modern button {
    width: 100%;
  }

  .hmp-side-widget h3 {
    font-size: 18px !important;
  }

  .hmp-pro-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .hmp-pro-stat {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .hmp-pro-stat h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 430px) {
  .hmp-header {
    padding: 9px 8px !important;
  }

  .hmp-brand {
    max-width: 37%;
    gap: 6px !important;
  }

  .hmp-logo-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 20px !important;
  }

  .hmp-brand h2 {
    font-size: 18px !important;
  }

  .hmp-brand p {
    font-size: 9px !important;
  }

  .hmp-actions {
    gap: 5px !important;
  }

  .hmp-login-btn,
  .hmp-btn,
  .hmp-mini-btn {
    font-size: 12px !important;
    padding: 8px 9px !important;
    min-height: 38px !important;
  }

  .hmp-actions .hmp-login-btn {
    max-width: 100px;
  }

  .hmp-actions .hmp-btn.danger {
    max-width: 76px;
  }

  .hmp-menu-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .hmp-pro-dashboard {
    padding: 24px 10px !important;
  }

  .hmp-pro-title h1 {
    font-size: 30px !important;
  }

  .hmp-patient-main-card,
  .hmp-pro-card,
  .hmp-side-widget {
    padding: 14px !important;
  }

  .hmp-patient-serial {
    font-size: 30px !important;
  }

  .hmp-action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hmp-action-row .hmp-mini-btn,
  .hmp-action-row .hmp-message-badge {
    width: 100%;
    justify-content: center;
  }

  .hmp-pro-stats {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 360px) {
  .hmp-brand h2 {
    font-size: 16px !important;
  }

  .hmp-actions .hmp-login-btn {
    max-width: 88px;
    font-size: 11px !important;
  }

  .hmp-actions .hmp-btn.danger {
    max-width: 68px;
    font-size: 11px !important;
  }

  .hmp-menu-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
}


/* HMP v1.7 Clean Appointment Tabs + Messenger Chat + Doctor ID Cards */
.hmp-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.hmp-tab-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid #bcd8ff;background:#fff;color:#005bea;border-radius:999px;padding:11px 16px;font-weight:900;cursor:pointer;box-shadow:0 8px 22px rgba(0,91,234,.08)}.hmp-tab-btn.active{background:linear-gradient(135deg,#005bea,#00a6fb);color:#fff;border-color:transparent}.hmp-tab-panel{display:none}.hmp-tab-panel.active{display:block}.hmp-appointment-list{display:grid;gap:12px}.hmp-history-item{display:grid;grid-template-columns:80px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e1edff;border-radius:18px;padding:14px;box-shadow:0 12px 32px rgba(0,91,234,.08)}.hmp-history-serial{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#e6f1ff,#f7fbff);border:1px solid #cfe3ff;color:#005bea;font-size:24px;font-weight:900}.hmp-history-info b{color:#082052}.hmp-history-info span{display:block;color:#64748b;font-size:13px;margin-top:3px}.hmp-msg-launch{position:relative}
.hmp-messenger-modal{position:fixed;inset:0;background:rgba(8,32,82,.45);z-index:999999;display:none;align-items:flex-end;justify-content:flex-end;padding:18px}.hmp-messenger-modal.open{display:flex}.hmp-messenger-box{width:min(390px,100%);height:min(620px,86vh);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.28);display:flex;flex-direction:column;border:1px solid #dbeafe}.hmp-messenger-head{background:linear-gradient(135deg,#005bea,#00a6fb);color:#fff;padding:16px;display:flex;justify-content:space-between;gap:12px;align-items:center}.hmp-messenger-head b{font-size:17px}.hmp-messenger-close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:22px;cursor:pointer}.hmp-messenger-body{flex:1;padding:14px;overflow:auto;background:#f7fbff}.hmp-msg-row{display:flex;margin:8px 0}.hmp-msg-row.patient{justify-content:flex-start}.hmp-msg-row.doctor{justify-content:flex-end}.hmp-msg-bubble{max-width:78%;padding:10px 12px;border-radius:18px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;line-height:1.35}.hmp-msg-row.doctor .hmp-msg-bubble{background:#005bea;color:#fff;border-color:#005bea}.hmp-seen-text{text-align:right;color:#64748b;font-size:12px;margin-top:4px}.hmp-messenger-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid #e1edff;background:#fff}.hmp-messenger-form textarea{min-height:46px!important;max-height:90px;border:1px solid #cfe3ff;border-radius:16px;padding:12px;resize:none;font-family:inherit}.hmp-messenger-form button{width:48px;height:48px;border:0;border-radius:16px;background:linear-gradient(135deg,#005bea,#00a6fb);color:#fff;font-size:19px;cursor:pointer}
.hmp-doctor-id-card{position:relative;overflow:hidden;border-radius:26px!important;padding:0!important;background:#fff!important;border:1px solid #dbeafe!important;box-shadow:0 22px 60px rgba(0,91,234,.13)!important}.hmp-doctor-id-top{height:92px;background:radial-gradient(circle at top right,rgba(255,255,255,.24),transparent 35%),linear-gradient(135deg,#005bea,#00a6fb);position:relative}.hmp-doctor-id-avatar{width:108px;height:108px;border-radius:28px;background:linear-gradient(180deg,#fff,#eef7ff);border:6px solid #fff;display:grid;place-items:center;font-size:56px;position:absolute;left:24px;top:38px;box-shadow:0 18px 35px rgba(0,91,234,.18)}.hmp-doctor-id-body{padding:66px 22px 22px}.hmp-doctor-id-body h3{font-size:24px!important;margin-bottom:4px!important;color:#082052!important}.hmp-doctor-specialty{display:inline-flex;background:#e6f1ff;color:#005bea;border:1px solid #bcd8ff;border-radius:999px;padding:6px 10px;font-weight:900;font-size:13px;margin:6px 0 12px}.hmp-doctor-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.hmp-doctor-meta div{background:#f8fbff;border:1px solid #e1edff;border-radius:14px;padding:10px}.hmp-doctor-meta span{display:block;font-size:11px;color:#64748b;font-weight:900;text-transform:uppercase}.hmp-doctor-meta b{display:block;color:#082052;margin-top:3px}.hmp-doctor-id-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
@media(max-width:700px){.hmp-history-item{grid-template-columns:58px 1fr}.hmp-history-item .hmp-action-row{grid-column:1/-1}.hmp-history-serial{width:52px;height:52px;border-radius:16px;font-size:20px}.hmp-messenger-modal{padding:0;align-items:flex-end}.hmp-messenger-box{width:100%;height:82vh;border-radius:24px 24px 0 0}.hmp-doctor-meta{grid-template-columns:1fr}.hmp-doctor-id-actions{grid-template-columns:1fr}}


/* HMP v1.8 Persistent Messenger + Ding */
.hmp-messenger-modal.keep-open-after-send{display:flex}
.hmp-messenger-box{position:relative}
.hmp-messenger-close{
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  font-weight:900!important;
  transition:.2s ease;
}
.hmp-messenger-close:hover{transform:rotate(90deg);background:rgba(255,255,255,.28)!important}
.hmp-msg-new-indicator{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#fff3c4;
  color:#8a5a00;
  border:1px solid #fcd34d;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  margin-top:6px;
}
.hmp-messenger-form.sending button{opacity:.75;pointer-events:none}


/* HMP v1.9 Premium 3D Doctor Profile Cards */
.hmp-doctor-3d-card{position:relative;overflow:hidden;border-radius:30px!important;padding:0!important;background:radial-gradient(circle at top right,rgba(0,166,251,.15),transparent 35%),linear-gradient(180deg,#fff,#f7fbff)!important;border:1px solid #d9e9ff!important;box-shadow:0 28px 80px rgba(0,91,234,.14),inset 0 1px 0 rgba(255,255,255,.9)!important;transform-style:preserve-3d}
.hmp-doctor-3d-card:before{content:"";position:absolute;inset:0 0 auto 0;height:118px;background:radial-gradient(circle at 84% 10%,rgba(255,255,255,.4),transparent 22%),linear-gradient(135deg,#005bea,#00a6fb);z-index:0}
.hmp-doctor-3d-card:after{content:"✚";position:absolute;top:22px;right:24px;color:rgba(255,255,255,.35);font-size:44px;font-weight:900;z-index:1}
.hmp-doctor-3d-inner{position:relative;z-index:2;padding:32px 24px 24px;text-align:center}
.hmp-doctor-photo-wrap{width:142px;height:142px;margin:28px auto 16px;border-radius:36px;padding:7px;background:linear-gradient(135deg,#fff,#dcecff);box-shadow:0 22px 40px rgba(0,91,234,.20),inset 0 1px 0 rgba(255,255,255,.95);transform:translateZ(30px)}
.hmp-doctor-photo{width:100%;height:100%;border-radius:30px;background:radial-gradient(circle at top,#fff,#eaf4ff);display:grid;place-items:center;font-size:76px;overflow:hidden;border:1px solid #d9e9ff}
.hmp-doctor-photo img{width:100%;height:100%;object-fit:cover;display:block}
.hmp-doctor-name{font-size:26px!important;line-height:1.1!important;color:#082052!important;margin:8px 0 6px!important;letter-spacing:-.5px}
.hmp-doctor-degree{display:block;color:#526987;font-weight:800;font-size:14px;margin-bottom:8px}
.hmp-doctor-specialist{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#e6f1ff,#f7fbff);color:#005bea;border:1px solid #bcd8ff;border-radius:999px;padding:8px 13px;font-weight:900;font-size:13px;margin-bottom:14px}
.hmp-doctor-contact{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0 14px;text-align:left}
.hmp-doctor-contact-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e1edff;border-radius:16px;padding:11px 12px;box-shadow:0 8px 22px rgba(0,91,234,.06)}
.hmp-doctor-contact-row .i{width:34px;height:34px;min-width:34px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#005bea,#00a6fb);color:#fff}
.hmp-doctor-contact-row span{display:block;font-size:11px;color:#64748b;font-weight:900;text-transform:uppercase;line-height:1}
.hmp-doctor-contact-row b{display:block;color:#082052;font-size:14px;margin-top:3px}
.hmp-doctor-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}
.hmp-doctor-mini{background:#f8fbff;border:1px solid #e1edff;border-radius:16px;padding:10px 8px}
.hmp-doctor-mini span{display:block;color:#64748b;font-size:10px;font-weight:900;text-transform:uppercase}
.hmp-doctor-mini b{display:block;color:#082052;font-size:13px;margin-top:4px}
.hmp-doctor-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.hmp-doctor-card-actions .hmp-mini-btn,.hmp-doctor-card-actions .hmp-btn{width:100%;justify-content:center}
.hmp-doctor-profile-hero{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:390px 1fr;gap:24px;align-items:start}
.hmp-doctor-profile-details{background:rgba(255,255,255,.92);border:1px solid #d9e9ff;border-radius:30px;padding:30px;box-shadow:0 28px 80px rgba(0,91,234,.12)}
.hmp-doctor-profile-details h1{font-size:42px!important;color:#082052;margin:0 0 8px!important}
.hmp-doctor-profile-details p{color:#526987;line-height:1.7}
.hmp-doctor-profile-highlights{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:22px 0}
.hmp-profile-highlight{background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #e1edff;border-radius:18px;padding:16px}
.hmp-profile-highlight span{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase}
.hmp-profile-highlight b{display:block;color:#082052;font-size:17px;margin-top:5px}
@media(max-width:900px){.hmp-doctor-profile-hero{grid-template-columns:1fr}.hmp-doctor-profile-details h1{font-size:34px!important}}
@media(max-width:600px){.hmp-doctor-photo-wrap{width:126px;height:126px;margin-top:20px}.hmp-doctor-photo{font-size:64px}.hmp-doctor-name{font-size:23px!important}.hmp-doctor-mini-grid,.hmp-doctor-profile-highlights{grid-template-columns:1fr}.hmp-doctor-card-actions{grid-template-columns:1fr}}


/* HMP v2.0 Final Doctor Profile Layout */
.hmp-doctor-profile-single{
  max-width:760px;
  margin:0 auto;
}
.hmp-doctor-profile-single .hmp-doctor-3d-card{
  max-width:760px;
  margin:0 auto;
}
.hmp-doctor-profile-single .hmp-doctor-3d-card:before{
  height:150px;
}
.hmp-doctor-profile-single .hmp-doctor-3d-inner{
  padding:42px 36px 34px;
}
.hmp-doctor-profile-single .hmp-doctor-photo-wrap{
  width:178px;
  height:178px;
  border-radius:44px;
  margin:42px auto 20px;
}
.hmp-doctor-profile-single .hmp-doctor-photo{
  border-radius:36px;
  font-size:90px;
}
.hmp-doctor-profile-single .hmp-doctor-name{
  font-size:36px!important;
  margin-top:12px!important;
}
.hmp-doctor-profile-single .hmp-doctor-degree{
  font-size:17px;
}
.hmp-doctor-profile-single .hmp-doctor-specialist{
  font-size:15px;
  padding:10px 16px;
}
.hmp-doctor-profile-single .hmp-doctor-contact{
  max-width:560px;
  margin:18px auto;
}
.hmp-doctor-profile-single .hmp-doctor-mini-grid{
  grid-template-columns:repeat(3,1fr);
  max-width:620px;
  margin:18px auto;
}
.hmp-doctor-about-box{
  max-width:620px;
  margin:18px auto 0;
  text-align:left;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
  border:1px solid #e1edff;
  border-radius:20px;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,91,234,.06);
}
.hmp-doctor-about-box span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:8px;
}
.hmp-doctor-about-box p{
  color:#24405f;
  line-height:1.75;
  margin:0;
}
.hmp-doctor-profile-single .hmp-doctor-card-actions{
  max-width:360px;
  margin:22px auto 0;
  grid-template-columns:1fr;
}
.hmp-doctor-profile-single .hmp-doctor-card-actions .hmp-mini-btn{
  font-size:16px!important;
  min-height:52px!important;
}
.hmp-doctors-page-card-note{
  text-align:center;
  color:#64748b;
  max-width:760px;
  margin:0 auto 25px;
  font-size:17px;
}
@media(max-width:700px){
  .hmp-doctor-profile-single .hmp-doctor-3d-inner{
    padding:32px 20px 24px;
  }
  .hmp-doctor-profile-single .hmp-doctor-photo-wrap{
    width:145px;
    height:145px;
    margin-top:32px;
  }
  .hmp-doctor-profile-single .hmp-doctor-photo{
    font-size:74px;
  }
  .hmp-doctor-profile-single .hmp-doctor-name{
    font-size:28px!important;
  }
  .hmp-doctor-profile-single .hmp-doctor-mini-grid{
    grid-template-columns:1fr;
  }
}


/* HMP v2.1 Queue Logic Fix */
.hmp-mini-btn.disabled,
.hmp-mini-btn[aria-disabled="true"]{
  opacity:.55!important;
  pointer-events:none!important;
  background:#94a3b8!important;
  color:#fff!important;
  box-shadow:none!important;
}
.hmp-queue-complete{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-weight:900;
  border:1px solid #bbf7d0;
}


/* HMP v2.2 Queue Display Fix */
.hmp-current-complete{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:12px 14px;
  border-radius:18px;
  background:linear-gradient(135deg,#dcfce7,#f0fdf4);
  color:#166534;
  border:1px solid #bbf7d0;
  font-weight:900;
  font-size:18px;
}
.hmp-current-number{
  font-size:42px;
  font-weight:900;
  color:#005bea;
  line-height:1;
}
.hmp-current-help{
  color:#64748b;
  font-size:13px;
  margin-top:10px;
  line-height:1.45;
}


/* HMP v2.3 Doctor Card Width / Cut Fix */
.hmp-page .hmp-grid{
  width:100%;
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
  display:grid!important;
  grid-template-columns:repeat(auto-fit, minmax(360px, 1fr))!important;
  gap:28px!important;
  align-items:stretch;
  overflow:visible!important;
}

.hmp-section .hmp-grid{
  grid-template-columns:repeat(auto-fit, minmax(330px, 1fr))!important;
  gap:26px!important;
  overflow:visible!important;
}

.hmp-doctor-3d-card{
  width:100%!important;
  min-width:0!important;
  max-width:460px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow:visible!important;
}

.hmp-doctor-3d-card:before{
  border-radius:30px 30px 0 0;
}

.hmp-doctor-3d-inner{
  overflow:visible!important;
}

.hmp-doctor-mini-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr))!important;
  width:100%;
}

.hmp-doctor-mini{
  min-width:0!important;
  overflow:hidden!important;
}

.hmp-doctor-mini b{
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
  line-height:1.25!important;
}

.hmp-doctor-card-actions{
  width:100%!important;
  grid-template-columns:1fr 1fr!important;
}

.hmp-doctor-card-actions .hmp-mini-btn{
  min-width:0!important;
  white-space:normal!important;
  text-align:center!important;
  line-height:1.15!important;
  padding-left:10px!important;
  padding-right:10px!important;
}

.hmp-doctor-contact-row{
  min-width:0!important;
}

.hmp-doctor-contact-row b{
  overflow-wrap:anywhere!important;
}

@media(max-width:900px){
  .hmp-page .hmp-grid,
  .hmp-section .hmp-grid{
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))!important;
  }
  .hmp-doctor-3d-card{
    max-width:430px!important;
  }
}

@media(max-width:520px){
  .hmp-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .hmp-page .hmp-grid,
  .hmp-section .hmp-grid{
    grid-template-columns:1fr!important;
    gap:22px!important;
  }
  .hmp-doctor-3d-card{
    max-width:100%!important;
  }
  .hmp-doctor-3d-inner{
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .hmp-doctor-mini-grid{
    grid-template-columns:1fr!important;
  }
  .hmp-doctor-card-actions{
    grid-template-columns:1fr!important;
  }
}


/* HMP v2.4 Home page doctor cards: same 3D card, unlimited, 4 desktop / 2 mobile */
.hmp-home-doctors-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:28px!important;
  align-items:stretch!important;
}
.hmp-home-doctors-grid > .hmp-card,
.hmp-home-doctors-grid > .hmp-doctor-3d-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.hmp-home-doctors-grid .hmp-doctor-3d-card{
  min-height:100%!important;
}
.hmp-home-doctors-grid .hmp-doctor-3d-inner{
  height:100%!important;
}
@media (max-width: 1199px){
  .hmp-home-doctors-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width: 767px){
  .hmp-home-doctors-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-3d-card{
    border-radius:24px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-3d-inner{
    padding:16px 14px 18px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-photo-wrap{
    margin-top:-6px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-photo{
    width:104px!important;
    height:104px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-name{
    font-size:18px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-degree,
  .hmp-home-doctors-grid .hmp-doctor-specialist{
    font-size:13px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-contact-row{
    padding:10px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-contact-row > div > b{
    font-size:12px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-contact-row > div > span,
  .hmp-home-doctors-grid .hmp-doctor-mini span{
    font-size:10px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-mini{
    padding:10px 8px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-mini b{
    font-size:12px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-card-actions{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .hmp-home-doctors-grid .hmp-mini-btn{
    width:100%!important;
    font-size:14px!important;
    padding:12px 10px!important;
  }
}
@media (max-width: 420px){
  .hmp-home-doctors-grid .hmp-doctor-photo{
    width:92px!important;
    height:92px!important;
  }
  .hmp-home-doctors-grid .hmp-doctor-name{font-size:17px!important;}
}


/* HMP v2.5 Appointment page doctor preview + auto admin schedule date */
.hmp-appointment-shell{
  max-width:1120px;
  margin:0 auto;
}
.hmp-appointment-smart{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:24px;
  align-items:start;
}
.hmp-appointment-doctor-preview .hmp-doctor-3d-card{
  max-width:360px!important;
}
.hmp-appointment-doctor-preview .hmp-doctor-card-actions{
  display:none!important;
}
.hmp-appointment-form-card{
  background:rgba(255,255,255,.94);
  border:1px solid #d9e9ff;
  border-radius:28px;
  padding:26px;
  box-shadow:0 24px 70px rgba(0,91,234,.12);
}
.hmp-appointment-form-card h2{
  color:#082052;
  font-size:28px;
  margin-bottom:14px;
}
.hmp-fixed-schedule-box{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  background:linear-gradient(135deg,#ecfdf3,#f7fff9);
  border:1px solid #bbf7d0;
  border-radius:18px;
  padding:14px;
  margin:8px 0 10px;
}
.hmp-fixed-schedule-box div{
  background:#fff;
  border:1px solid #d9fbe8;
  border-radius:14px;
  padding:12px;
}
.hmp-fixed-schedule-box span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.hmp-fixed-schedule-box b{
  display:block;
  color:#082052;
  font-size:15px;
  margin-top:4px;
}
.hmp-appointment-note{
  grid-column:1/-1;
  color:#166534;
  font-weight:800;
  font-size:13px;
}
@media(max-width:900px){
  .hmp-appointment-smart{
    grid-template-columns:1fr;
  }
  .hmp-appointment-doctor-preview .hmp-doctor-3d-card{
    max-width:440px!important;
  }
}
@media(max-width:600px){
  .hmp-appointment-form-card{
    padding:18px;
  }
  .hmp-fixed-schedule-box{
    grid-template-columns:1fr;
  }
}


/* HMP v2.6 Appointment doctor preview clean */
.hmp-appointment-doctor-preview .hmp-doctor-mini-grid{
  display:none!important;
}
.hmp-appointment-doctor-preview .hmp-doctor-about-box{
  margin-top:18px!important;
}
.hmp-appointment-doctor-preview .hmp-doctor-3d-card{
  padding-bottom:6px!important;
}


/* HMP v2.7 appointment support buttons + map */
.hmp-appointment-extra-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:20px}
@media(min-width:992px){.hmp-appointment-extra-grid{grid-template-columns:1.05fr 1fr}}
.hmp-contact-3d-card,.hmp-map-3d-card{background:linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%);border:1px solid #dce7fb;border-radius:24px;padding:20px;box-shadow:0 18px 40px rgba(7,93,232,.10)}
.hmp-contact-3d-card h3,.hmp-map-3d-card h3{margin:0 0 14px;color:#082b67;font-size:24px}
.hmp-contact-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:640px){.hmp-contact-action-row{grid-template-columns:1fr}}
.hmp-contact-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:10px 12px;border-radius:16px;font-weight:700;text-decoration:none!important;box-shadow:0 10px 24px rgba(8,33,84,.10);border:1px solid transparent}
.hmp-contact-action.whatsapp{background:linear-gradient(135deg,#19c463,#0e9f4b);color:#fff}
.hmp-contact-action.facebook{background:linear-gradient(135deg,#1b74e4,#0f59c9);color:#fff}
.hmp-contact-action.call{background:linear-gradient(135deg,#ffffff,#eef5ff);color:#0a57dd;border-color:#bfd4ff}
.hmp-contact-help{margin:14px 0 0;color:#5b7093;line-height:1.65}
.hmp-map-frame{border-radius:18px;overflow:hidden;border:1px solid #d4e3ff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.hmp-map-frame iframe{display:block;width:100%;height:260px;border:0;background:#eef4ff}
.hmp-map-placeholder{display:flex;align-items:center;justify-content:center;min-height:220px;padding:18px;text-align:center;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#eef5ff);border:1px dashed #c7dafc;color:#456082;font-weight:600}
.hmp-map-3d-card p{margin:14px 0 0}


/* HMP v2.9 Contact button alignment + direction button */
.hmp-v29-extra-grid{
  grid-template-columns:1fr 1fr!important;
  align-items:stretch!important;
}

.hmp-v29-contact-card,
.hmp-v29-map-card{
  min-width:0!important;
  overflow:hidden!important;
}

.hmp-v29-contact-card{
  min-height:auto!important;
}

.hmp-v29-contact-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
}

.hmp-v29-contact-actions .hmp-contact-action{
  min-width:0!important;
  width:100%!important;
  min-height:76px!important;
  padding:10px 6px!important;
  border-radius:18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
  line-height:1.1!important;
  font-size:13px!important;
  white-space:normal!important;
}

.hmp-v29-contact-actions .hmp-contact-action span{
  font-size:24px!important;
  line-height:1!important;
}

.hmp-v29-contact-actions .hmp-contact-action b{
  display:block!important;
  font-size:13px!important;
  line-height:1.1!important;
}

.hmp-contact-help{
  display:none!important;
}

.hmp-v29-map-card .hmp-map-frame iframe{
  height:230px!important;
}

.hmp-v29-map-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin-top:14px!important;
}

.hmp-v29-map-actions .hmp-mini-btn{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.2!important;
}

@media(max-width:900px){
  .hmp-v29-extra-grid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:520px){
  .hmp-v29-contact-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .hmp-v29-contact-actions .hmp-contact-action{
    min-height:66px!important;
    padding:8px 4px!important;
    font-size:11px!important;
    border-radius:14px!important;
  }
  .hmp-v29-contact-actions .hmp-contact-action span{
    font-size:20px!important;
  }
  .hmp-v29-contact-actions .hmp-contact-action b{
    font-size:11px!important;
  }
  .hmp-v29-map-actions{
    grid-template-columns:1fr!important;
  }
}


/* HMP v3.0 Final Quick Contact + API-free direction */
.hmp-v30-extra-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
  align-items:stretch!important;
}

.hmp-v30-contact-card,
.hmp-v30-map-card{
  min-width:0!important;
  overflow:hidden!important;
  border-radius:24px!important;
}

.hmp-v30-contact-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
}

.hmp-v30-contact-btn{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:58px!important;
  padding:10px 14px!important;
  border-radius:18px!important;
  text-decoration:none!important;
  font-weight:900!important;
  color:#082052!important;
  background:linear-gradient(135deg,#ffffff,#f4f9ff)!important;
  border:1px solid #d4e4ff!important;
  box-shadow:0 12px 28px rgba(7,93,232,.10)!important;
  box-sizing:border-box!important;
}

.hmp-v30-contact-btn.whatsapp{
  border-color:#b9f5cd!important;
}
.hmp-v30-contact-btn.facebook{
  border-color:#bdd8ff!important;
}
.hmp-v30-contact-btn.call{
  border-color:#bdeaff!important;
}

.hmp-v30-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04),0 8px 18px rgba(7,93,232,.10)!important;
}

.hmp-v30-icon svg{
  width:26px!important;
  height:26px!important;
  display:block!important;
}

.hmp-v30-contact-btn span:last-child{
  display:block!important;
  font-size:15px!important;
  line-height:1.1!important;
  white-space:normal!important;
}

.hmp-contact-help,
.hmp-v29-contact-actions{
  display:none!important;
}

.hmp-v30-map-card .hmp-map-frame iframe{
  height:230px!important;
}

.hmp-v30-map-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin-top:14px!important;
}

.hmp-v30-map-actions .hmp-mini-btn{
  width:100%!important;
  min-width:0!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  padding-left:10px!important;
  padding-right:10px!important;
}

@media(max-width:900px){
  .hmp-v30-extra-grid{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:520px){
  .hmp-v30-contact-btn{
    min-height:54px!important;
    padding:9px 12px!important;
    border-radius:16px!important;
  }
  .hmp-v30-icon{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
  }
  .hmp-v30-icon svg{
    width:23px!important;
    height:23px!important;
  }
  .hmp-v30-map-actions{
    grid-template-columns:1fr!important;
  }
}


/* HMP v3.1 email notification support */
.hmp-email-note{
  background:#ecfdf3;
  border:1px solid #bbf7d0;
  color:#166534;
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
}


/* HMP v3.2 Patient Dashboard contact/map block */
.hmp-patient-support-map{
  display:grid;
  gap:18px;
  margin:18px 0;
}

.hmp-patient-contact-widget,
.hmp-patient-location-widget{
  background:linear-gradient(180deg,#ffffff,#f7fbff)!important;
  border:1px solid #d9e9ff!important;
  box-shadow:0 18px 50px rgba(0,91,234,.10)!important;
}

.hmp-patient-contact-buttons{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}

.hmp-patient-contact-btn{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:10px 12px;
  border-radius:17px;
  text-decoration:none!important;
  font-weight:900;
  color:#082052!important;
  background:#fff;
  border:1px solid #d9e9ff;
  box-shadow:0 10px 25px rgba(0,91,234,.08);
  box-sizing:border-box;
}

.hmp-patient-contact-btn span{
  width:36px;
  height:36px;
  min-width:36px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04),0 8px 18px rgba(7,93,232,.08);
}

.hmp-patient-contact-btn span svg{
  width:25px;
  height:25px;
  display:block;
}

.hmp-patient-contact-btn.whatsapp{border-color:#bbf7d0}
.hmp-patient-contact-btn.facebook{border-color:#bdd8ff}
.hmp-patient-contact-btn.call{border-color:#bdeaff}

.hmp-patient-map-frame{
  border-radius:18px;
  overflow:hidden;
  border:1px solid #d4e3ff;
  margin-top:12px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);
}

.hmp-patient-map-frame iframe{
  display:block;
  width:100%;
  height:220px;
  border:0;
  background:#eef4ff;
}

.hmp-patient-map-placeholder{
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-top:12px;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff,#eef5ff);
  border:1px dashed #c7dafc;
  color:#456082;
  font-weight:700;
}

.hmp-patient-map-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.hmp-patient-map-actions .hmp-mini-btn{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  padding-left:10px!important;
  padding-right:10px!important;
}

@media(max-width:1000px){
  .hmp-patient-map-actions{
    grid-template-columns:1fr;
  }
}


/* HMP v3.3 force patient dashboard contact/map visible */
.hmp-v33-patient-support{
  display:grid!important;
  gap:18px!important;
  margin:18px 0!important;
}

.hmp-v33-contact-widget,
.hmp-v33-map-widget{
  background:linear-gradient(180deg,#ffffff,#f7fbff)!important;
  border:1px solid #d9e9ff!important;
  box-shadow:0 18px 50px rgba(0,91,234,.10)!important;
}

.hmp-v33-contact-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin-top:12px!important;
}

.hmp-v33-contact-btn{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-height:54px!important;
  padding:10px 12px!important;
  border-radius:17px!important;
  text-decoration:none!important;
  font-weight:900!important;
  color:#082052!important;
  background:#fff!important;
  border:1px solid #d9e9ff!important;
  box-shadow:0 10px 25px rgba(0,91,234,.08)!important;
  box-sizing:border-box!important;
}

.hmp-v33-contact-btn span{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04),0 8px 18px rgba(7,93,232,.08)!important;
}

.hmp-v33-contact-btn span svg{
  width:25px!important;
  height:25px!important;
  display:block!important;
}

.hmp-v33-contact-btn.whatsapp{border-color:#bbf7d0!important}
.hmp-v33-contact-btn.facebook{border-color:#bdd8ff!important}
.hmp-v33-contact-btn.call{border-color:#bdeaff!important}

.hmp-v33-empty{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:#f8fbff;
  border:1px dashed #c7dafc;
  color:#456082;
  font-weight:700;
}

.hmp-v33-map-frame{
  border-radius:18px!important;
  overflow:hidden!important;
  border:1px solid #d4e3ff!important;
  margin-top:12px!important;
}

.hmp-v33-map-frame iframe{
  display:block!important;
  width:100%!important;
  height:220px!important;
  border:0!important;
  background:#eef4ff!important;
}

.hmp-v33-map-placeholder{
  min-height:150px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  margin-top:12px!important;
  padding:16px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f8fbff,#eef5ff)!important;
  border:1px dashed #c7dafc!important;
  color:#456082!important;
  font-weight:700!important;
}

.hmp-v33-map-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin-top:12px!important;
}

.hmp-v33-map-actions .hmp-mini-btn{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  padding-left:10px!important;
  padding-right:10px!important;
}

@media(max-width:1000px){
  .hmp-v33-map-actions{
    grid-template-columns:1fr!important;
  }
}


/* HMP v3.4 Department vs Services different 3D style + animated hospital background */

/* Departments: clean glass/medical tiles */
.hmp-departments-3d{
  position:relative;
  padding-top:50px!important;
  padding-bottom:54px!important;
}

.hmp-departments-3d .hmp-card{
  position:relative;
  overflow:hidden;
  min-height:190px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,249,255,.92))!important;
  border:1px solid rgba(189,216,255,.9)!important;
  border-radius:28px!important;
  box-shadow:
    0 22px 55px rgba(0,91,234,.10),
    inset 0 1px 0 rgba(255,255,255,.9)!important;
  transform:translateZ(0);
  transition:.25s ease;
}

.hmp-departments-3d .hmp-card:before{
  content:"";
  position:absolute;
  top:-38px;
  right:-38px;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(0,166,251,.18), transparent 65%);
}

.hmp-departments-3d .hmp-card:after{
  content:"";
  position:absolute;
  left:22px;
  bottom:18px;
  width:54px;
  height:6px;
  border-radius:999px;
  background:linear-gradient(90deg,#005bea,#00a6fb);
  opacity:.55;
}

.hmp-departments-3d .hmp-card:hover{
  transform:translateY(-8px);
  box-shadow:
    0 30px 70px rgba(0,91,234,.16),
    inset 0 1px 0 rgba(255,255,255,.95)!important;
}

.hmp-departments-3d .hmp-icon,
.hmp-departments-3d .hmp-card > div:first-child{
  width:76px!important;
  height:76px!important;
  border-radius:24px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#eef7ff,#ffffff)!important;
  border:1px solid #d9e9ff!important;
  box-shadow:0 14px 30px rgba(0,91,234,.09)!important;
  font-size:34px!important;
  margin-bottom:18px!important;
}

.hmp-departments-3d .hmp-card h3{
  font-size:23px!important;
  color:#082052!important;
  margin-bottom:8px!important;
}

.hmp-departments-3d .hmp-card p{
  color:#526987!important;
  font-size:16px!important;
}

/* Services: different section background + animated hospital pattern */
.hmp-services-animated{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  margin-top:50px!important;
  padding:58px 32px!important;
  border-radius:34px!important;
  background:
    radial-gradient(circle at 18% 18%, rgba(0,166,251,.18), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(18,183,106,.16), transparent 28%),
    linear-gradient(135deg,#eaf6ff 0%,#f4fbff 46%,#eafdf6 100%)!important;
  border:1px solid #cfe3ff!important;
  box-shadow:0 26px 80px rgba(0,91,234,.10)!important;
}

.hmp-services-animated:before{
  content:"";
  position:absolute;
  inset:-40px;
  z-index:-2;
  background:
    linear-gradient(90deg, rgba(0,91,234,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,91,234,.06) 1px, transparent 1px);
  background-size:58px 58px;
  animation:hmpHospitalGridMove 18s linear infinite;
}

.hmp-services-animated:after{
  content:"✚  🏥  ⚕  ✚  🏥  ⚕  ✚  🏥";
  position:absolute;
  top:26px;
  left:-10%;
  z-index:-1;
  width:120%;
  white-space:nowrap;
  color:rgba(0,91,234,.10);
  font-size:54px;
  font-weight:900;
  letter-spacing:42px;
  animation:hmpHospitalIconFloat 16s ease-in-out infinite alternate;
}

@keyframes hmpHospitalGridMove{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(58px,58px,0)}
}

@keyframes hmpHospitalIconFloat{
  from{transform:translateX(-20px) translateY(0)}
  to{transform:translateX(40px) translateY(16px)}
}

.hmp-services-animated .hmp-section-head{
  position:relative;
  z-index:2;
}

.hmp-services-animated .hmp-section-head h2{
  color:#062154!important;
}

.hmp-services-animated .hmp-grid{
  position:relative;
  z-index:2;
}

.hmp-services-animated .hmp-card{
  position:relative;
  overflow:hidden;
  min-height:190px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.96))!important;
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:30px!important;
  box-shadow:
    0 24px 60px rgba(0,91,234,.12),
    inset 0 1px 0 rgba(255,255,255,1)!important;
  transition:.25s ease;
}

.hmp-services-animated .hmp-card:hover{
  transform:translateY(-8px) scale(1.015);
  box-shadow:
    0 34px 78px rgba(0,91,234,.18),
    inset 0 1px 0 rgba(255,255,255,1)!important;
}

.hmp-services-animated .hmp-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:8px;
  height:100%;
  background:linear-gradient(180deg,#005bea,#00a6fb,#12b76a);
}

.hmp-services-animated .hmp-card:after{
  content:"";
  position:absolute;
  right:-45px;
  bottom:-45px;
  width:145px;
  height:145px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(18,183,106,.16), transparent 68%);
}

.hmp-services-animated .hmp-icon,
.hmp-services-animated .hmp-card > div:first-child{
  width:78px!important;
  height:78px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:
    radial-gradient(circle at 30% 25%,#ffffff,transparent 38%),
    linear-gradient(135deg,#005bea,#00a6fb)!important;
  color:#fff!important;
  border:6px solid rgba(255,255,255,.75)!important;
  box-shadow:0 16px 35px rgba(0,91,234,.18)!important;
  font-size:34px!important;
  margin-bottom:18px!important;
}

.hmp-services-animated .hmp-card h3{
  font-size:23px!important;
  color:#062154!important;
  margin-bottom:8px!important;
}

.hmp-services-animated .hmp-card p{
  color:#456082!important;
  font-size:16px!important;
}

@media(max-width:760px){
  .hmp-services-animated{
    padding:38px 16px!important;
    border-radius:26px!important;
  }
  .hmp-services-animated:after{
    font-size:38px;
    letter-spacing:22px;
  }
}



/* HMP v3.5 Our Staff marquee section */
.hmp-our-staff{position:relative;overflow:hidden}
.hmp-staff-head-right{display:flex;gap:12px;align-items:center}
.hmp-staff-speed-badge{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:linear-gradient(135deg,#f5fbff,#ffffff);border:1px solid #d8e8ff;color:#0b377d;font-weight:800;box-shadow:0 10px 25px rgba(0,91,234,.08)}
.hmp-staff-marquee{position:relative;overflow:hidden;padding:12px 0 10px;mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);-webkit-mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent)}
.hmp-staff-track{display:flex;align-items:stretch;gap:24px;width:max-content;animation:hmpStaffScroll var(--hmp-staff-speed,28s) linear infinite;will-change:transform}
.hmp-staff-marquee:hover .hmp-staff-track{animation-play-state:paused}
@keyframes hmpStaffScroll{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.hmp-staff-card{position:relative;flex:0 0 290px;min-height:340px;padding:28px 24px 24px;border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(239,247,255,.94));border:1px solid rgba(201,223,255,.95);box-shadow:0 24px 58px rgba(0,91,234,.11), inset 0 1px 0 rgba(255,255,255,.92);overflow:hidden;transform-style:preserve-3d;transition:transform .28s ease, box-shadow .28s ease}
.hmp-staff-card:before{content:"";position:absolute;inset:0 0 auto 0;height:110px;background:linear-gradient(135deg,#005bea,#00a6fb);border-radius:30px 30px 0 0}
.hmp-staff-card:after{content:"✚";position:absolute;right:22px;top:18px;font-size:48px;line-height:1;color:rgba(255,255,255,.26);font-weight:900}
.hmp-staff-card:hover{transform:translateY(-8px) scale(1.035);box-shadow:0 35px 80px rgba(0,91,234,.18), inset 0 1px 0 rgba(255,255,255,.98)}
.hmp-staff-avatar-wrap{position:relative;z-index:2;display:flex;justify-content:center;margin:36px 0 16px}
.hmp-staff-avatar{width:118px;height:118px;border-radius:50%;object-fit:cover;display:block;background:#eef4fb;border:6px solid rgba(255,255,255,.72);box-shadow:0 16px 35px rgba(0,91,234,.12)}
.hmp-staff-avatar-fallback{display:grid;place-items:center;font-size:54px}
.hmp-staff-body{text-align:center;position:relative;z-index:2}
.hmp-staff-body h3{font-size:30px;line-height:1.15;margin:10px 0 8px;color:#092560}
.hmp-staff-designation{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border-radius:999px;background:linear-gradient(135deg,#eff7ff,#ffffff);border:1px solid #cfe0ff;color:#0a58ca;font-weight:800;margin:0 0 16px;box-shadow:0 8px 20px rgba(0,91,234,.07)}
.hmp-staff-mobile{display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:800;color:#0b2f73;background:#fff;border:1px solid #d9e8ff;border-radius:18px;padding:14px 12px;box-shadow:0 10px 25px rgba(0,91,234,.06)}
.hmp-staff-glow{position:absolute;left:-30px;bottom:-40px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle, rgba(0,166,251,.18), transparent 70%)}
@media (max-width: 767px){
  .hmp-staff-card{flex-basis:240px;min-height:310px;padding:24px 18px 20px}
  .hmp-staff-body h3{font-size:24px}
  .hmp-staff-avatar{width:102px;height:102px}
  .hmp-staff-track{gap:16px}
}


/* HMP v3.6.1 section entrance animations */
.hmp-animate-left,
.hmp-animate-right,
.hmp-animate-fast-left{
  opacity:0;
  will-change:transform, opacity;
}

.hmp-animate-left{transform:translateX(-90px);}
.hmp-animate-right{transform:translateX(90px);}
.hmp-animate-fast-left{transform:translateX(-140px);}

.hmp-animate-left.hmp-inview{animation:hmpSlideFromLeft .95s cubic-bezier(.16,1,.3,1) forwards;}
.hmp-animate-right.hmp-inview{animation:hmpSlideFromRight .95s cubic-bezier(.16,1,.3,1) forwards;}
.hmp-animate-fast-left.hmp-inview{animation:hmpSlideFromLeft .45s cubic-bezier(.16,1,.3,1) forwards;}

@keyframes hmpSlideFromLeft{
  from{opacity:0;transform:translateX(-90px)}
  to{opacity:1;transform:translateX(0)}
}
@keyframes hmpSlideFromRight{
  from{opacity:0;transform:translateX(90px)}
  to{opacity:1;transform:translateX(0)}
}

.hmp-our-staff .hmp-staff-head-right,
.hmp-our-staff .hmp-staff-speed-badge{
  display:none!important;
}

.hmp-page .hmp-section-head h1{
  color:#082052;
  font-size:42px;
  margin:0;
}

@media(max-width:700px){
  .hmp-animate-left,
  .hmp-animate-right,
  .hmp-animate-fast-left{transform:translateY(34px);}
  .hmp-animate-left.hmp-inview,
  .hmp-animate-right.hmp-inview,
  .hmp-animate-fast-left.hmp-inview{animation:hmpSlideMobile .55s ease forwards;}
  @keyframes hmpSlideMobile{
    from{opacity:0;transform:translateY(34px)}
    to{opacity:1;transform:translateY(0)}
  }
}


/* HMP v4.0 Management feature styles */
.hmp-v40-wp-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:16px;
  margin:20px 0;
}
.hmp-v40-wp-card{
  background:#fff;
  border:1px solid #d9e9ff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,91,234,.08);
}
.hmp-v40-wp-card span{
  display:block;
  color:#64748b;
  font-weight:700;
  margin-bottom:8px;
}
.hmp-v40-wp-card b{
  display:block;
  color:#075de8;
  font-size:28px;
}
.hmp-v40-report-filter{
  background:#fff;
  border:1px solid #d9e9ff;
  padding:16px;
  border-radius:14px;
  margin:18px 0;
}
.hmp-v40-doctor-panels{
  max-width:1180px;
  margin:24px auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
@media(max-width:900px){
  .hmp-v40-doctor-panels{grid-template-columns:1fr;padding:0 14px}
}


/* HMP v4.1 Patient Update Notice */
.hmp-v41-tabs{
  flex-wrap:wrap;
  gap:10px;
}

.hmp-update-notice-btn{
  background:linear-gradient(135deg,#fff7ed,#ffffff)!important;
  color:#9a3412!important;
  border-color:#fed7aa!important;
}

.hmp-update-notice-btn.active,
.hmp-update-notice-btn:hover{
  background:linear-gradient(135deg,#f97316,#fb923c)!important;
  color:#fff!important;
}

.hmp-v41-update-panel{
  max-width:980px;
}

.hmp-v41-update-list{
  display:grid;
  gap:16px;
}

.hmp-v41-update-card{
  display:grid;
  grid-template-columns:58px 1fr;
  gap:14px;
  align-items:start;
  padding:16px;
  border:1px solid #d9e9ff;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  box-shadow:0 12px 30px rgba(0,91,234,.08);
}

.hmp-v41-update-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#075de8,#00a6fb);
  color:#fff;
  font-size:26px;
  box-shadow:0 12px 25px rgba(0,91,234,.16);
}

.hmp-v41-update-body h3{
  margin:0 0 6px;
  color:#082052;
  font-size:20px;
}

.hmp-v41-update-body p{
  margin:0 0 8px;
  color:#34506f;
  font-weight:700;
}

.hmp-v41-update-body small{
  color:#64748b;
  font-weight:700;
}

.hmp-v41-empty-update{
  padding:18px;
  border-radius:18px;
  border:1px dashed #c7dafc;
  background:#f8fbff;
  color:#456082;
  font-weight:800;
}

@media(max-width:600px){
  .hmp-v41-update-card{
    grid-template-columns:1fr;
  }
}


/* HMP v4.2 Clean update/prescription/login */
.hmp-v42-status-card{max-width:980px;margin:22px auto}.hmp-v42-status-form{display:grid;grid-template-columns:1fr;gap:12px}.hmp-v42-help{margin:8px 0 0;color:#64748b;font-weight:700}.hmp-v42-rx-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 16px}.hmp-v42-rx-choice label{padding:14px;border-radius:16px;border:1px solid #d9e9ff;background:linear-gradient(135deg,#ffffff,#f8fbff);font-weight:900;color:#082052;cursor:pointer}.hmp-v42-rx-upload,.hmp-v42-rx-online{border:1px solid #d9e9ff;background:#f8fbff;padding:16px;border-radius:18px;margin-bottom:14px}.hmp-v42-new-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:10px;padding:4px 9px;border-radius:999px;background:linear-gradient(135deg,#ef4444,#f97316);color:#fff;font-size:12px;font-weight:900;animation:hmpNewPulse 1.1s infinite ease-in-out;vertical-align:middle}@keyframes hmpNewPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 rgba(239,68,68,0)}50%{transform:scale(1.08);box-shadow:0 0 18px rgba(239,68,68,.35)}}@media(max-width:700px){.hmp-v42-rx-choice{grid-template-columns:1fr}}


/* HMP v4.3 Prescription responsive layout fix */
.hmp-v42-doctor-panels{
  align-items:start!important;
}

.hmp-v42-doctor-panels .hmp-pro-card{
  min-width:0!important;
  overflow:hidden!important;
}

.hmp-v42-rx-form{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}

.hmp-v42-rx-choice{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  margin:12px 0 16px!important;
  width:100%!important;
}

.hmp-v42-rx-choice label{
  min-width:0!important;
  width:100%!important;
  min-height:62px!important;
  padding:12px 14px!important;
  border-radius:18px!important;
  border:1px solid #cfe0ff!important;
  background:linear-gradient(135deg,#ffffff,#f7fbff)!important;
  box-shadow:0 10px 24px rgba(0,91,234,.07)!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  cursor:pointer!important;
  font-size:15px!important;
  line-height:1.2!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  box-sizing:border-box!important;
}

.hmp-v42-rx-choice input[type="radio"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin:0!important;
  accent-color:#075de8!important;
}

.hmp-v42-rx-choice label:has(input[type="radio"]:checked){
  border-color:#075de8!important;
  background:linear-gradient(135deg,#eef6ff,#ffffff)!important;
  box-shadow:0 14px 30px rgba(0,91,234,.12)!important;
}

.hmp-v42-rx-upload,
.hmp-v42-rx-online{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid #d9e9ff!important;
  background:#f8fbff!important;
  padding:16px!important;
  border-radius:18px!important;
  margin-bottom:14px!important;
}

.hmp-v42-rx-upload input[type="file"],
.hmp-v42-rx-online input,
.hmp-v42-rx-online textarea,
.hmp-v42-rx-form input,
.hmp-v42-rx-form textarea{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

.hmp-v42-rx-online textarea{
  min-height:95px!important;
  resize:vertical!important;
}

.hmp-v42-rx-form button{
  width:100%!important;
  box-sizing:border-box!important;
}

.hmp-v42-rx-form .hmp-mini-btn{
  width:auto!important;
  max-width:100%!important;
}

@media(max-width:1100px){
  .hmp-v40-doctor-panels,
  .hmp-v42-doctor-panels{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:700px){
  .hmp-v42-rx-choice{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .hmp-v42-rx-choice label{
    min-height:54px!important;
    font-size:14px!important;
    padding:11px 12px!important;
  }

  .hmp-v42-rx-upload,
  .hmp-v42-rx-online{
    padding:13px!important;
    border-radius:16px!important;
  }
}

/* Older buggy card widths hard override */
.hmp-pro-card .hmp-v42-rx-choice > label{
  flex:initial!important;
  max-width:100%!important;
}


/* HMP v4.4 Prescription layout clean final */
.hmp-v42-doctor-panels,
.hmp-v40-doctor-panels{
  grid-template-columns:1fr 1fr!important;
  align-items:start!important;
}

.hmp-v42-doctor-panels .hmp-pro-card,
.hmp-v40-doctor-panels .hmp-pro-card{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

.hmp-v42-rx-form{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

.hmp-v42-rx-form *{
  box-sizing:border-box!important;
}

.hmp-v42-rx-choice{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  width:100%!important;
  margin:14px 0 16px!important;
  padding:0!important;
}

.hmp-v42-rx-choice label{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  height:auto!important;
  padding:12px 12px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  border-radius:16px!important;
  border:1px solid #cfe0ff!important;
  background:linear-gradient(135deg,#ffffff,#f8fbff)!important;
  box-shadow:0 8px 20px rgba(0,91,234,.06)!important;
  color:#082052!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.18!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  overflow:hidden!important;
}

.hmp-v42-rx-choice label input[type="radio"],
.hmp-v42-rx-choice input[type="radio"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
  margin:0!important;
  padding:0!important;
  accent-color:#075de8!important;
}

.hmp-v42-rx-choice label:has(input[type="radio"]:checked){
  border-color:#075de8!important;
  background:linear-gradient(135deg,#eef6ff,#ffffff)!important;
  box-shadow:0 12px 28px rgba(0,91,234,.14)!important;
}

.hmp-v42-rx-upload,
.hmp-v42-rx-online{
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 14px!important;
  padding:16px!important;
  border-radius:18px!important;
  border:1px solid #d9e9ff!important;
  background:linear-gradient(135deg,#f8fbff,#ffffff)!important;
  overflow:hidden!important;
  clear:both!important;
}

.hmp-v42-rx-upload label,
.hmp-v42-rx-online label{
  display:block!important;
  width:100%!important;
  margin:0 0 8px!important;
  color:#082052!important;
  font-weight:900!important;
  font-size:14px!important;
}

.hmp-v42-rx-upload input[type="file"],
.hmp-v42-rx-online input,
.hmp-v42-rx-online textarea,
.hmp-v42-rx-form input,
.hmp-v42-rx-form textarea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

.hmp-v42-rx-online textarea{
  min-height:88px!important;
  resize:vertical!important;
}

.hmp-v42-rx-form button{
  width:100%!important;
  max-width:100%!important;
  margin-top:8px!important;
}

.hmp-v42-rx-form .hmp-mini-btn{
  width:auto!important;
  display:inline-flex!important;
  margin-top:12px!important;
}

/* Kill any old accidental horizontal cards */
.hmp-v42-rx-form > .hmp-v42-rx-choice,
.hmp-v42-rx-form > .hmp-v42-rx-upload,
.hmp-v42-rx-form > .hmp-v42-rx-online{
  grid-column:1 / -1!important;
}

@media(max-width:1100px){
  .hmp-v42-doctor-panels,
  .hmp-v40-doctor-panels{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:560px){
  .hmp-v42-rx-choice{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .hmp-v42-rx-choice label{
    min-height:52px!important;
    font-size:13px!important;
    padding:11px 12px!important;
  }

  .hmp-v42-rx-upload,
  .hmp-v42-rx-online{
    padding:13px!important;
    border-radius:16px!important;
  }
}


/* HMP v4.5 Prescription card bigger + smart typography */
.hmp-v42-doctor-panels,
.hmp-v40-doctor-panels{
  grid-template-columns:minmax(420px, 1fr) minmax(480px, 1.15fr)!important;
  gap:28px!important;
  max-width:1280px!important;
}

.hmp-v42-doctor-panels .hmp-pro-card,
.hmp-v40-doctor-panels .hmp-pro-card{
  padding:28px!important;
  border-radius:28px!important;
}

.hmp-v42-doctor-panels .hmp-pro-card h2{
  font-size:30px!important;
  line-height:1.15!important;
  margin-bottom:20px!important;
}

.hmp-v42-rx-choice{
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  margin:16px 0 18px!important;
}

.hmp-v42-rx-choice label{
  min-height:70px!important;
  padding:14px 16px!important;
  font-size:15px!important;
  line-height:1.25!important;
  gap:12px!important;
  border-radius:18px!important;
  align-items:center!important;
}

.hmp-v42-rx-choice label input[type="radio"],
.hmp-v42-rx-choice input[type="radio"]{
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  flex:0 0 19px!important;
}

.hmp-v42-rx-choice label::first-line{
  font-weight:900!important;
}

.hmp-v42-rx-upload,
.hmp-v42-rx-online{
  padding:20px!important;
  border-radius:22px!important;
}

.hmp-v42-rx-upload label,
.hmp-v42-rx-online label{
  font-size:16px!important;
  margin-bottom:10px!important;
}

.hmp-v42-rx-upload input[type="file"]{
  min-height:52px!important;
  padding:11px!important;
  border-radius:14px!important;
  background:#fff!important;
  border:1px solid #d4e4ff!important;
  font-size:14px!important;
}

.hmp-v42-help{
  font-size:16px!important;
  line-height:1.45!important;
  margin-top:14px!important;
}

.hmp-v42-rx-form button{
  min-height:56px!important;
  font-size:16px!important;
  border-radius:18px!important;
}

.hmp-v42-rx-form .hmp-mini-btn{
  min-height:52px!important;
  padding:14px 22px!important;
  font-size:16px!important;
  border-radius:16px!important;
}

@media(max-width:1180px){
  .hmp-v42-doctor-panels,
  .hmp-v40-doctor-panels{
    grid-template-columns:1fr!important;
    max-width:760px!important;
  }
}

@media(max-width:620px){
  .hmp-v42-doctor-panels,
  .hmp-v40-doctor-panels{
    padding-left:12px!important;
    padding-right:12px!important;
  }

  .hmp-v42-doctor-panels .hmp-pro-card,
  .hmp-v40-doctor-panels .hmp-pro-card{
    padding:20px!important;
    border-radius:24px!important;
  }

  .hmp-v42-doctor-panels .hmp-pro-card h2{
    font-size:26px!important;
  }

  .hmp-v42-rx-choice{
    grid-template-columns:1fr!important;
  }

  .hmp-v42-rx-choice label{
    min-height:58px!important;
    font-size:15px!important;
  }

  .hmp-v42-rx-upload,
  .hmp-v42-rx-online{
    padding:16px!important;
  }
}


/* HMP v5.0 footer credit + separate login modal */
.hmp-v50-footer-credit{
  width:100%;
  text-align:center;
  padding:13px 12px;
  background:#061f4f;
  color:#dbeafe;
  font-size:14px;
  font-weight:700;
  border-top:1px solid rgba(255,255,255,.10);
}
.hmp-v50-footer-credit a{
  color:#ffffff;
  font-weight:900;
  text-decoration:none;
}
.hmp-v50-footer-credit a:hover{
  text-decoration:underline;
}

.hmp-v50-login-open[data-hmp-login-type="doctor"] .hmp-patient-login,
.hmp-v50-login-open[data-hmp-login-type="doctor"] [data-login-panel="patient"],
.hmp-v50-login-open[data-hmp-login-type="patient"] .hmp-doctor-login,
.hmp-v50-login-open[data-hmp-login-type="patient"] [data-login-panel="doctor"]{
  display:none!important;
}

.hmp-v50-login-open .hmp-v50-active-login-panel{
  display:block!important;
  max-width:520px!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.hmp-v50-login-open[data-hmp-login-type="doctor"],
.hmp-v50-login-open[data-hmp-login-type="patient"]{
  align-items:center!important;
  justify-content:center!important;
}

@media(max-width:600px){
  .hmp-v50-footer-credit{
    font-size:13px;
    padding:11px 10px;
  }
}


/* HMP v5.1 real separate login modal */
.hmp-v51-login-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(7,20,45,.62);
  backdrop-filter:blur(6px);
}

.hmp-v51-login-modal.active{
  display:flex!important;
}

.hmp-v51-login-box{
  position:relative;
  width:min(460px, 100%);
  background:#ffffff;
  border:1px solid #d9e8ff;
  border-radius:28px;
  padding:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}

.hmp-v51-login-close{
  position:absolute;
  right:16px;
  top:16px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:0;
  background:#ef4444;
  color:#fff;
  font-size:24px;
  font-weight:900;
  cursor:pointer;
  line-height:1;
}

.hmp-v51-panel{
  display:none;
}

.hmp-v51-login-modal[data-login-type="doctor"] .hmp-v51-doctor-panel,
.hmp-v51-login-modal[data-login-type="patient"] .hmp-v51-patient-panel{
  display:block!important;
}

.hmp-v51-panel h2{
  margin:0 0 10px;
  color:#09265d;
  font-size:30px;
  font-weight:900;
}

.hmp-v51-panel p{
  margin:0 0 18px;
  color:#415a7d;
  font-size:16px;
  line-height:1.45;
  font-weight:600;
}

.hmp-v51-panel form{
  display:grid;
  gap:13px;
}

.hmp-v51-panel input{
  width:100%;
  height:54px;
  border-radius:16px;
  border:1px solid #cfe0ff;
  background:#f7fbff;
  padding:0 16px;
  font-size:15px;
  font-weight:700;
  color:#09265d;
  outline:none;
}

.hmp-v51-panel input:focus{
  border-color:#0e63f4;
  box-shadow:0 0 0 4px rgba(14,99,244,.12);
  background:#fff;
}

.hmp-v51-panel button[type="submit"]{
  width:100%;
  height:56px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#0e63f4,#05a7f2);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(14,99,244,.22);
}

body.hmp-v51-modal-open{
  overflow:hidden;
}

@media(max-width:560px){
  .hmp-v51-login-box{
    padding:24px 18px;
    border-radius:24px;
  }
  .hmp-v51-panel h2{
    font-size:26px;
  }
}

/* HMP v5.4 Doctor Dashboard Sidebar Cut Fix */
.hmp-pro-dashboard{width:100%;max-width:1260px;overflow-x:hidden}
.hmp-pro-layout{grid-template-columns:minmax(0,1fr) minmax(280px,320px);max-width:100%;overflow:visible}
.hmp-pro-layout>div,.hmp-pro-layout>aside{min-width:0;max-width:100%}
.hmp-pro-layout>aside{width:100%}
.hmp-pro-card{max-width:100%;overflow:hidden}
.hmp-pro-card div[style*="overflow:auto"]{max-width:100%;overflow-x:auto!important;overflow-y:hidden}
.hmp-pro-table{min-width:760px}
.hmp-pro-table th,.hmp-pro-table td{white-space:normal}
.hmp-action-row{min-width:210px}
@media(max-width:1180px){.hmp-pro-layout{grid-template-columns:1fr}.hmp-pro-layout>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hmp-pro-layout>aside .hmp-pro-card{margin-bottom:0}}
@media(max-width:700px){.hmp-pro-layout>aside{display:block}.hmp-pro-layout>aside .hmp-pro-card{margin-bottom:18px}.hmp-pro-table{min-width:680px}.hmp-action-row{min-width:180px}}


/* ===== HMP Modern Hero (user requested redesign) ===== */
.hmp-hero-modern{position:relative;padding:42px 0 22px;background:linear-gradient(180deg,#f7f9fd 0%,#f4f7fc 60%,#ffffff 100%);overflow:hidden}
.hmp-hero-shell{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:1.02fr 1fr;align-items:center;gap:26px;padding:0 5%;position:relative;z-index:2}
.hmp-hero-modern .hmp-hero-copy{padding:36px 0 18px 0}
.hmp-hero-pill{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid #e2ebff;border-radius:999px;padding:12px 18px;color:#1d6ff2;font-weight:700;box-shadow:0 14px 34px rgba(37,99,235,.10);margin-bottom:28px}
.hmp-hero-pill-icon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e8f0ff;font-size:12px}
.hmp-hero-modern h1{font-size:clamp(42px,5vw,78px);line-height:1.04;letter-spacing:-1.6px;margin:0 0 18px;color:#0e2660}
.hmp-hero-title-dark,.hmp-hero-title-accent{display:block}
.hmp-hero-title-accent{color:#1f6ef0}
.hmp-hero-divider{display:block;width:58px;height:5px;border-radius:999px;background:linear-gradient(135deg,#1f6ef0,#6ba4ff);margin:0 0 26px}
.hmp-hero-modern p{max-width:560px;font-size:clamp(18px,1.55vw,22px);line-height:1.7;color:#5d6b86;margin:0 0 34px}
.hmp-hero-features{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:16px;max-width:760px}
.hmp-hero-feature-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.hmp-hero-feature-icon{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ffffff,#f4f7ff);border:1px solid #edf2ff;box-shadow:0 18px 34px rgba(12,56,124,.08);font-size:34px;color:#1f6ef0}
.hmp-hero-feature-item h4{font-size:20px;color:#1b2d58;line-height:1.25;font-weight:700}
.hmp-hero-media{position:relative;min-height:650px;display:flex;align-items:flex-end;justify-content:flex-end;padding-top:30px}
.hmp-hero-image-circle{position:absolute;right:-60px;top:65px;width:840px;height:840px;border-radius:50%;background:radial-gradient(circle at 55% 45%,rgba(226,236,251,.95) 0%,rgba(224,233,248,.82) 50%,rgba(244,247,252,.20) 73%,rgba(244,247,252,0) 74%)}
.hmp-hero-arc{position:absolute;right:70px;top:62px;width:520px;height:190px;border-top:2px solid #3b82f6;border-left:2px solid transparent;border-right:2px solid transparent;border-bottom:none;border-radius:50%/100% 100% 0 0;transform:rotate(-5deg)}
.hmp-hero-arc:before{content:'';position:absolute;left:50%;top:-14px;width:32px;height:32px;border-radius:50%;background:#1f6ef0;box-shadow:0 0 0 8px rgba(31,110,240,.08)}
.hmp-hero-dots{position:absolute;right:68px;top:76px;width:92px;height:92px;background-image:radial-gradient(#d6deec 1.7px,transparent 1.7px);background-size:16px 16px;opacity:.9}
.hmp-hero-image-card{position:relative;z-index:3;width:min(870px,100%)}
.hmp-hero-image-card img{width:100%;height:auto;display:block;object-fit:contain;filter:drop-shadow(0 30px 60px rgba(15,23,42,.10))}
.hmp-hero-bottom-wave{position:absolute;left:0;right:0;bottom:-1px;height:130px;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 30%,#ffffff 30%)}
.hmp-hero-bottom-wave:before{content:'';position:absolute;left:-3%;right:-3%;bottom:18px;height:74px;background:rgba(72,132,245,.12);border-radius:50% 50% 0 0 / 100% 100% 0 0;transform:skewX(-10deg)}
.hmp-hero-bottom-wave:after{content:'';position:absolute;left:-1%;right:48%;bottom:32px;height:20px;background:linear-gradient(90deg,#4e8ef6,#6fa4ff);border-radius:999px;transform:skewX(18deg)}
@media(max-width:1200px){.hmp-hero-shell{grid-template-columns:1fr}.hmp-hero-modern .hmp-hero-copy{padding-top:12px}.hmp-hero-modern p{max-width:100%}.hmp-hero-media{min-height:520px}.hmp-hero-image-circle{left:50%;transform:translateX(-40%);right:auto;width:700px;height:700px}.hmp-hero-arc{left:52%;transform:translateX(-38%) rotate(-5deg);right:auto}.hmp-hero-dots{right:12%}.hmp-hero-image-card{margin:0 auto}}
@media(max-width:900px){.hmp-hero-modern{padding-top:24px}.hmp-hero-features{grid-template-columns:repeat(2,minmax(140px,1fr));max-width:none}.hmp-hero-media{min-height:auto;padding-bottom:20px}.hmp-hero-image-circle{width:540px;height:540px;top:35px}.hmp-hero-arc{width:360px;height:140px;top:32px}.hmp-hero-dots{width:72px;height:72px;top:52px;right:9%}.hmp-hero-bottom-wave{height:96px}}
@media(max-width:640px){.hmp-hero-shell{padding:0 20px}.hmp-hero-pill{font-size:14px;padding:10px 15px}.hmp-hero-modern h1{font-size:40px}.hmp-hero-modern p{font-size:16px}.hmp-hero-features{grid-template-columns:repeat(2,1fr);gap:14px}.hmp-hero-feature-icon{width:70px;height:70px;font-size:26px}.hmp-hero-feature-item h4{font-size:16px}.hmp-hero-image-circle{width:380px;height:380px}.hmp-hero-arc{width:260px;height:105px;top:28px}.hmp-hero-dots{display:none}}


/* ===== HMP Hero Fix v2 ===== */
.hmp-hero-modern{display:block!important;min-height:auto!important;grid-template-columns:none!important;align-items:initial!important;gap:0!important;padding:26px 0 0!important;background:linear-gradient(180deg,#f6f8fc 0%,#f8fafc 58%,#ffffff 100%)!important;overflow:hidden!important}
.hmp-hero-shell{max-width:1640px!important;margin:0 auto!important;display:grid!important;grid-template-columns:minmax(0,700px) minmax(0,1fr)!important;align-items:center!important;gap:20px!important;padding:0 34px!important;position:relative!important;z-index:2!important}
.hmp-hero-modern .hmp-hero-copy{position:relative!important;z-index:5!important;max-width:680px!important;padding:30px 0 36px!important}
.hmp-hero-pill{margin-bottom:26px!important}
.hmp-hero-modern h1{font-size:clamp(46px,4.8vw,80px)!important;line-height:1.05!important;letter-spacing:-1.4px!important;margin:0 0 18px!important;color:#102b6a!important}
.hmp-hero-title-dark{color:#102b6a!important}
.hmp-hero-title-accent{color:#2e73ef!important}
.hmp-hero-divider{width:62px!important;height:4px!important;margin:0 0 24px!important;background:linear-gradient(90deg,#3d82f6,#8bb7ff)!important}
.hmp-hero-modern p{font-size:clamp(16px,1.35vw,20px)!important;line-height:1.7!important;color:#7a859b!important;max-width:520px!important;margin:0 0 34px!important}
.hmp-hero-features{display:grid!important;grid-template-columns:repeat(4,minmax(110px,1fr))!important;gap:18px!important;max-width:690px!important}
.hmp-hero-feature-item{gap:12px!important}
.hmp-hero-feature-icon{width:84px!important;height:84px!important;font-size:32px!important;border-radius:999px!important;border:1px solid #edf2ff!important;background:linear-gradient(180deg,#ffffff,#f5f8ff)!important;box-shadow:0 12px 28px rgba(27,45,88,.08)!important}
.hmp-hero-feature-icon-1{color:#ec89a5!important}
.hmp-hero-feature-icon-2,.hmp-hero-feature-icon-3,.hmp-hero-feature-icon-4{color:#5c95f5!important}
.hmp-hero-feature-item h4{font-size:17px!important;line-height:1.35!important;color:#7383a2!important;font-weight:700!important}
.hmp-hero-media{position:relative!important;min-height:650px!important;display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;padding:0!important;overflow:visible!important}
.hmp-hero-image-circle,.hmp-hero-arc,.hmp-hero-dots{display:none!important}
.hmp-hero-image-card{position:relative!important;z-index:3!important;width:min(880px,100%)!important;max-width:none!important;margin-left:auto!important;filter:none!important}
.hmp-hero-image-card img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;object-fit:contain!important;filter:drop-shadow(0 18px 42px rgba(15,23,42,.08))!important}
.hmp-hero-bottom-wave{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;height:110px!important;background:transparent!important}
.hmp-hero-bottom-wave:before{content:'';position:absolute;left:-4%;right:-4%;bottom:20px;height:64px;background:rgba(79,137,246,.12);border-radius:55% 45% 0 0 / 100% 100% 0 0!important;transform:skewX(-8deg)!important}
.hmp-hero-bottom-wave:after{content:'';position:absolute;left:-1%;width:55%;bottom:34px;height:18px;background:linear-gradient(90deg,#4887f5,#6ea4ff)!important;border-radius:999px!important;transform:skewX(15deg)!important}
@media(max-width:1280px){.hmp-hero-shell{grid-template-columns:minmax(0,1fr)!important}.hmp-hero-modern .hmp-hero-copy{max-width:none!important;padding-bottom:18px!important}.hmp-hero-modern p{max-width:none!important}.hmp-hero-media{min-height:auto!important;justify-content:center!important}.hmp-hero-image-card{width:min(900px,100%)!important}.hmp-hero-features{max-width:none!important}}
@media(max-width:860px){.hmp-hero-shell{padding:0 20px!important}.hmp-hero-modern h1{font-size:42px!important}.hmp-hero-features{grid-template-columns:repeat(2,minmax(130px,1fr))!important;gap:14px!important}.hmp-hero-feature-icon{width:72px!important;height:72px!important;font-size:26px!important}.hmp-hero-media{margin-top:6px!important}.hmp-hero-bottom-wave{height:84px!important}.hmp-hero-bottom-wave:after{width:62%!important}}
@media(max-width:520px){.hmp-hero-modern{padding-top:16px!important}.hmp-hero-pill{font-size:14px!important;padding:10px 14px!important}.hmp-hero-modern h1{font-size:36px!important}.hmp-hero-modern p{font-size:15px!important}.hmp-hero-feature-item h4{font-size:16px!important}}


/* HMP Header BN / ENG language switcher */
.hmp-lang-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;background:#eef5ff;border:1px solid #dbeafe;border-radius:999px;box-shadow:0 8px 20px rgba(37,99,235,.08)}
.hmp-lang-btn{display:inline-flex;align-items:center;justify-content:center;height:30px;min-width:42px;padding:0 10px;border-radius:999px;color:#1e3a8a!important;font-size:12px;font-weight:900;line-height:1;text-decoration:none!important;transition:.2s}
.hmp-lang-btn.active{background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff!important;box-shadow:0 8px 16px rgba(37,99,235,.24)}
.hmp-lang-btn:not(.active):hover{background:#fff;color:#075de8!important}
@media(max-width:950px){.hmp-actions{gap:8px}.hmp-lang-switch{order:-1}.hmp-lang-btn{min-width:38px;height:28px;font-size:11px;padding:0 8px}}
@media(max-width:520px){.hmp-lang-switch{padding:3px}.hmp-lang-btn{min-width:34px;height:26px;font-size:10px}.hmp-actions .hmp-btn.light{display:none}}


/* ===== Modern Departments Section Redesign ===== */
.hmp-departments-modern{position:relative;padding:48px 3.5% 32px;background:linear-gradient(180deg,#f7fafe 0%,#edf4fe 100%);overflow:hidden}
.hmp-departments-modern:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(85,146,255,.08),transparent 28%),radial-gradient(circle at bottom right,rgba(85,146,255,.09),transparent 18%),radial-gradient(circle at 10% 20%,rgba(85,146,255,.05),transparent 22%);pointer-events:none}
.hmp-departments-modern:after{content:'';position:absolute;top:24px;right:32px;width:210px;height:140px;background-image:radial-gradient(rgba(132,174,244,.45) 1.1px,transparent 1.1px),linear-gradient(rgba(124,170,244,.13),rgba(124,170,244,.13));background-size:16px 16px,100% 1px;background-position:0 0,0 0;background-repeat:repeat,no-repeat;opacity:.35;pointer-events:none;clip-path:polygon(30% 0,100% 0,100% 100%,0 100%,0 30%)}
.hmp-dept-section-head{position:relative;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}
.hmp-dept-head-left{display:flex;flex-direction:column;gap:10px}
.hmp-dept-top-mark{display:flex;align-items:center;gap:10px;color:#77baff}
.hmp-dept-mark-icon{font-size:26px;line-height:1}
.hmp-dept-mark-line{display:block;width:150px;height:2px;background:linear-gradient(90deg,#96c4ff,transparent)}
.hmp-dept-head-left h2{font-size:clamp(32px,4vw,58px);line-height:1.08;letter-spacing:-.8px;color:#08266d;margin:0;font-weight:800}
.hmp-dept-heading-accent{display:flex;align-items:center;gap:20px}
.hmp-dept-heading-bar{display:block;width:176px;height:5px;border-radius:999px;background:linear-gradient(90deg,#2280ff,#8ed0ff)}
.hmp-dept-heading-pulse{position:relative;display:block;width:62px;height:18px}
.hmp-dept-heading-pulse:before{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:linear-gradient(90deg,rgba(116,197,255,0),rgba(116,197,255,.9) 25%,rgba(116,197,255,0) 100%);transform:translateY(-50%)}
.hmp-dept-heading-pulse:after{content:'⚡';position:absolute;right:8px;top:50%;transform:translateY(-58%);font-size:16px;color:#79c5ff}
.hmp-dept-cta{position:relative;z-index:2;display:inline-flex;align-items:center;gap:12px;padding:20px 28px;border-radius:22px;background:linear-gradient(180deg,#2f80ff,#1f6df1);color:#fff!important;font-size:18px;font-weight:700;box-shadow:0 16px 28px rgba(47,128,255,.28);border:1px solid rgba(255,255,255,.55)}
.hmp-dept-cta-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.12);font-size:15px}
.hmp-dept-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.hmp-dept-card{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(250,252,255,.98));border:1px solid rgba(206,225,248,.95);border-radius:34px;padding:28px 26px 24px;box-shadow:0 18px 45px rgba(73,113,173,.14), inset 0 1px 0 rgba(255,255,255,.85);text-align:center;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.hmp-dept-card:before{content:'';position:absolute;right:-18px;bottom:-18px;width:170px;height:130px;background:radial-gradient(circle at top left,rgba(135,193,255,.2),rgba(38,122,255,.95) 72%);border-radius:42px 0 34px 0;transform:rotate(-2deg)}
.hmp-dept-card:after{content:'';position:absolute;right:10px;bottom:10px;width:124px;height:86px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.28));border-radius:90px 0 30px 0;pointer-events:none}
.hmp-dept-ghost-icon{position:absolute;right:20px;top:20px;font-size:38px;line-height:1;color:#dce9fa;opacity:.75}
.hmp-dept-icon-box{position:relative;z-index:2;display:grid;place-items:center;width:128px;height:128px;border-radius:34px;background:linear-gradient(180deg,#f8fbff,#eef5ff);border:1px solid #d8e8fb;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 14px 28px rgba(132,171,226,.22),0 0 0 4px rgba(223,236,252,.7);margin-bottom:24px}
.hmp-dept-icon{font-size:70px;line-height:1;filter:drop-shadow(0 6px 10px rgba(33,107,223,.15))}
.hmp-dept-card h3{position:relative;z-index:2;font-size:26px;line-height:1.2;color:#0d2c71;font-weight:800;margin:0 0 12px}
.hmp-dept-card p{position:relative;z-index:2;font-size:16px;line-height:1.55;color:#4a5d7f;max-width:240px;margin:0 auto 18px}
.hmp-dept-divider{position:relative;z-index:2;display:block;width:108px;height:2px;background:#d7e7fb;border-radius:999px;margin:0 auto 18px}
.hmp-dept-divider:after{content:'';position:absolute;left:50%;top:50%;width:14px;height:14px;background:#2677fa;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 6px rgba(38,119,250,.08)}
.hmp-dept-readmore{position:relative;z-index:2;margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:184px;padding:13px 22px;border-radius:999px;background:linear-gradient(180deg,#ffffff,#f3f8ff);color:#195fdb!important;border:1px solid #ccdef8;box-shadow:0 12px 20px rgba(106,144,199,.15);font-size:16px;font-weight:700}
.hmp-dept-arrow{font-size:28px;line-height:1;transform:translateY(-1px)}
.hmp-dept-card:hover{transform:translateY(-6px);box-shadow:0 25px 56px rgba(73,113,173,.2), inset 0 1px 0 rgba(255,255,255,.92)}
@media(max-width:1280px){.hmp-dept-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hmp-dept-head-left h2{font-size:46px}}
@media(max-width:980px){.hmp-dept-section-head{flex-direction:column;align-items:flex-start}.hmp-dept-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hmp-dept-card{min-height:340px}.hmp-dept-cta{padding:16px 24px;font-size:17px}}
@media(max-width:640px){.hmp-departments-modern{padding:36px 18px 24px}.hmp-dept-heading-bar{width:120px}.hmp-dept-grid{grid-template-columns:1fr}.hmp-dept-card{min-height:auto;padding:24px 20px 22px;border-radius:28px}.hmp-dept-icon-box{width:112px;height:112px;border-radius:28px}.hmp-dept-icon{font-size:58px}.hmp-dept-card h3{font-size:24px}.hmp-dept-readmore{min-width:170px}}

/* ===== Department Admin Dynamic Grid + Detail Templates ===== */
.hmp-departments-modern .hmp-dept-grid{grid-template-columns:repeat(var(--hmp-dept-cols-desktop,4),minmax(0,1fr))!important}
.hmp-dept-icon-img{width:78px;height:78px;object-fit:contain;display:block;filter:drop-shadow(0 6px 10px rgba(33,107,223,.15))}
.hmp-departments-archive{padding:54px 4%!important;min-height:70vh}
.hmp-departments-archive .hmp-dept-section-head{max-width:1540px;margin-left:auto;margin-right:auto}
.hmp-departments-archive .hmp-dept-grid{max-width:1540px;margin-left:auto;margin-right:auto}
.hmp-dept-detail-page{padding:44px 5%;background:linear-gradient(180deg,#f7fafe,#ffffff);min-height:70vh}
.hmp-dept-detail-hero{max-width:1180px;margin:0 auto 28px;display:grid;grid-template-columns:180px 1fr;gap:28px;align-items:center;background:linear-gradient(180deg,#ffffff,#f5f9ff);border:1px solid #dceafa;border-radius:34px;padding:34px;box-shadow:0 20px 55px rgba(73,113,173,.14)}
.hmp-dept-detail-icon{width:160px;height:160px;border-radius:38px;display:grid;place-items:center;background:linear-gradient(180deg,#f8fbff,#eef5ff);border:1px solid #d8e8fb;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 14px 28px rgba(132,171,226,.22),0 0 0 4px rgba(223,236,252,.7)}
.hmp-dept-detail-icon span{font-size:84px;line-height:1}.hmp-dept-detail-icon img{width:96px;height:96px;object-fit:contain}.hmp-dept-detail-kicker{color:#1f6df1;font-weight:800;margin:0 0 8px}.hmp-dept-detail-hero h1{font-size:clamp(34px,4vw,58px);color:#08266d;margin:0 0 10px;line-height:1.1}.hmp-dept-detail-desc{font-size:18px;color:#53627f;margin:0 0 20px;line-height:1.6}.hmp-dept-detail-content{max-width:1180px;margin:0 auto;padding:34px;border-radius:28px;font-size:18px;line-height:1.8;color:#1c2b4a}.hmp-dept-detail-content p{margin-bottom:16px}
@media(max-width:980px){.hmp-departments-modern .hmp-dept-grid{grid-template-columns:repeat(var(--hmp-dept-cols-tablet,2),minmax(0,1fr))!important}.hmp-dept-detail-hero{grid-template-columns:1fr;text-align:center}.hmp-dept-detail-icon{margin:0 auto}}
@media(max-width:640px){.hmp-departments-modern .hmp-dept-grid{grid-template-columns:repeat(var(--hmp-dept-cols-mobile,1),minmax(0,1fr))!important}.hmp-dept-detail-page{padding:28px 18px}.hmp-dept-detail-hero{padding:24px;border-radius:28px}.hmp-dept-detail-icon{width:128px;height:128px}.hmp-dept-detail-icon span{font-size:68px}.hmp-dept-detail-content{padding:24px;font-size:16px}}


/* ===== Doctor degree/specialist multiline + signature upload UI ===== */
.hmp-doctor-line-list{display:inline-flex;flex-direction:column;gap:3px;vertical-align:top;line-height:1.35;white-space:normal}.hmp-doctor-line-list span{display:block}.hmp-doctor-degree .hmp-doctor-line-list,.hmp-doctor-specialist .hmp-doctor-line-list,.hmp-doctor-specialty .hmp-doctor-line-list{display:flex;align-items:center;gap:4px}.hmp-profile-highlight .hmp-doctor-line-list{display:flex}.hmp-admin-line-list{display:flex;flex-direction:column;gap:3px}.hmp-admin-line-list span{display:block;padding:2px 7px;background:#eef6ff;border:1px solid #d7e8ff;border-radius:999px;width:max-content;max-width:100%}.hmp-v50-front-repeater{grid-column:1/-1;background:#f8fbff;border:1px solid #dbeafe;border-radius:14px;padding:12px}.hmp-v50-front-repeater label{display:block;font-weight:800;color:#0b255d;margin-bottom:8px}.hmp-v50-front-items{display:grid;gap:8px}.hmp-v50-front-row{display:flex;gap:8px}.hmp-v50-front-row input,.hmp-v50-front-items>input{flex:1}.hmp-v50-doctor-register input[type=file]{background:#fff;border:1px solid #dce7f6;border-radius:12px;padding:12px;width:100%}.hmp-v50-doctor-register small{display:block;color:#64748b;margin-top:6px}@media(max-width:640px){.hmp-v50-front-row{flex-direction:column}.hmp-admin-line-list span{width:auto}.hmp-doctor-line-list{font-size:.96em}}


/* Appointment Age + Address fields */
.hmp-form textarea[name="patient_address"]{grid-column:1/-1;min-height:82px}
.hmp-form input[name="patient_age"]{min-width:0}
.hmp-table td, .widefat td{vertical-align:top}


/* Appointment form layout: Age small, doctor select beside, no problem/message field */
.hmp-form .hmp-age-field,
.hmp-v25-booking-form .hmp-age-field{max-width:190px;width:100%;}
.hmp-form .hmp-doctor-select-field,
.hmp-v25-booking-form .hmp-doctor-select-field{width:100%;}
.hmp-selected-doctor-box{background:#f8fbff;border:1px solid #dce7f6;border-radius:12px;padding:13px;color:#082052;}
@media(max-width:600px){.hmp-form .hmp-age-field,.hmp-v25-booking-form .hmp-age-field{max-width:100%;}}


/* HMP v5.4 appointment day select + doctor schedule */
.hmp-day-booking-form .hmp-appointment-day-select{width:100%;border:1px solid #dce7f6;border-radius:12px;padding:13px;background:#fff;color:#0f172a}
.hmp-day-booking-form .hmp-appointment-day-select:disabled{color:#94a3b8;background:#f8fafc}
.hmp-fixed-schedule-box div span{display:block;font-size:12px;color:#64748b;margin-bottom:4px}
.hmp-fixed-schedule-box div b{display:block;color:#082052;line-height:1.35}


/* HMP v5.8 login close button fix */
.hmp-v51-login-close,
#hmpLoginClose,
.hmp-close{
  cursor:pointer!important;
  pointer-events:auto!important;
  z-index:1000002!important;
  position:absolute!important;
}
.hmp-v51-login-box,
.hmp-login-panel{position:relative!important;}


/* HMP v6.0 smart appointment move/filter UI */
.hmp-move-form{background:#f8fbff;border:1px solid #dbeafe;border-radius:16px;padding:14px;margin-top:16px}.hmp-move-form select{min-height:46px}.hmp-v60-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hmp-v60-filter input[type=date]{border:1px solid #dce7f6;border-radius:12px;padding:12px;background:#fff}.hmp-notice-smart.muted{background:#eef2f7;color:#475569;border:1px solid #d7dee8}

/* ===== Latest Notice / News Ticker ===== */
.hmp-latest-news-bar{position:relative;z-index:7;max-width:1500px;margin:-96px auto 38px;display:flex;align-items:center;gap:18px;border:1px solid rgba(188,213,249,.95);background:rgba(255,255,255,.72);backdrop-filter:blur(14px);border-radius:28px;padding:10px 18px 10px 10px;box-shadow:0 18px 42px rgba(39,91,180,.13);overflow:hidden}
.hmp-latest-news-label{display:flex;align-items:center;gap:14px;min-width:260px;padding:22px 36px;border-radius:22px 18px 18px 22px;background:linear-gradient(135deg,#4890ff,#1164e9);color:#fff;font-weight:800;font-size:26px;clip-path:polygon(0 0,100% 0,86% 100%,0 100%)}
.hmp-latest-news-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35)}
.hmp-latest-news-marquee{flex:1;overflow:hidden;white-space:nowrap}
.hmp-latest-news-track{display:inline-flex;align-items:center;gap:46px;min-width:100%;animation:hmpNoticeTicker 28s linear infinite}
@media (hover:hover) and (pointer:fine){.hmp-latest-news-bar:hover .hmp-latest-news-track{animation-play-state:paused}}
.hmp-latest-news-item{display:inline-flex;align-items:center;gap:16px;color:#092667!important;font-size:18px;font-weight:700;text-decoration:none}
.hmp-news-dot{width:9px;height:9px;border-radius:50%;background:#2677fa;box-shadow:0 0 0 6px rgba(38,119,250,.08)}
.hmp-latest-news-arrow{font-size:46px;line-height:1;color:#1f73f0!important;font-weight:900;padding:0 12px;text-decoration:none}
@keyframes hmpNoticeTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.hmp-notice-single-page,.hmp-notice-archive-page{max-width:1320px;margin:0 auto;padding:52px 5%}
.hmp-notice-single-card,.hmp-notice-archive-card{background:#fff;border:1px solid #e5eefb;border-radius:24px;box-shadow:0 18px 48px rgba(17,55,120,.08);overflow:hidden}
.hmp-notice-single-card{padding:42px 48px}
.hmp-notice-kicker{color:#07956f;font-weight:800;margin-bottom:14px}
.hmp-notice-single-card h1{font-size:clamp(32px,4vw,52px);line-height:1.18;color:#061f58;margin:0 0 20px}
.hmp-notice-meta{display:flex;gap:28px;flex-wrap:wrap;color:#52627d;font-weight:600;margin-bottom:28px}
.hmp-notice-content{font-size:18px;line-height:1.8;color:#1a2d55;border-top:1px solid #e6edf6;padding-top:26px}
.hmp-notice-pdf-box{margin-top:38px;background:#f7f9fd;border-radius:18px;overflow:hidden;border:1px solid #e5eaf3}
.hmp-notice-pdf-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#e9e9e9;padding:20px 28px}
.hmp-notice-pdf-head h2{font-size:20px;margin:0;color:#111827}
.hmp-notice-download{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:14px 22px;background:#ef3333;color:#fff!important;font-weight:800;text-decoration:none}
.hmp-notice-pdf-viewer{display:block;width:100%;height:760px;border:0;background:#303030}
.hmp-notice-archive-head{display:flex;align-items:center;gap:12px;margin-bottom:24px}.hmp-notice-archive-head h1{font-size:42px;color:#08266d;margin:0}
.hmp-notice-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.hmp-notice-archive-card{padding:26px}.hmp-notice-archive-card h2{font-size:24px;line-height:1.3;margin:0 0 12px}.hmp-notice-archive-card h2 a{color:#08266d!important}.hmp-notice-archive-card p{color:#52627d;line-height:1.65}.hmp-notice-read{display:inline-flex;margin-top:16px;background:#1164e9;color:#fff!important;padding:12px 18px;border-radius:10px;font-weight:800;text-decoration:none}
@media(max-width:1200px){.hmp-latest-news-bar{margin:10px 20px 30px}.hmp-latest-news-label{min-width:220px;font-size:22px;padding:18px 28px}.hmp-notice-archive-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.hmp-latest-news-bar{border-radius:20px;gap:10px;padding:8px;margin:8px 15px 24px}.hmp-latest-news-label{min-width:150px;font-size:16px;padding:14px 18px;clip-path:none}.hmp-latest-news-icon{width:30px;height:30px}.hmp-latest-news-item{font-size:15px}.hmp-latest-news-track{gap:26px}.hmp-latest-news-arrow{font-size:30px}.hmp-notice-single-page,.hmp-notice-archive-page{padding:32px 18px}.hmp-notice-single-card{padding:26px 20px}.hmp-notice-pdf-head{flex-direction:column;align-items:flex-start}.hmp-notice-pdf-viewer{height:520px}.hmp-notice-archive-grid{grid-template-columns:1fr}}


/* ===== Latest News mobile ticker fix ===== */
.hmp-latest-news-track{animation-play-state:running;will-change:transform}
.hmp-latest-news-bar.hmp-ticker-paused .hmp-latest-news-track{animation-play-state:paused}
@media(max-width:700px){
  .hmp-latest-news-bar{gap:6px!important;padding:7px 8px!important;margin:8px 12px 22px!important;border-radius:18px!important}
  .hmp-latest-news-label{min-width:82px!important;width:82px!important;flex:0 0 82px!important;font-size:13px!important;gap:6px!important;padding:10px 8px!important;border-radius:14px!important;clip-path:none!important;justify-content:center!important}
  .hmp-latest-news-icon{width:22px!important;height:22px!important;border-radius:7px!important;font-size:12px!important}
  .hmp-latest-news-label span:last-child{line-height:1.1!important;white-space:normal!important;text-align:left!important}
  .hmp-latest-news-marquee{min-width:0!important;flex:1 1 auto!important}
  .hmp-latest-news-item{font-size:14px!important;gap:10px!important;max-width:none!important}
  .hmp-latest-news-track{gap:22px!important;animation-duration:22s!important}
  .hmp-latest-news-arrow{font-size:24px!important;padding:0 2px!important;flex:0 0 22px!important}
  .hmp-news-dot{width:7px!important;height:7px!important;box-shadow:0 0 0 4px rgba(38,119,250,.08)!important}
}
@media(max-width:420px){
  .hmp-latest-news-label{min-width:72px!important;width:72px!important;flex-basis:72px!important;font-size:12px!important;padding:9px 6px!important}
  .hmp-latest-news-icon{display:none!important}
  .hmp-latest-news-item{font-size:13px!important}
  .hmp-latest-news-arrow{font-size:22px!important;flex-basis:18px!important}
}


/* ===== Latest News hover/touch pause + label alignment fix ===== */
.hmp-latest-news-bar:hover .hmp-latest-news-track,
.hmp-latest-news-bar.hmp-ticker-paused .hmp-latest-news-track{animation-play-state:paused!important}
.hmp-latest-news-label{align-items:center!important;justify-content:center!important;text-align:center!important;font-size:27px!important}
.hmp-latest-news-label span:last-child{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1.15!important}
@media(max-width:1200px){.hmp-latest-news-label{font-size:23px!important}}
@media(max-width:700px){
  .hmp-latest-news-label{font-size:14px!important;text-align:center!important;justify-content:center!important;align-items:center!important}
  .hmp-latest-news-label span:last-child{text-align:center!important;justify-content:center!important}
}
@media(max-width:420px){.hmp-latest-news-label{font-size:13px!important}}

/* HMP v5.3 Modern editable footer - old footer fully replaced */
.hmp-modern-footer{position:relative;overflow:hidden;background:linear-gradient(180deg,#eef6ff 0%,#fafdff 42%,#ffffff 100%)!important;color:#10274f!important;border-top:1px solid rgba(0,91,234,.08);padding:78px 2.8% 28px!important;font-family:var(--hmp-font,Arial,sans-serif)}
.hmp-modern-footer:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 8% 20%,rgba(0,91,234,.10),transparent 28%),radial-gradient(circle at 92% 18%,rgba(79,171,255,.13),transparent 30%),linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.94));pointer-events:none}
.hmp-footer-wave{position:absolute;top:-40px;left:-4%;right:-4%;height:120px;background:linear-gradient(180deg,rgba(210,229,255,.85),rgba(255,255,255,.72));border-bottom-left-radius:50% 38px;border-bottom-right-radius:50% 38px;box-shadow:0 20px 70px rgba(0,91,234,.09);transform:rotate(-1deg)}
.hmp-footer-main,.hmp-footer-bottom{position:relative;z-index:1;max-width:1500px;margin:0 auto}
.hmp-footer-main{display:grid;grid-template-columns:1.35fr .9fr .9fr 1.25fr 1.05fr;gap:28px;align-items:start}
.hmp-footer-col{min-width:0;padding:10px 18px;border-right:1px solid rgba(0,91,234,.13)}
.hmp-footer-col:last-of-type{border-right:0}
.hmp-footer-logo{display:flex;align-items:center;gap:14px;text-decoration:none!important;color:#0b3b92!important;margin-bottom:20px}
.hmp-footer-logo-mark{width:66px;height:66px;min-width:66px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#f8fbff,#dfeeff);border:1px solid rgba(0,91,234,.20);box-shadow:10px 14px 32px rgba(0,91,234,.13),inset 2px 2px 8px rgba(255,255,255,.9)}
.hmp-footer-logo-img{max-width:54px!important;max-height:54px!important;width:auto!important;height:auto!important;object-fit:contain}
.hmp-shield-icon{width:42px;height:48px;border:4px solid #0867f2;border-radius:14px 14px 22px 22px;display:grid;place-items:center;color:#0867f2;font-size:25px;font-weight:900;line-height:1;box-shadow:0 7px 20px rgba(0,91,234,.18)}
.hmp-footer-logo-text{font-size:30px;font-weight:950;line-height:1.18;letter-spacing:-.5px;color:#082b67;max-width:180px}
.hmp-footer-brand p{font-size:15px;line-height:1.9;color:#52637f;margin:0 0 28px;max-width:330px}
.hmp-footer-hotline-card{display:flex;align-items:center;gap:16px;max-width:305px;border-radius:20px;padding:18px;background:rgba(255,255,255,.72);border:1px solid rgba(0,91,234,.16);box-shadow:0 18px 45px rgba(8,33,84,.11),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(12px)}
.hmp-footer-hotline-icon{width:60px;height:60px;min-width:60px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#eaf2ff,#ffffff);color:#075de8;font-size:28px;box-shadow:inset 2px 2px 8px rgba(255,255,255,.8),0 10px 24px rgba(0,91,234,.09)}
.hmp-footer-hotline-card small,.hmp-footer-hotline-card em{display:block;color:#52637f;font-style:normal;font-size:13px;line-height:1.25}
.hmp-footer-hotline-card strong{display:block;color:#075de8;font-size:21px;line-height:1.35;letter-spacing:.3px}
.hmp-footer-col h3,.hmp-footer-emergency-card h3{margin:0;color:#093b91;font-size:21px;font-weight:950;line-height:1.25}
.hmp-footer-line{width:34px;height:4px;border-radius:99px;background:#126cf0;margin:13px 0 18px;box-shadow:18px 0 0 rgba(18,108,240,.18)}
.hmp-footer-links{display:grid;gap:0}
.hmp-footer-links a{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid rgba(0,91,234,.12);text-decoration:none!important;color:#243a61!important;font-size:15px;font-weight:700;transition:.2s ease}
.hmp-footer-links a span{width:23px;height:23px;border:2px solid #0d6efd;border-radius:50%;display:inline-block;position:relative;background:#f7fbff;box-shadow:0 5px 14px rgba(0,91,234,.08)}
.hmp-footer-links a span:after{content:"";position:absolute;width:7px;height:7px;border-right:2px solid #0d6efd;border-bottom:2px solid #0d6efd;transform:rotate(-45deg);left:6px;top:6px}
.hmp-footer-links a:hover{color:#075de8!important;transform:translateX(4px)}
.hmp-footer-contact-list{display:grid;gap:0}
.hmp-footer-contact-list>div{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid rgba(0,91,234,.12)}
.hmp-footer-contact-list span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#075de8;background:#f4f9ff;border:1px solid rgba(0,91,234,.18);font-size:20px;box-shadow:0 8px 18px rgba(0,91,234,.08)}
.hmp-footer-contact-list p{margin:0;color:#243a61;line-height:1.55;font-size:14px;font-weight:600}
.hmp-footer-contact-list b{display:block;color:#082b67;font-size:15px;margin-bottom:2px;font-weight:950}
.hmp-footer-emergency-card{position:relative;min-height:360px;border-radius:28px;padding:34px 28px;background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(235,245,255,.7));border:1px solid rgba(0,91,234,.16);box-shadow:0 24px 60px rgba(8,33,84,.14),inset 0 1px 0 rgba(255,255,255,.95);overflow:hidden;backdrop-filter:blur(12px)}
.hmp-footer-emergency-card:before{content:"";position:absolute;right:-30px;top:22px;width:160px;height:160px;border:14px solid rgba(7,93,232,.16);border-right-color:#075de8;border-radius:50%;box-shadow:0 20px 45px rgba(0,91,234,.18)}
.hmp-footer-emergency-card:after{content:"✚";position:absolute;right:36px;bottom:20px;width:82px;height:92px;border-radius:24px 24px 42px 42px;background:linear-gradient(145deg,#e8f2ff,#cce2ff);display:grid;place-items:center;color:#075de8;font-size:42px;font-weight:900;border:1px solid rgba(0,91,234,.22);box-shadow:0 18px 38px rgba(0,91,234,.18)}
.hmp-footer-247{position:relative;z-index:1;font-size:54px;line-height:1;font-weight:1000;color:#075de8;text-shadow:0 10px 25px rgba(7,93,232,.20);margin:56px 0 30px}
.hmp-footer-emergency-card h3{position:relative;z-index:1;margin-bottom:13px;color:#082b67;font-size:24px}
.hmp-footer-emergency-card p{position:relative;z-index:1;color:#52637f;line-height:1.8;font-size:15px;margin:0 0 22px;max-width:260px}
.hmp-footer-emergency-card a{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:55px;padding:0 24px;border-radius:14px;background:linear-gradient(135deg,#075de8,#0d7bff);box-shadow:0 12px 28px rgba(7,93,232,.28);color:#fff!important;text-decoration:none!important;font-weight:950;font-size:15px}
.hmp-footer-emergency-card a span{font-size:24px;line-height:1}
.hmp-footer-bottom{margin-top:56px;border-radius:26px;padding:22px 34px;background:rgba(255,255,255,.74);border:1px solid rgba(0,91,234,.14);box-shadow:0 18px 45px rgba(8,33,84,.10),inset 0 1px 0 rgba(255,255,255,.9);display:grid;grid-template-columns:1.2fr .9fr 1.05fr;gap:28px;align-items:center}
.hmp-footer-copy{display:flex;align-items:center;gap:18px;border-right:1px solid rgba(0,91,234,.15);padding-right:26px}
.hmp-footer-mini-shield,.hmp-footer-credit-icon{width:54px;height:54px;min-width:54px;border-radius:17px;display:grid;place-items:center;background:#eef6ff;border:2px solid rgba(0,91,234,.28);color:#075de8;font-size:28px;font-weight:900;box-shadow:0 10px 22px rgba(0,91,234,.09)}
.hmp-footer-copy p{margin:0;color:#375075;font-size:14px;line-height:1.65;font-weight:650}
.hmp-footer-social-wrap{text-align:center;border-right:1px solid rgba(0,91,234,.15);padding-right:26px}
.hmp-footer-social-wrap strong{display:block;color:#243a61;font-size:14px;margin-bottom:12px}
.hmp-footer-social{display:flex;justify-content:center;gap:14px}
.hmp-footer-social a{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#075de8,#0d7bff);color:#fff!important;text-decoration:none!important;font-weight:950;font-size:17px;box-shadow:0 12px 24px rgba(7,93,232,.22)}
.hmp-footer-social a:nth-child(2){background:linear-gradient(145deg,#ff1e1e,#f44336)}
.hmp-footer-social a:nth-child(3){background:linear-gradient(145deg,#0477c7,#0490df)}
.hmp-footer-social a:nth-child(4){background:linear-gradient(145deg,#f70491,#ff9a25)}
.hmp-footer-credit-fixed{display:grid;grid-template-columns:60px 1fr;align-items:center;gap:0 16px;justify-content:start;text-align:left}
.hmp-footer-credit-fixed p{margin:0;color:#59708e;font-size:14px;font-weight:800;line-height:1.2}
.hmp-footer-credit-fixed a{color:#075de8!important;text-decoration:none!important;font-size:20px;font-weight:1000;line-height:1.2;grid-column:2}
.hmp-modern-footer .hmp-v50-footer-credit{display:none!important}
@media(max-width:1200px){.hmp-footer-main{grid-template-columns:1.2fr 1fr 1fr}.hmp-footer-emergency-card{grid-column:span 3;min-height:260px}.hmp-footer-247{margin-top:10px}.hmp-footer-bottom{grid-template-columns:1fr}.hmp-footer-copy,.hmp-footer-social-wrap{border-right:0;border-bottom:1px solid rgba(0,91,234,.14);padding:0 0 20px}}
@media(max-width:760px){.hmp-modern-footer{padding:62px 15px 22px!important}.hmp-footer-main{grid-template-columns:1fr;gap:18px}.hmp-footer-col{border-right:0;border-bottom:1px solid rgba(0,91,234,.12);padding:10px 2px 24px}.hmp-footer-logo-text{font-size:25px}.hmp-footer-emergency-card{grid-column:auto;min-height:320px}.hmp-footer-bottom{padding:20px}.hmp-footer-copy{align-items:flex-start}.hmp-footer-social{flex-wrap:wrap}.hmp-footer-credit-fixed{grid-template-columns:54px 1fr}.hmp-footer-hotline-card{max-width:none}}


/* HMP v5.3.1 Modern footer layout conflict fix */
.hmp-modern-footer{
  display:block!important;
  grid-template-columns:none!important;
  margin-top:0!important;
  width:100%!important;
  clear:both!important;
}
.hmp-modern-footer *{box-sizing:border-box!important}
.hmp-modern-footer p{display:block!important;color:inherit;margin:0;line-height:inherit}
.hmp-modern-footer a{display:inline-flex;color:inherit;margin:0;line-height:inherit}
.hmp-modern-footer .hmp-footer-links a{display:flex!important}
.hmp-modern-footer .hmp-footer-logo{display:flex!important}
.hmp-modern-footer .hmp-footer-emergency-card a{display:inline-flex!important}
.hmp-modern-footer .hmp-footer-social a{display:grid!important}
.hmp-modern-footer .hmp-footer-credit-fixed a{display:block!important}
.hmp-modern-footer .hmp-footer-main{width:100%!important}
@media(max-width:1200px){.hmp-modern-footer .hmp-footer-main{grid-template-columns:1.2fr 1fr 1fr!important}.hmp-modern-footer .hmp-footer-emergency-card{grid-column:span 3!important}.hmp-modern-footer .hmp-footer-bottom{grid-template-columns:1fr!important}}
@media(max-width:760px){.hmp-modern-footer .hmp-footer-main{grid-template-columns:1fr!important}.hmp-modern-footer .hmp-footer-emergency-card{grid-column:auto!important}}

/* HMP v3.0 Doctor profile gallery + dashboard media manager */
.hmp-v30-gallery-section{margin-top:34px;padding:0 0 20px}.hmp-v30-gallery-section h2{font-size:34px;color:#071653;margin:0 0 18px;font-weight:900}.hmp-v30-gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.hmp-v30-gallery-box{background:#fff;border:1px solid #d7e4ff;border-radius:20px;padding:24px;box-shadow:0 18px 40px rgba(7,93,232,.08)}.hmp-v30-box-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.hmp-v30-box-head h3{margin:0;font-size:24px;color:#071653}.hmp-v30-box-head span{color:#075de8;font-weight:800}.hmp-v30-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hmp-v30-photo-item{position:relative;height:108px;overflow:hidden;border-radius:14px;display:block;background:#eaf3ff}.hmp-v30-photo-item img{width:100%;height:100%;object-fit:cover;transition:.25s}.hmp-v30-photo-item:hover img{transform:scale(1.08)}.hmp-v30-photo-item span{position:absolute;left:8px;right:8px;bottom:8px;background:linear-gradient(90deg,rgba(7,93,232,.85),rgba(10,28,80,.55));color:#fff;border-radius:8px;padding:5px 8px;font-size:12px;font-weight:800}.hmp-v30-video-grid{display:grid;grid-template-columns:1fr;gap:12px}.hmp-v30-video-card{border-radius:16px;overflow:hidden;background:#071653;position:relative}.hmp-v30-video-card iframe,.hmp-v30-video-card video{width:100%;height:230px;border:0;display:block;background:#071653;object-fit:cover}.hmp-v30-video-title{position:absolute;left:14px;right:14px;bottom:12px;background:rgba(255,255,255,.90);border-radius:12px;padding:9px 12px;color:#071653;font-weight:900}.hmp-v30-empty{min-height:110px;display:flex;align-items:center;justify-content:center;text-align:center;color:#64748b;background:#f5f9ff;border:1px dashed #b9d2ff;border-radius:14px;padding:15px}.hmp-v30-manage-card{margin-top:18px}.hmp-v30-inline-form{display:grid;grid-template-columns:1fr 1.2fr 1fr auto;gap:10px;align-items:center;margin:12px 0 16px}.hmp-v30-inline-form select,.hmp-v30-inline-form input{width:100%;border:1px solid #cfe0ff;border-radius:10px;padding:10px;background:#fff}.hmp-v30-admin-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.hmp-v30-admin-list>div{background:#f7fbff;border:1px solid #d7e4ff;border-radius:12px;padding:10px;display:flex;align-items:center;gap:10px;justify-content:space-between}.hmp-v30-admin-list img{width:52px;height:52px;border-radius:10px;object-fit:cover}.hmp-v30-admin-list a{color:#e11d48;font-weight:800;text-decoration:none}.hmp-v30-admin-wrap .hmp-pro-card{max-width:1180px;background:#fff;padding:20px;border-radius:16px;box-shadow:0 10px 28px rgba(15,23,42,.08);margin-bottom:18px}@media(max-width:900px){.hmp-v30-gallery-grid{grid-template-columns:1fr}.hmp-v30-photo-grid{grid-template-columns:repeat(2,1fr)}.hmp-v30-inline-form{grid-template-columns:1fr}.hmp-v30-admin-list{grid-template-columns:1fr}.hmp-v30-video-card iframe,.hmp-v30-video-card video{height:200px}.hmp-v30-gallery-section h2{font-size:26px}}

/* HMP v7.8 Board of Directors 3D Cards */
.hmp-v78-board-page{max-width:1240px;margin:0 auto;padding:54px 18px 70px;position:relative;overflow:hidden}
.hmp-v78-board-page:before{content:"";position:absolute;inset:20px auto auto -120px;width:280px;height:280px;background:radial-gradient(circle,rgba(7,93,232,.13),transparent 68%);border-radius:50%;pointer-events:none;animation:hmpV78Float 7s ease-in-out infinite}
.hmp-v78-board-page:after{content:"";position:absolute;right:-120px;bottom:20px;width:300px;height:300px;background:radial-gradient(circle,rgba(8,160,107,.13),transparent 68%);border-radius:50%;pointer-events:none;animation:hmpV78Float 8s ease-in-out infinite reverse}
.hmp-v78-board-hero{text-align:center;margin:0 auto 34px;max-width:760px;position:relative;z-index:1}
.hmp-v78-board-hero span{display:inline-flex;padding:8px 16px;border-radius:999px;background:linear-gradient(135deg,rgba(7,93,232,.12),rgba(8,160,107,.12));color:var(--hmp-primary,#075de8);font-weight:800;letter-spacing:.4px;margin-bottom:12px}
.hmp-v78-board-hero h1{margin:0 0 12px;font-size:clamp(30px,4vw,52px);line-height:1.05;color:var(--hmp-dark,#082052);font-weight:900;text-shadow:0 8px 24px rgba(7,93,232,.10)}
.hmp-v78-board-hero p{margin:0;color:#526581;font-size:17px;line-height:1.7}
.hmp-v78-board-grid{display:grid;grid-template-columns:repeat(var(--hmp-board-desktop,4),minmax(0,1fr));gap:24px;position:relative;z-index:2;perspective:1300px}
.hmp-v78-board-card{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(246,251,255,.88));border:1px solid rgba(7,93,232,.12);border-radius:28px;padding:26px 20px 22px;text-align:center;box-shadow:0 20px 50px rgba(8,32,82,.12),inset 0 1px 0 rgba(255,255,255,.95);transform-style:preserve-3d;transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease;position:relative;overflow:hidden;animation:hmpV78CardIn .7s ease both}
.hmp-v78-board-card:before{content:"";position:absolute;inset:-60px -60px auto auto;width:150px;height:150px;background:linear-gradient(135deg,rgba(7,93,232,.18),rgba(8,160,107,.14));border-radius:50%;filter:blur(2px)}
.hmp-v78-board-card:hover{transform:translateY(-10px) rotateX(5deg) rotateY(-5deg);box-shadow:0 34px 70px rgba(8,32,82,.20);border-color:rgba(7,93,232,.25)}
.hmp-v78-board-photo-wrap{width:138px;height:138px;margin:0 auto 18px;border-radius:50%;padding:6px;background:conic-gradient(from 180deg,var(--hmp-primary,#075de8),var(--hmp-secondary,#08a06b),#7dd3fc,var(--hmp-primary,#075de8));box-shadow:0 18px 34px rgba(7,93,232,.18);animation:hmpV78Spin 8s linear infinite;transform:translateZ(24px)}
.hmp-v78-board-photo{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover;border:5px solid #fff;animation:hmpV78PhotoPulse 3s ease-in-out infinite;box-shadow:0 8px 22px rgba(8,32,82,.16)}
.hmp-v78-board-body{position:relative;z-index:1;transform:translateZ(18px)}
.hmp-v78-board-body h3{font-size:21px;line-height:1.25;color:var(--hmp-dark,#082052);font-weight:900;margin:0 0 8px}
.hmp-v78-board-designation{margin:0 auto 10px;color:var(--hmp-primary,#075de8);font-weight:800;background:rgba(7,93,232,.08);display:inline-flex;padding:6px 13px;border-radius:999px;font-size:13px}
.hmp-v78-board-mobile{margin:8px 0 16px;color:#5b6b84;font-size:14px}
.hmp-v78-board-mobile b{color:#0f172a}
.hmp-v78-board-call{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:999px;padding:10px 18px;background:linear-gradient(135deg,var(--hmp-primary,#075de8),var(--hmp-secondary,#08a06b));color:#fff!important;text-decoration:none;font-weight:800;box-shadow:0 12px 26px rgba(7,93,232,.22);transition:transform .25s ease,box-shadow .25s ease}
.hmp-v78-board-call:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(7,93,232,.30)}
.hmp-v78-board-pagination{display:flex;justify-content:center;gap:9px;margin-top:34px;position:relative;z-index:2;flex-wrap:wrap}
.hmp-v78-page-link{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff;border:1px solid rgba(7,93,232,.16);box-shadow:0 10px 24px rgba(8,32,82,.08);color:var(--hmp-dark,#082052);font-weight:900;text-decoration:none!important}
.hmp-v78-page-link.active,.hmp-v78-page-link:hover{background:var(--hmp-primary,#075de8);color:#fff!important}
.hmp-v78-board-empty{background:#fff;border-radius:22px;box-shadow:0 18px 40px rgba(8,32,82,.10);padding:32px;text-align:center;position:relative;z-index:2}
@keyframes hmpV78CardIn{from{opacity:0;transform:translateY(28px) rotateX(10deg)}to{opacity:1;transform:translateY(0) rotateX(0)}}
@keyframes hmpV78Spin{to{transform:translateZ(24px) rotate(360deg)}}
@keyframes hmpV78PhotoPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes hmpV78Float{0%,100%{transform:translateY(0)}50%{transform:translateY(-18px)}}
@media(max-width:991px){.hmp-v78-board-grid{grid-template-columns:repeat(var(--hmp-board-tablet,2),minmax(0,1fr))}.hmp-v78-board-page{padding-top:38px}}
@media(max-width:575px){.hmp-v78-board-grid{grid-template-columns:repeat(var(--hmp-board-mobile,1),minmax(0,1fr));gap:18px}.hmp-v78-board-card{border-radius:22px;padding:22px 16px}.hmp-v78-board-photo-wrap{width:122px;height:122px}.hmp-v78-board-hero p{font-size:15px}}

/* HMP v7.9 Board photo rotation disabled + About Us page */
.hmp-v78-board-photo-wrap{animation:none!important;transform:translateZ(24px)!important;background:linear-gradient(135deg,var(--hmp-primary,#075de8),var(--hmp-secondary,#08a06b))!important}
.hmp-v78-board-photo{animation:none!important}
.hmp-v79-about-page{max-width:1140px;margin:0 auto;padding:54px 18px 72px;position:relative}
.hmp-v79-about-page:before{content:"";position:absolute;left:-80px;top:45px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(7,93,232,.13),transparent 70%);pointer-events:none}
.hmp-v79-about-card{position:relative;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,251,255,.9));border:1px solid rgba(7,93,232,.13);border-radius:30px;padding:42px;box-shadow:0 24px 70px rgba(8,32,82,.12);overflow:hidden}
.hmp-v79-about-card:after{content:"";position:absolute;right:-70px;top:-70px;width:210px;height:210px;background:linear-gradient(135deg,rgba(7,93,232,.14),rgba(8,160,107,.16));border-radius:50%}
.hmp-v79-about-kicker{display:inline-flex;padding:8px 16px;border-radius:999px;background:rgba(7,93,232,.1);color:var(--hmp-primary,#075de8);font-weight:900;margin-bottom:14px;position:relative;z-index:1}
.hmp-v79-about-card h1{margin:0 0 20px;color:var(--hmp-dark,#082052);font-size:clamp(30px,4vw,48px);font-weight:900;position:relative;z-index:1}
.hmp-v79-about-content{position:relative;z-index:1;color:#334155;font-size:17px;line-height:1.9}
.hmp-v79-about-content p{margin:0 0 16px}.hmp-v79-about-content img{max-width:100%;height:auto;border-radius:18px;box-shadow:0 14px 34px rgba(8,32,82,.12)}
@media(max-width:575px){.hmp-v79-about-card{padding:26px 18px;border-radius:22px}.hmp-v79-about-content{font-size:15px}}


/* HMP v7.7 Mobile doctor section visibility fix */
.hmp-home-doctors-section{
  display:block!important;
  visibility:visible!important;
}
.hmp-home-doctors-section.hmp-animate-right,
.hmp-home-doctors-section.hmp-inview{
  opacity:1!important;
  transform:none!important;
}
@media (max-width: 767px){
  #doctors.hmp-home-doctors-section,
  .hmp-home-doctors-section{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    padding:28px 4% 30px!important;
    clear:both!important;
    overflow:visible!important;
  }
  .hmp-home-doctors-section .hmp-section-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:16px!important;
  }
  .hmp-home-doctors-section .hmp-section-head h2{
    display:block!important;
    font-size:22px!important;
    line-height:1.25!important;
    margin:0!important;
  }
  .hmp-home-doctors-section .hmp-section-head .hmp-btn{
    display:inline-flex!important;
    white-space:nowrap!important;
    padding:10px 12px!important;
    font-size:12px!important;
  }
  .hmp-home-doctors-section .hmp-home-doctors-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
    opacity:1!important;
    visibility:visible!important;
  }
}
@media (max-width: 380px){
  .hmp-home-doctors-section .hmp-home-doctors-grid{
    grid-template-columns:1fr!important;
  }
}
