/* ═══════════════════════════════════════════════════════════
   MedicareSoft – Custom CSS
   Fonts: Lexend (Google Fonts)
═══════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --primary:        #0A9ED9;
  --primary-dark:   #0882B5;
  --primary-darker: #065E8A;
  --primary-light:  #38B4E4;
  --primary-bg:     #E8F6FD;
  --accent:         #FF6535;
  --accent-dark:    #E5502A;
  --accent-bg:      #FFF0EB;
  --dark:           #0D1B2A;
  --dark2:          #1A2E42;
  --text:           #0F172A;
  --text-gray:      #475569;
  --text-muted:     #94A3B8;
  --border:         #E2E8F0;
  --bg-light:       #F8FAFC;
  --white:          #FFFFFF;
  --success:        #10B981;
  --warning:        #F59E0B;
  --radius:         0.75rem;
  --radius-lg:      1.25rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.12);
  --shadow-primary: 0 8px 32px rgba(10,158,217,.25);
}

/* ─── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lexend', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity .6s ease, transform .6s ease; }
.reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
#navbar.transparent { background: transparent; }
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-gray);
  transition: color .2s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(10,158,217,.35);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255,101,53,.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(255,101,53,.4);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-bg);
}
.btn-ghost {
  color: var(--text-gray);
  background: transparent;
}
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .83rem; }

/* ─── Section Titles ─────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  font-size: .8rem;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.22;
  letter-spacing: -.03em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 580px;
  line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #5BD8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(10,158,217,.2);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background .2s;
}
.card:hover .card-icon { background: var(--primary); color: #fff; }

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(145deg, #fff 0%, #EFF9FF 60%, #E3F5FC 100%);
  position: relative;
  overflow: hidden;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10,158,217,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

/* ─── Dashboard Mockup (Hero) ────────────────────────────── */
.mockup-wrapper {
  position: relative;
  perspective: 900px;
}
.mockup-card {
  background: var(--dark);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.07);
  animation: float 5s ease-in-out infinite;
}
.mockup-topbar {
  background: #1A2E42;
  padding: .5rem .8rem;
  display: flex; align-items: center; gap: .4rem;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-sidebar {
  background: #152436;
  width: 52px;
  display: flex; flex-direction: column; align-items: center;
  padding: .6rem 0; gap: .5rem;
}
.mockup-sidebar-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  transition: background .2s;
}
.mockup-sidebar-icon.active {
  background: var(--primary);
  color: #fff;
}
.mockup-main { flex: 1; padding: .7rem; background: #0D1B2A; }
.mockup-stat-card {
  background: #1A2E42;
  border-radius: 8px;
  padding: .5rem .6rem;
  border: 1px solid rgba(255,255,255,.05);
}
.mockup-stat-label { font-size: .6rem; color: rgba(255,255,255,.4); margin-bottom: .1rem; }
.mockup-stat-value { font-size: .9rem; font-weight: 700; color: #fff; }
.mockup-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.mockup-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.mockup-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .55rem;
  font-weight: 600;
}
.badge-green  { background: rgba(16,185,129,.15); color: #10B981; }
.badge-blue   { background: rgba(10,158,217,.15);  color: var(--primary-light); }
.badge-orange { background: rgba(245,158,11,.15);  color: #F59E0B; }

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 1.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
}

/* ─── Feature Cards ──────────────────────────────────────── */
.feature-card {
  padding: 1.5rem;
  cursor: default;
}
.feature-card:hover { cursor: default; }

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-card { padding: 2rem; position: relative; }
.pricing-card.featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-primary), var(--shadow-lg);
}
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-name { color: #fff; }
.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,.8); }
.pricing-card.featured .pricing-divider { border-color: rgba(255,255,255,.2); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-check { color: var(--success); }
.pricing-card.featured .pricing-check { color: #A7F3D0; }
.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .85rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stars { color: #FBBF24; letter-spacing: 2px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ─── Carousel ───────────────────────────────────────────── */
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.25,.8,.25,1); }
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray);
  transition: all .2s;
}
.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer-main { background: var(--dark); color: rgba(255,255,255,.65); }
.footer-title { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.footer-link {
  display: block;
  font-size: .88rem;
  padding: .22rem 0;
  color: rgba(255,255,255,.55);
  transition: color .2s, padding-left .2s;
}
.footer-link:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.07);
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  transition: all .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,158,217,.12);
}
.form-control.error { border-color: var(--error-color, #EF4444); }
.form-error { font-size: .8rem; color: #EF4444; margin-top: .3rem; }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.2rem; padding-right: 2rem; }

/* ─── Step Indicator ─────────────────────────────────────── */
.step-item { position: relative; }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  color: var(--text-muted);
  transition: all .3s;
  z-index: 1;
  position: relative;
}
.step-circle.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10,158,217,.18);
}
.step-circle.done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-line {
  height: 2px;
  flex: 1;
  background: var(--border);
  transition: background .3s;
}
.step-line.done { background: var(--success); }

/* ─── Admin Layout ───────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--dark);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-content { margin-left: 240px; flex: 1; background: #F1F5F9; min-height: 100vh; }
.admin-nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.2rem;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  border-radius: 8px;
  margin: .1rem .5rem;
  transition: all .2s;
}
.admin-nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.stat-card-admin {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.status-badge {
  display: inline-flex; align-items: center;
  padding: .25rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.status-pending  { background: #FEF3C7; color: #92400E; }
.status-contacted{ background: #DBEAFE; color: #1E40AF; }
.status-active   { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-new      { background: #FEE2E2; color: #991B1B; }
.status-read     { background: #E0F2FE; color: #075985; }
.status-replied  { background: #D1FAE5; color: #065F46; }

/* ─── Mobile Menu ────────────────────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13,27,42,.55);
  backdrop-filter: blur(4px);
}
#mobile-menu.open { display: flex; }
#mobile-menu-panel {
  background: var(--white);
  width: 280px;
  height: 100%;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
}
#mobile-menu.open #mobile-menu-panel { transform: translateX(0); }

/* ─── Tabs ───────────────────────────────────────────────── */
.tab-btn {
  padding: .55rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-gray);
  transition: all .2s;
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.tab-btn:hover:not(.active) { background: var(--primary-bg); color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── FAQ Accordion ──────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  gap: 1rem;
  color: var(--text);
  transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
  color: var(--primary);
  transition: transform .3s, background .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  color: var(--text-gray);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 1rem; }

/* ─── User Guide Sidebar ─────────────────────────────────── */
.guide-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg-light);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 1.2rem;
}
.guide-nav-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  font-size: .87rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: all .2s;
}
.guide-nav-item:hover { background: var(--primary-bg); color: var(--primary); }
.guide-nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ─── Alert / Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: #EF4444; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .pricing-card.featured { transform: scale(1); }
}
@media (max-width: 767px) {
  .section-title { font-size: 1.65rem; }
  .guide-sidebar { display: none; }
}
