/* =====================================================================
   TeleHealth public site - shared stylesheet.

   Used by every patient-facing page EXCEPT Default.aspx and Register.aspx,
   which already carry their own embedded <style> blocks from an earlier
   round and were left as-is to avoid touching working pages. The design
   tokens below (colors, radius, shadow) intentionally match those two
   pages' :root values exactly, so a visitor moving between Default.aspx/
   Register.aspx and any page that links this file sees one consistent
   site, not two different-looking halves.

   Reference it from a page's <head> with:
     <link runat="server" href="~/Content/site.css" rel="stylesheet" />
   (runat="server" lets ASP.NET resolve the ~ path whether the page lives
   at the site root or one folder down, e.g. PatientAccount/Dashboard.aspx).
   ===================================================================== */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --navy: #0f2148;
    --navy-light: #1a2f5c;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: #fff;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAVBAR ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.brand .brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem;
}
.brand span.accent { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-weight: 600; font-size: 0.95rem; color: var(--gray-700);
    padding: 8px 2px; border-bottom: 2px solid transparent; transition: all .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 0.92rem;
    border: none; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(13,148,136,0.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: rgba(13,148,136,0.08); }
.btn-ghost { background: transparent; color: var(--gray-600); font-weight: 600; font-size: 0.88rem; }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--navy); cursor: pointer; }

.mobile-nav { display: none; background: #fff; border-bottom: 1px solid var(--gray-200); padding: 10px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; font-weight: 600; font-size: 0.95rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .mobile-nav-actions { display: flex; gap: 10px; padding: 16px 24px 0; }
.mobile-nav .mobile-nav-actions .btn { flex: 1; }

/* ---------- PAGE HERO (mini banner for inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #133a5e 100%);
    color: #fff; padding: 56px 0;
}
.page-hero::before {
    content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(45,212,191,0.2), transparent 70%);
    top: -180px; right: -100px;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 600; margin-bottom: 10px; }
.page-hero .crumb a { color: rgba(255,255,255,0.85); }
.page-hero .crumb a:hover { color: var(--primary-light); }
.page-hero h1 { font-size: 2.1rem; font-weight: 800; margin: 0 0 10px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1rem; line-height: 1.7; margin: 0; max-width: 640px; }

/* ---------- SECTIONS / HEADS ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--gray-50); }
.section.tight { padding: 36px 0; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.sec-head p { color: var(--gray-600); line-height: 1.7; font-size: 0.95rem; margin: 0; }

/* ---------- STAT STRIP ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.stat-box { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-box .num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.stat-box .lbl { font-size: 0.78rem; color: var(--gray-500); font-weight: 600; margin-top: 4px; }
@media (max-width: 768px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FILTER BAR ---------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 18px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.filter-field { flex: 1; min-width: 160px; }
.filter-field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.filter-field .form-control, .filter-field select.form-control { width: 100%; }
.filter-actions { display: flex; gap: 8px; }

/* ---------- FORM CONTROLS (shared with Register.aspx's own copies) ---------- */
.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid var(--gray-200); border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #fff; transition: all .15s ease;
}
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(13,148,136,0.14); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.field-error { color: var(--danger); font-size: 11.5px; margin-top: 5px; display: block; }
.required-mark { color: var(--danger); margin-left: 2px; }

.alert-box { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert-danger { background: #fdecea; color: #b91c1c; }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-info { background: #eff6ff; color: #1d4ed8; }
.alert-warning { background: #fffbeb; color: #92400e; }

/* ---------- CARD GRID (directory listings) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 992px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.listing-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 22px; transition: all .2s ease; display: flex; flex-direction: column; gap: 10px;
}
.listing-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); transform: translateY(-3px); }
.listing-top { display: flex; align-items: center; gap: 14px; }
.listing-avatar {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.1rem;
}
.listing-name { font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.listing-sub { font-size: 0.82rem; color: var(--primary-dark); font-weight: 600; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--gray-600); }
.listing-meta span { display: flex; align-items: center; gap: 5px; }
.listing-meta i { color: var(--primary); width: 14px; text-align: center; }
.listing-desc { font-size: 0.86rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.listing-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.listing-price { font-weight: 800; color: var(--navy); font-size: 1rem; }
.listing-price small { font-weight: 600; color: var(--gray-400); font-size: 0.72rem; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-green { background: #ecfdf5; color: #047857; }
.badge-amber { background: #fffbeb; color: #92400e; }
.badge-red { background: #fdecea; color: #b91c1c; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-blue { background: #eff6ff; color: #1d4ed8; }

.rating-stars { color: #f59e0b; font-size: 0.8rem; }

/* ---------- EMPTY STATE ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--gray-400); grid-column: 1 / -1; }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: 12px; opacity: .5; }
.empty-state p { margin: 0; font-size: 0.92rem; }

/* ---------- PAGINATION ---------- */
.pagination-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; gap: 12px; }
.pagination-bar .page-info { font-size: 0.85rem; color: var(--gray-500); }
.pagination-bar .page-buttons { display: flex; gap: 8px; }

/* ---------- SIMPLE ROW LIST (bills, orders, appointments) ---------- */
.row-list { display: flex; flex-direction: column; gap: 12px; }
.row-item {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px 18px;
}
.row-item .ri-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    background: rgba(13,148,136,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.row-item .ri-main { flex: 1; min-width: 200px; }
.row-item .ri-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.row-item .ri-sub { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.row-item .ri-amount { font-weight: 800; color: var(--navy); font-size: 1rem; text-align: right; }
.row-item .ri-actions { display: flex; gap: 8px; }

/* ---------- SIMPLE CARD (auth panels / static content) ---------- */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* ---------- AUTH PANEL (Login.aspx layout, matches Register.aspx) ---------- */
.page-wrap { min-height: 100vh; display: flex; align-items: stretch; }
.brand-panel {
    flex: 0 0 42%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #133a5e 100%);
    color: #fff; padding: 48px 44px; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.brand-panel::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,0.22), transparent 70%); top: -140px; right: -120px; }
.brand-panel::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,0.25), transparent 70%); bottom: -140px; left: -100px; }
.brand-panel .brand { position: relative; z-index: 2; margin-bottom: 46px; }
.brand-copy { position: relative; z-index: 2; margin-top: auto; margin-bottom: auto; }
.brand-copy h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin: 0 0 16px; }
.brand-copy p { color: rgba(255,255,255,0.78); font-size: 0.98rem; line-height: 1.7; margin: 0 0 30px; max-width: 380px; }
.benefit-list { display: flex; flex-direction: column; gap: 16px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.88); }
.benefit-list li i { color: var(--primary-light); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.brand-foot { position: relative; z-index: 2; font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 30px; }
.form-panel-outer { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.form-panel-inner { width: 100%; max-width: 440px; }
.form-head { margin-bottom: 26px; }
.form-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.form-head p { font-size: 0.92rem; color: var(--gray-500); margin: 0; }
.form-head p a { color: var(--primary); font-weight: 700; }
.btn-submit { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 0.98rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s ease; }
.btn-submit:hover { background: var(--primary-dark); }
.back-home { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gray-500); font-weight: 600; margin-top: 22px; }
.back-home:hover { color: var(--primary); }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 12.5px; color: var(--gray-600); }
.remember-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.remember-row a { color: var(--primary); font-weight: 700; }
@media (max-width: 900px) {
    .page-wrap { flex-direction: column; }
    .brand-panel { flex: none; padding: 36px 28px; }
    .brand-copy h1 { font-size: 1.5rem; }
    .benefit-list { display: none; }
}

/* ---------- CTA BANNER ---------- */
.cta-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: 24px; padding: 46px; display: flex; align-items: center; justify-content: space-between; color: #fff; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.94rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- PROSE (About / Terms / Privacy) ---------- */
.prose h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 30px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 0.92rem; line-height: 1.8; color: var(--gray-600); margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.prose li { font-size: 0.92rem; line-height: 1.8; color: var(--gray-600); margin-bottom: 6px; }
.prose .updated-note { font-size: 0.82rem; color: var(--gray-400); margin-bottom: 26px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.footer-social a:hover { background: var(--primary); }
.footer-col h5 { color: #fff; font-size: 0.92rem; font-weight: 700; margin: 0 0 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.65); transition: color .15s ease; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.87rem; margin-bottom: 14px; color: rgba(255,255,255,0.65); }
.footer-col .contact-item i { color: var(--primary-light); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 0.8rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-outline, .nav-actions .btn-ghost { display: none; }
    .mobile-toggle { display: block; }
    .page-hero h1 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
