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

:root {
  --bg: #f5f7ff;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e7edfb;
  --blue: #1b64ff;
  --purple: #af20ea;
  --shadow: 0 10px 30px rgba(24, 54, 120, 0.08);
  /* Brand wordmark colors (Applicable to site, docs etc.) */
  --brand-ubiq: #1D6CB9;
  --brand-cure: #D91C3D;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 99, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 50%, #f3f6fe 100%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(231, 237, 251, 0.95);
  backdrop-filter: blur(12px);
}

body.index-page,
body.fixed-header-page {
  padding-top: 74px;
}

.index-page .site-header,
.fixed-header-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 185px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark img {
  height: 34px;
  width: auto;
  max-width: none;
}
.brand-wordmark,
.ubiq-brand {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1;
}
.brand-wordmark-ubiq,
.ubiq-brand .ubiq { color: var(--brand-ubiq); }
.brand-wordmark-cure,
.ubiq-brand .cure { color: var(--brand-cure); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #243253;
  padding: 30px 0 26px;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.new-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ehrc-btn {
  border: 1px solid rgba(24, 79, 215, 0.35);
  background: #fff;
  color: #1b2b57;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(24, 54, 120, 0.06);
}

.ehrc-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #1b64ff;
  background: rgba(27, 100, 255, 0.10);
}

.ehrc-new {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: #fff;
  background: #16b35a;
  font-weight: 700;
}

.location-chip .loc-name {
  font-weight: 600;
}

.header-login-btn {
  border: 1px solid rgba(184, 194, 223, 0.9);
  color: #253257;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}

.header-signup-btn {
  border: 0;
  color: #fff;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 8px 20px rgba(104, 72, 228, 0.25);
  font-weight: 600;
}

.header-signup-btn::after {
  margin-left: 8px;
}

.signup-menu {
  border-radius: 12px;
  border: 1px solid #e8eefc;
  min-width: 185px;
}

.signup-menu .dropdown-item {
  font-size: 14px;
  font-weight: 500;
}

.chip,
.ghost-btn,
.primary-header-btn,
.outline-btn,
.store-btn {
  border-radius: 12px;
  cursor: pointer;
}

.chip,
.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #243253;
  font-size: 14px;
  padding: 12px 16px;
}

.primary-header-btn {
  border: 0;
  color: #fff;
  font-size: 14px;
  padding: 13px 18px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 8px 20px rgba(104, 72, 228, 0.25);
}

.page-shell {
  padding: 14px 0 24px;
}

.card,
.virtual-card,
.mini-card,
.doctor-card,
.join-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(231, 237, 251, 0.95);
  box-shadow: var(--shadow);
  border-radius: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.hero-left {
  position: relative;
  min-height: 370px;
  overflow: hidden;
}

.hero-left h1 {
  margin: 14px 0 8px;
  font-size: clamp(42px, 3.1vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}

.hero-left h1 span {
  background: linear-gradient(90deg, #1f65ff, #af22ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-left > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4f5b6f;
  max-width: 370px;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: absolute;
  right: -8px;
  top: 6px;
  width: 55%;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.trust-row article h4 {
  margin: 8px 0 2px;
  font-size: 12px;
}

.trust-row article small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.trust-icon,
.mini-badge,
.spec {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2958ff;
  background: #f3f7ff;
}

.trust-icon.purple {
  color: #9a31ef;
}

.virtual-card {
  margin-top: 26px;
  padding: 18px 20px 0;
  display: grid;
  grid-template-columns: 1fr 210px;
  align-items: end;
  overflow: hidden;
}

.virtual-copy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.virtual-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #184fd7;
  font-size: 22px;
}

.virtual-copy h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.virtual-copy h3 span,
.tiny-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  color: #fff;
  background: #16b35a;
  vertical-align: middle;
}

.virtual-copy p,
.mini-card p,
.join-card p,
.doctor-copy p,
.doctor-copy span,
.blog p,
.app p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.mini-gradient-btn,
.gradient-btn,
.join-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 10px 24px rgba(110, 70, 230, 0.25);
  cursor: pointer;
}

.mini-gradient-btn {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.search-panel {
  padding: 16px 18px;
  height: 370px;
  border-radius: 18px;
}

.search-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: 0;
  background: transparent;
  padding: 10px 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #243253;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: #1d5fff;
  border-bottom-color: #1d5fff;
}

.field {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b879b;
  background: #fff;
}

.field.full {
  margin-top: 20px;
}

.field input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: #364152;
  background: transparent;
}

.field select {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: #364152;
  background: transparent;
  appearance: none;
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.gradient-btn {
  min-height: 42px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
}

.search-btn {
  width: 100%;
  margin-top: 12px;
}

.popular-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: #475467;
}

.popular-row strong {
  color: #2d3446;
}

.popular-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f5ff;
  color: #3e4f78;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popular-row span:hover {
  background: #e5ecff;
  color: #1f3fa8;
}

.autocomplete-dropdown {
  position: relative;
  z-index: 20;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(20, 38, 92, 0.09);
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.quick-services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini-card {
  min-height: 126px;
  padding: 12px 10px;
  display: flex;
  gap: 12px;
}

.mini-card h4,
.join-card h4,
.doctor-copy h4,
.blog h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.mini-card a {
  display: inline-block;
  margin-top: 12px;
  color: #275cff;
}

.purple-tone .mini-badge,
.purple-tone i:first-child { color: #9349f2; }
.green-tone .mini-badge,
.green-tone i:first-child { color: #17a55d; }
.blue-tone .mini-badge,
.blue-tone i:first-child { color: #245cff; }
.orange-tone .mini-badge,
.orange-tone i:first-child { color: #ef9520; }
.pink-tone .mini-badge,
.pink-tone i:first-child { color: #eb4098; }
.cyan-tone .mini-badge,
.cyan-tone i:first-child { color: #2eb3b7; }

.status-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 12px;
  margin-top: 12px;
}

.queue-card,
.clinic-card,
.specializations,
.choose,
.connect,
.blog,
.app,
.trust-panel {
  padding: 14px;
  height: 100%;
  border-radius: 16px;
}

.top-doctors {
  padding: 14px;
  border-radius: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h3,
.clinic-card h3,
.connect h2,
.app h3,
.trust-panel h3 {
  margin: 0;
  font-size: 15px;
  color: #18358d;
}

.section-head a {
  font-size: 13px;
  font-weight: 600;
  color: #295cff;
}

.live {
  font-size: 12px;
  color: #18a34a;
}

.queue-top {
  display: grid;
  grid-template-columns: 155px 1fr 185px;
  gap: 12px;
  margin-top: 10px;
}

.queue-top img {
  border-radius: 12px;
  height: 92px;
  object-fit: cover;
}

.queue-main h4 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.queue-main p,
.queue-depts div {
  margin: 0;
  font-size: 13px;
  color: #475467;
}

.queue-depts {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.queue-depts h5 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #3150a5;
}

.queue-depts div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.queue-depts span {
  display: inline-flex;
  gap: 6px;
}

.ok {
  color: #17a34a;
}

.warn {
  color: #ef9a1d;
}

.stats-row,
.impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stats-row div,
.impact-row div {
  display: grid;
  gap: 4px;
  color: #2147b5;
}

.stats-row strong,
.impact-row strong {
  font-size: 36px;
  color: #1d45b5;
}

.stats-row span,
.impact-row span {
  font-size: 13px;
  color: var(--muted);
}

.queue-actions {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin-top: 12px;
}

.outline-btn {
  border: 1px solid #bccaf3;
  background: #fff;
  color: #2648b9;
  font-size: 15px;
  font-weight: 600;
  min-height: 54px;
}

.clinic-card h3 span {
  font-weight: 600;
}

.clinic-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.clinic-layout ul,
.trust-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinic-layout li,
.trust-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #475467;
}

.clinic-layout img {
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.compact-btn {
  width: 180px;
  margin-top: 10px;
  font-size: 16px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 12px;
  margin-top: 22px;
}

.spec-grid div {
  text-align: center;
}

.spec {
  margin: 0 auto 8px;
}

.spec-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.spec.red { color: #ef415a; }
.spec.orange { color: #f39d18; }
.spec.blue { color: #275bff; }
.spec.sky { color: #5d84ff; }
.spec.pink { color: #ea469d; }
.spec.violet { color: #7e54f4; }
.spec.teal { color: #1f8f8d; }
.spec.purple { color: #924ced; }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.doctor-card {
  overflow: hidden;
}

.doctor-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center top;
}

.doctor-copy {
  padding: 8px 10px;
}

.doctor-copy small {
  display: block;
  margin: 4px 0;
  color: #d2941f;
  font-size: 11px;
}

.doctor-copy span {
  display: block;
}

.doctor-copy .outline-btn {
  width: 100%;
  margin-top: 8px;
}

.connect {
  margin-top: 12px;
}

.connect h2 {
  font-size: 20px;
}

.connect > p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.join-card {
  padding: 12px;
}

.join-card > i {
  font-size: 34px;
}

.join-btn {
  width: 100%;
  margin-top: 14px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.purple-btn { background: linear-gradient(90deg, #2d63ff, #7132eb); }
.blue-btn { background: linear-gradient(90deg, #1f64ff, #2a4ad5); }
.green-btn { background: linear-gradient(90deg, #18a860, #108052); }
.orange-btn { background: linear-gradient(90deg, #ff9917, #f56e00); }
.pink-btn { background: linear-gradient(90deg, #ff5aa6, #f4458f); }

.impact-row {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 10px;
}

.bottom-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.connect,
.blog,
.app,
.trust-panel {
  height: 100%;
}

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

.blog-grid img {
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
}

.blog-grid article h4 {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.blog-grid article p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.app-layout {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 12px;
}

.app-side {
  display: grid;
  gap: 10px;
}

.qr-box {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  border: 2px solid #111827;
  background:
    linear-gradient(90deg, #111 12%, transparent 12% 24%, #111 24% 36%, transparent 36% 48%, #111 48% 60%, transparent 60% 72%, #111 72% 84%, transparent 84%),
    linear-gradient(#111 12%, transparent 12% 24%, #111 24% 36%, transparent 36% 48%, #111 48% 60%, transparent 60% 72%, #111 72% 84%, transparent 84%);
  background-size: 18px 18px;
}

.store-btn {
  border: 0;
  background: #111827;
  color: #fff;
  min-height: 42px;
  font-size: 13px;
}

.app-layout img {
  width: 220px;
  justify-self: end;
}

.trust-panel {
  display: grid;
}

.trust-panel img {
  width: 132px;
  justify-self: end;
  align-self: end;
}

.trust-panel i {
  color: #18a34a;
}

.site-footer {
  background: linear-gradient(180deg, #0d46ba 0%, #062d87 100%);
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 290px repeat(4, 1fr);
  gap: 28px;
  padding: 24px 0 26px;
}

.footer-brand img {
  width: 170px;
  margin-bottom: 10px;
}

.footer-brand p,
.footer-links a,
.footer-help p,
.footer-help span {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links h4,
.footer-help h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-help strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 26px;
}

/* Old index footer style (used in index.jsp) */
.legacy-footer {
  margin-top: 22px;
  background: linear-gradient(110deg, #4f6fe8 0%, #6358d8 45%, #6e4fcb 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px 0 12px;
}

.legacy-footer .footer-description {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.45;
  max-width: 420px;
  margin: 10px 0 12px;
  font-weight: 500;
}

.legacy-footer .footer-heading {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
}

.legacy-footer .footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.legacy-footer .footer-links li {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.4;
}

.legacy-footer .footer-links a,
.legacy-footer .footer-links span {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.legacy-footer .footer-links a:hover {
  color: #ffffff !important;
}

.legacy-footer .social-icons {
  display: flex;
  gap: 10px;
}

.legacy-footer .social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.legacy-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 14px;
  padding-top: 10px;
  text-align: left;
}

.legacy-footer .footer-bottom p,
.legacy-footer .footer-bottom span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  margin: 0;
}
.legacy-footer .footer-logo > span { color: #ffffff; }
.legacy-footer .footer-links i { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 1280px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(1180px, calc(100% - 28px));
  }

  .hero {
    grid-template-columns: 1fr 1.12fr;
  }

  .hero-left h1 {
    font-size: 52px;
  }

  .hero-left > p {
    font-size: 22px;
  }

  .quick-services,
  .connect-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ===== Why choose UbiqCure benefits list ===== */
.why-list {
  list-style: none;
  padding: 8px 4px 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid #eef2f7;
}
.why-list li:last-child {
  border-bottom: none;
}
.why-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(34, 197, 94, 0.22);
}
.why-text {
  color: #1a2547;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.1px;
}
