﻿/* =========================================================
   Clayton Pharmacy — Design Tokens (matched to logo: blue #2c86c0 + teal #4ac0b4)
   ========================================================= */
:root {
    --navy-dark: #0b2d42;
    --navy: #12456a;
    --blue: #2c86c0;
    --blue-dark: #1f6c9f;
    --blue-soft: #e8f3fa;
    --teal: #4ac0b4;
    --teal-dark: #2a9d91;
    --teal-soft: #e6f6f4;
    --bg: #f3f7f9;
    --card: #ffffff;
    --border: #e9ebf2;
    --text: #1b2436;
    --text-muted: #6b7585;
    --green: #1fa971;
    --green-soft: #e7f8ef;
    --red: #e23b3b;
    --red-soft: #fdecec;
    --amber: #f5a524;
    --amber-soft: #fef3e2;
    --purple: #7c5cf0;
    --purple-soft: #f1edfd;
    --cyan: #2c86c0;
    --cyan-soft: #e6f7fb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
    --shadow-md: 0 8px 28px rgba(20, 30, 60, 0.10);
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--blue); }
h1, h2, h3 { font-weight: 700; color: var(--navy); margin: 0 0 8px; }
p { margin: 0 0 12px; }

/* ===== Public Top bar ===== */
.top-bar { background: linear-gradient(90deg, var(--navy-dark), var(--navy)); color: #cfe3ee; font-size: 13px; }
.top-bar i { color: var(--teal); margin-right: 4px; }
.top-bar-inner { display: flex; gap: 24px; padding: 7px 0; align-items: center; }
.top-bar-right { margin-left: auto; }
.top-bar a { color: #cfe3ee; }
.top-bar a:hover { color: #fff; }

/* ===== Public Header ===== */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--blue); }
.brand img { height: 46px; width: auto; display: block; }
.main-nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.main-nav > a { color: var(--navy); font-weight: 600; padding: 6px 0; font-size: 14.5px; }
.main-nav > a:hover { color: var(--blue); }
.dropdown { position: relative; padding: 10px 0; }
.dropdown > a { color: var(--navy); font-weight: 600; font-size: 14.5px; }
/* Menu sits directly under the trigger (no gap), with a short close delay so
   the mouse can travel from "Consultancy Forms" into the list without it closing. */
.dropdown-menu {
    display: block; visibility: hidden; opacity: 0; transform: translateY(6px);
    position: absolute; top: 100%; left: 0; background: #fff;
    box-shadow: var(--shadow-md); border-radius: var(--radius-sm); min-width: 260px; padding: 8px 0; z-index: 200;
    border: 1px solid var(--border); border-top: 3px solid var(--teal);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .25s;
}
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--navy); font-weight: 500; font-size: 14px; }
.dropdown-menu a:hover { background: var(--blue-soft); color: var(--blue); }

/* ===== Hamburger (mobile) ===== */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-toggle span {
    display: block; width: 24px; height: 2.5px; background: var(--navy);
    border-radius: 2px; transition: all 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 40px 0; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; flex-direction: column; align-items: flex-start; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        padding: 12px 20px 20px; border-top: 1px solid var(--border);
        z-index: 999;
    }
    .main-nav.open { display: flex; }
    .main-nav > a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 15px; }
    .dropdown { width: 100%; padding: 0; }
    .dropdown > a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 15px; }
    .dropdown-menu {
        position: static; box-shadow: none; border: none; border-radius: 0;
        padding: 0 0 0 16px; background: transparent; display: block !important;
        visibility: visible; opacity: 1; transform: none; transition: none; border-top: none;
    }
    .dropdown-menu::before { display: none; }
    .dropdown-menu a { border-bottom: 1px solid #f0f2f8; padding: 10px 0; font-size: 14px; }
    .main-nav a.nav-login-btn,
    .main-nav a.nav-login-btn:visited {
        margin-top: 14px; width: 100%; justify-content: center !important;
        border-bottom: none !important;
    }
}

/* ===== Hero Slider ===== */
.hero-slider { position: relative; overflow: hidden; height: 460px; background: var(--navy-dark); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(11,45,66,0.85), rgba(44,134,192,0.35)); }
.hero-slide-content { position: relative; z-index: 2; color: #fff; max-width: 620px; padding: 0 60px; }
.hero-slide-content h2 { font-size: 38px; color: #fff; margin-bottom: 12px; }
.hero-slide-content p { font-size: 17px; color: #dfe5fb; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; z-index: 3; }
.hero-dots span {
    display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.45);
    margin: 0 5px; cursor: pointer;
}
.hero-dots span.active { background: #fff; }

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 30px; }
.section-title p { color: var(--text-muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.svc-card {
    background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
    text-align: center; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--border);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card i { font-size: 32px; color: var(--teal-dark); margin-bottom: 14px; }
.svc-card a.btn-link,
.svc-card span.btn-link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--blue); cursor: pointer; }

/* ===== Nav Login Button ===== */
.main-nav a.nav-login-btn,
.main-nav a.nav-login-btn:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #4ac0b4 0%, #2a9d91 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 11px 26px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(42,157,145,0.45) !important;
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s !important;
    white-space: nowrap !important;
}
.main-nav a.nav-login-btn:hover {
    filter: brightness(1.05) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(42,157,145,0.55) !important;
}
.main-nav a.nav-login-btn i { font-size: 17px !important; }

/* ===== Floating Sign In (mobile only) ===== */
.float-login-btn { display: none; }
@media (max-width: 768px) {
    .float-login-btn {
        display: inline-flex; align-items: center; gap: 9px;
        position: fixed; right: 18px; bottom: 20px; z-index: 900;
        background: linear-gradient(135deg, #4ac0b4 0%, #2a9d91 100%);
        color: #fff !important; font-weight: 700; font-size: 16px;
        padding: 14px 24px; border-radius: 50px;
        box-shadow: 0 6px 22px rgba(42,157,145,0.5);
        text-decoration: none;
    }
    .float-login-btn:hover, .float-login-btn:active { filter: brightness(1.06); color: #fff !important; }
    .float-login-btn i { font-size: 17px; }
    /* hide the inline nav login button on mobile — floating one replaces it */
    .main-nav a.nav-login-btn { display: none !important; }
}

/* ===== Dropdown menu icons ===== */
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--navy); font-weight: 500; font-size: 14px; }
.dropdown-menu a i { width: 18px; text-align: center; color: var(--blue); font-size: 13px; }

/* ===== Form Entry Modal animation ===== */
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.form-entry-modal-box { animation: modalSlideIn 0.22s ease; }

/* ===== Buttons ===== */
.btn {
    display: inline-block; background: var(--blue); color: #fff; padding: 11px 24px; border-radius: var(--radius-sm);
    font-weight: 600; border: none; cursor: pointer; font-size: 14.5px; transition: background 0.15s;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-secondary { background: var(--navy); }
.btn-secondary:hover { background: var(--navy-dark); }
.btn-success { background: var(--green); }
.btn-success:hover { background: #178a5d; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #c92e2e; }
.btn-light { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-light:hover { background: #f7f8fb; }
.btn-small { padding: 6px 13px; font-size: 13px; border-radius: 6px; }

/* ===== Forms (public + auth) ===== */
.form-card { background: var(--card); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; border: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 13.5px; }
.form-control {
    width: 100%; padding: 10px 13px; border: 1px solid #dde1ea; border-radius: var(--radius-sm); font-size: 14px;
    background: #fbfcfe; color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.form-control:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* Inline checkbox + label (works with asp:CheckBox Text="..." auto-rendered label) */
.form-check {
    display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.form-check input[type="checkbox"] {
    width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; margin: 0;
}
.form-check label { margin: 0; font-weight: 500; color: var(--text); font-size: 14px; cursor: pointer; }

.yn-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.yn-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.yn-table td.q { width: 65%; font-size: 14.5px; }
.yn-radio-group { display: flex; gap: 18px; align-items: center; }
.yn-radio-group label { font-weight: 400; margin: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.yn-radio-group input[type="radio"] { accent-color: var(--blue); cursor: pointer; margin: 0; }

.section-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; background: var(--card); }
.section-block h3 { font-size: 17px; margin-top: 0; border-bottom: 2px solid var(--teal); padding-bottom: 8px; margin-bottom: 16px; color: var(--navy); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: #157a4f; border-color: #b9e6cd; }
.alert-error { background: var(--red-soft); color: #b3261e; border-color: #f6c7c2; }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); border-color: #bfdcee; }

/* ===== Auth (Login / Register) — full-screen split ===== */
.auth-page { display: flex; min-height: 100vh; font-family: 'Inter', sans-serif; }

/* ── Left brand panel ── */
.auth-brand-panel {
    flex: 0 0 44%; display: flex; flex-direction: column;
    background: linear-gradient(145deg, var(--navy-dark) 0%, #12456a 55%, var(--blue) 100%);
    padding: 52px 56px; overflow: hidden; position: relative;
}
.auth-brand-panel::before {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.auth-brand-panel::after {
    content: ""; position: absolute; left: -60px; bottom: -60px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.auth-brand-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: auto;
    font-size: 20px; font-weight: 800; color: #fff; position: relative; z-index: 1;
}
.auth-brand-logo .logo-icon {
    width: 42px; height: 42px; background: rgba(255,255,255,0.12);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0;
    backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15);
}
.auth-brand-body { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; }
.auth-brand-body h1 {
    color: #fff; font-size: 32px; font-weight: 800; line-height: 1.25;
    margin: 0 0 14px; letter-spacing: -0.4px;
}
.auth-brand-body h1 span { color: #7fdcd1; }
.auth-brand-body p { color: #cfe6f2; font-size: 15px; line-height: 1.65; margin: 0 0 28px; }
.auth-features { list-style: none; padding: 0; margin: 0; }
.auth-features li {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08); color: #e0e8ff; font-size: 14px;
}
.auth-features li:last-child { border-bottom: none; }
.auth-features .feat-icon {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #7fdcd1; flex-shrink: 0;
}
.auth-brand-foot { margin-top: auto; color: #8a9cce; font-size: 12.5px; position: relative; z-index: 1; }

/* ── Right form panel ── */
.auth-form-panel {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: var(--bg); padding: 48px 32px;
}
.auth-form-card {
    width: 100%; max-width: 420px;
    background: var(--card); border-radius: 18px;
    padding: 44px 40px; border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(20, 30, 70, 0.09);
}
.auth-form-card .form-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--blue-soft); display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--blue); margin-bottom: 20px;
}
.auth-form-card h2 {
    font-size: 23px; font-weight: 800; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.2px;
}
.auth-form-card .auth-subtitle { color: var(--text-muted); font-size: 14px; margin: 0 0 28px; line-height: 1.5; }

.auth-form-card .form-group { margin-bottom: 20px; }
.auth-form-card .form-group label {
    display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px;
}
.auth-form-card .form-control {
    height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
    padding: 0 14px 0 40px; font-size: 14.5px; width: 100%; background: var(--bg);
    transition: border-color 0.18s, box-shadow 0.18s; color: var(--text);
}
.auth-form-card .form-control:focus {
    border-color: var(--blue); background: #fff;
    box-shadow: 0 0 0 3px rgba(44,134,192,0.12); outline: none;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap .input-icon-glyph {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #9ba8c4; font-size: 14px; pointer-events: none;
}
.auth-input-wrap .eye-toggle {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #9ba8c4;
    font-size: 14px; padding: 0; line-height: 1;
}
.auth-input-wrap .eye-toggle:hover { color: var(--blue); }

.auth-robot-row {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); cursor: pointer; user-select: none;
    transition: border-color 0.15s, background 0.15s; margin-bottom: 22px;
}
.auth-robot-row:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.auth-robot-row input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--blue);
    cursor: pointer; flex-shrink: 0; margin: 0;
}
.auth-robot-row .robot-label { font-size: 14px; color: var(--text); font-weight: 500; flex: 1; }
.auth-robot-row .robot-icon { color: #9ba8c4; font-size: 22px; }

.auth-submit-btn {
    width: 100%; height: 48px; border-radius: var(--radius-sm);
    background: var(--blue); color: #fff; border: none; font-size: 15px;
    font-weight: 700; cursor: pointer; letter-spacing: 0.2px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.auth-submit-btn:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(44,134,192,0.3); }
.auth-submit-btn:active { transform: scale(0.98); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-link-row { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 20px; }
.auth-link-row a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-link-row a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .auth-brand-panel { flex: 0 0 40%; padding: 40px 36px; }
    .auth-brand-body h1 { font-size: 27px; }
}
@media (max-width: 720px) {
    .auth-page { flex-direction: column; }
    .auth-brand-panel { flex: none; padding: 30px 28px 28px; }
    .auth-brand-body { margin: 0; }
    .auth-brand-body h1 { font-size: 23px; }
    .auth-brand-body p, .auth-features { display: none; }
    .auth-brand-foot { display: none; }
    .auth-form-panel { padding: 28px 16px 40px; }
    .auth-form-card { padding: 32px 24px; border-radius: 14px; }
}
@media (max-width: 400px) {
    .auth-form-card { padding: 26px 18px; }
}

/* ===== Tables / dashboards ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.data-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f9fafd; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: var(--green-soft); color: #157a4f; }
.badge-danger { background: var(--red-soft); color: #b3261e; }
.badge-warning { background: var(--amber-soft); color: #9a6307; }
.badge-muted { background: #f0f1f5; color: var(--text-muted); }

.stats { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.stat-card {
    background: var(--card); border-radius: var(--radius); padding: 20px 22px; flex: 1; min-width: 170px;
    box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px;
}
.stat-icon {
    width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.cyan { background: var(--cyan-soft); color: var(--cyan); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.stat-sub { font-size: 12.5px; color: var(--text-muted); margin-top: -4px; }

/* ===== Dashboard shell (sidebar + topbar) ===== */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
    width: 250px; background: linear-gradient(170deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 125%);
    color: #cdd5f2; flex-shrink: 0; display: flex; flex-direction: column; padding-bottom: 20px;
}
.dash-sidebar .sidebar-brand {
    display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px;
    padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dash-sidebar .nav-section-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #9fadd9; font-weight: 700;
    padding: 18px 22px 8px;
}
.dash-sidebar a.nav-link {
    display: flex; align-items: center; gap: 11px; color: #d6dcf4; padding: 11px 22px; font-weight: 500; font-size: 14.5px;
    border-left: 3px solid transparent;
}
.dash-sidebar a.nav-link i { width: 18px; text-align: center; font-size: 14.5px; }
.dash-sidebar a.nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.dash-sidebar a.nav-link.active { background: rgba(255,255,255,0.14); color: #fff; border-left-color: var(--teal); font-weight: 700; }

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
    background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center;
    padding: 14px 28px; gap: 14px;
}
.dash-topbar .crumb-title { font-weight: 700; font-size: 16px; color: var(--navy); }
.dash-topbar .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.dash-topbar .user-chip { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--navy); }
.dash-topbar .user-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: flex;
    align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.dash-topbar .org-chip { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 7px; }
.dash-content-area { padding: 28px; flex: 1; }
.dash-content-area h2 { font-size: 22px; margin-bottom: 18px; }

.panel { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 24px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; margin-bottom: 16px; color: var(--navy); }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title-row .panel-title { margin-bottom: 0; }
.panel-title-row .btn-small { white-space: nowrap; }

.filter-bar { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar .form-group { margin-bottom: 0; min-width: 160px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c3d6e2; font-size: 14px; margin-top: 40px; padding: 24px 0; text-align: center; border-top: 3px solid var(--teal); }
.site-footer p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: 44px 20px 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: 0.02em; }
.footer-col p { margin: 0 0 9px; line-height: 1.55; }
.footer-col p i { color: var(--teal); width: 18px; }
.footer-logo { height: 50px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,0.12); padding-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; text-align: center; font-size: 13px; color: #8fb0c4; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 34px 20px 20px; } }

/* ===== Brand logo helpers ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 7px 12px; }
.sidebar-logo img { height: 38px; width: auto; display: block; }
.auth-card-logo { display: block; text-align: center; margin: -6px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.auth-card-logo img { height: 58px; width: auto; }

/* ===== Signature Pad ===== */
.sig-pad-wrap { border: 1.5px dashed #c7cee0; border-radius: var(--radius-sm); background: #fbfcfe; position: relative; }
.sig-pad-canvas { width: 100%; height: 160px; display: block; cursor: crosshair; touch-action: none; border-radius: var(--radius-sm); }
.sig-pad-toolbar { display: flex; justify-content: flex-end; padding: 6px 8px; border-top: 1px solid var(--border); }
.sig-pad-hint {
    position: absolute; bottom: 8px; left: 12px; color: #aab4c6; font-size: 12.5px; pointer-events: none;
}
.sig-pad-wrap.has-content .sig-pad-hint { display: none; }

/* ===== Multi-step Form (all sections stacked, tabs act as scroll-spy nav) ===== */
.wizard-tabs {
    display: flex; gap: 4px; overflow-x: auto; background: #fff; border-radius: 999px;
    border: 1px solid var(--border); padding: 6px; margin-bottom: 20px; box-shadow: var(--shadow);
    position: sticky; top: 76px; z-index: 40;
}
.wizard-tab {
    flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
    padding: 8px 16px 8px 8px; border-radius: 999px; border: none; background: transparent;
    color: var(--text-muted); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.wizard-tab .wizard-tab-num {
    width: 24px; height: 24px; border-radius: 50%; background: #eef0f5; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.wizard-tab:hover { background: #f3f4f8; }
.wizard-tab.active { background: var(--navy); color: #fff; }
.wizard-tab.active .wizard-tab-num { background: rgba(255,255,255,0.22); color: #fff; }
.wizard-tab.completed:not(.active) .wizard-tab-num { background: var(--green); color: #fff; }

.wizard-autosave {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--amber-soft);
    border: 1px solid #f5dba8; border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 24px; font-size: 13.5px; color: #8a5d07;
}
.wizard-autosave .btn-small { background: var(--navy); color: #fff; border: none; }
.wizard-autosave .btn-small:hover { background: var(--navy-dark); }

.wizard-section { scroll-margin-top: 150px; margin-bottom: 24px; }
.wizard-section-badge {
    display: inline-block; background: var(--amber); color: #fff; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 11px; border-radius: 999px; margin-right: 12px;
}
.wizard-section-header {
    background: var(--navy); color: #fff; border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 16px 20px;
    display: flex; align-items: center; font-weight: 700; font-size: 17px;
}
.wizard-section-body { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 24px; background: var(--card); }

.wizard-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

/* ===== Validation ===== */
.field-validator { display: none !important; }
.validation-summary { display: none !important; }
.form-control.field-invalid { border-color: var(--red); background: var(--red-soft); }
.required-mark { color: var(--red); margin-left: 2px; }

/* ===== PGD Form: print-style entry layout (mirrors the printed PDF) ===== */
.pgd-header { position: relative; padding: 18px 150px 18px 28px; margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.pgd-header::before { content: ""; position: absolute; top: 0; left: 0; width: 140px; height: 100%; background: linear-gradient(135deg, #2c86c0 0%, #3aa4ba 55%, #4ac0b4 100%); clip-path: polygon(0 0, 100% 0, 0 100%); }
.pgd-header .pgd-logo { position: absolute; top: 16px; right: 22px; text-align: right; }
.pgd-header .pgd-logo img { max-height: 46px; max-width: 150px; }
.pgd-header .pgd-logo .brand-text { font-weight: 800; font-size: 16px; color: #2a9d91; }
.pgd-header h2 { position: relative; margin: 0 0 4px; font-size: 19px; color: var(--navy); }
.pgd-header h2 .accent { color: #2a9d91; }
.pgd-header p { position: relative; margin: 0; font-size: 12.5px; font-style: italic; color: var(--text-muted); }

.pgd-section-title { font-size: 14.5px; font-weight: 700; background: #eef6f7; border-left: 4px solid #2a9d91; padding: 7px 12px; margin: 26px 0 10px; color: #145a63; border-radius: 4px; }
.pgd-section-title:first-of-type { margin-top: 0; }

.table-scroll { overflow-x: auto; margin-bottom: 10px; }
.table-scroll table.entry-grid th { width: auto; white-space: normal; }
.table-scroll table.entry-grid td { width: auto; }

table.entry-grid { width: 100%; border-collapse: collapse; margin-bottom: 10px; background: #fff; }
table.entry-grid th, table.entry-grid td { border: 1px solid var(--border); padding: 10px 12px; vertical-align: middle; font-size: 13px; }
table.entry-grid th { background: #f7f9fb; text-align: left; font-weight: 600; color: var(--navy); width: 20%; white-space: nowrap; }
table.entry-grid th.wide { white-space: normal; }
table.entry-grid td { width: 30%; }
table.entry-grid td.full { width: auto; }
table.entry-grid .form-control { margin: 0; background: #fff; min-width: 110px; }
table.entry-grid tr.sub-header th { background: #eef6f7; text-align: center; color: #145a63; white-space: normal; }

.pgd-foot-note { font-size: 11.5px; font-style: italic; color: var(--text-muted); margin: -2px 0 16px; }

.pgd-box-label { font-weight: 700; font-size: 13.5px; color: var(--navy); margin: 18px 0 6px; }
.pgd-box-label .hint { font-weight: 400; font-style: italic; color: var(--text-muted); font-size: 11.5px; display: inline; margin-left: 4px; }

@media (max-width: 700px) {
    table.entry-grid.stack-mobile, table.entry-grid.stack-mobile tbody, table.entry-grid.stack-mobile tr, table.entry-grid.stack-mobile th, table.entry-grid.stack-mobile td { display: block; width: 100% !important; }
    table.entry-grid.stack-mobile th { border-bottom: none; }
    table.entry-grid.stack-mobile td { border-top: none; margin-bottom: 6px; }
    .pgd-header { padding: 16px 16px 70px; }
    .pgd-header .pgd-logo { top: auto; bottom: 14px; right: 16px; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .dash-shell { flex-direction: column; }
    .dash-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 6px 0; }
    .dash-sidebar .sidebar-brand { display: none; }
    .dash-sidebar .nav-section-label { display: none; }
    .dash-sidebar a.nav-link { padding: 10px 16px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .dash-sidebar a.nav-link.active { border-left: none; border-bottom-color: #fff; }
}

@media (max-width: 768px) {
    .hero-slide-content { padding: 0 24px; }
    .hero-slide-content h2 { font-size: 26px; }
    .form-row { flex-direction: column; }
    .dash-content-area { padding: 18px; }
    .dash-topbar { padding: 12px 16px; flex-wrap: wrap; }
    .stats { gap: 12px; }
    .stat-card { min-width: 140px; }
    .yn-table, .yn-table tbody, .yn-table tr, .yn-table td { display: block; width: 100%; }
    .yn-table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
    .yn-table td.q { width: 100%; margin-bottom: 8px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-group { min-width: 0; }
}

@media (max-width: 480px) {
    .top-bar-inner { flex-wrap: wrap; gap: 10px; font-size: 12px; }
    .form-card { padding: 22px; }
    .auth-card { padding: 26px; }
}


/* =========================================================
   Clayton Pharmacy — Home page
   ========================================================= */
.cp-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(74,192,180,0.35) 0, transparent 45%),
                linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue) 100%);
    padding: 70px 0 110px;
}
.cp-cross { position: absolute; width: 120px; height: 120px; opacity: 0.08; pointer-events: none;
    background:
      linear-gradient(#fff,#fff) center/34% 100% no-repeat,
      linear-gradient(#fff,#fff) center/100% 34% no-repeat; border-radius: 10px; }
.cp-cross-1 { top: 30px; left: 46%; transform: rotate(12deg); }
.cp-cross-2 { bottom: 40px; left: -30px; width: 200px; height: 200px; transform: rotate(-10deg); }
.cp-cross-3 { top: -40px; right: -40px; width: 240px; height: 240px; opacity: 0.06; }
.cp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.cp-eyebrow i { color: var(--teal); }
.cp-hero h1 { color: #fff; font-size: 44px; line-height: 1.15; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 16px; }
.cp-hero h1 span { color: #8ae0d6; display: block; }
.cp-hero-text > p { color: #d3e6f1; font-size: 17px; max-width: 560px; margin-bottom: 26px; }
.cp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.cp-hero-actions .btn, .cp-account-cta .btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 50px; font-size: 15px; }
.cp-btn-teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); box-shadow: 0 6px 20px rgba(42,157,145,0.4); }
.cp-btn-teal:hover { background: var(--teal-dark); }
.cp-btn-ghost { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.45); color: #fff; }
.cp-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.cp-btn-white { background: #fff; color: var(--navy) !important; }
.cp-btn-white:hover { background: #eef7fb; }
.cp-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #d3e6f1; }
.cp-trust i { color: var(--teal); margin-right: 6px; }

.cp-hero-card { background: #fff; color: var(--text); border-radius: 18px; padding: 26px 26px 20px; box-shadow: 0 24px 60px rgba(5,25,40,0.35); border-top: 5px solid var(--teal); }
.cp-hero-card-head { font-weight: 800; color: var(--navy); font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.cp-hero-card-head i { color: var(--blue); }
.cp-hours { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.cp-hours span { color: var(--text-muted); }
.cp-hours strong { color: var(--navy); }
.cp-hours strong.closed { color: var(--red); }
.cp-hero-card-foot { display: flex; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--text-muted); background: var(--teal-soft); padding: 12px 14px; border-radius: 10px; }
.cp-hero-card-foot i { color: var(--teal-dark); margin-top: 3px; }

.cp-highlights { position: relative; z-index: 2; margin-top: -54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; }
.cp-hl { display: flex; align-items: center; gap: 14px; padding: 22px 22px; border-right: 1px solid var(--border); }
.cp-hl:last-child { border-right: none; }
.cp-hl strong { display: block; color: var(--navy); font-size: 15px; }
.cp-hl small { color: var(--text-muted); font-size: 13px; }
.cp-hl-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.cp-hl-icon.blue { background: var(--blue-soft); color: var(--blue); }
.cp-hl-icon.teal { background: var(--teal-soft); color: var(--teal-dark); }

.cp-kicker { display: inline-block; color: var(--teal-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.section-title p { max-width: 620px; margin-left: auto; margin-right: auto; }

.cp-svc-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cp-svc-grid .svc-card { text-align: left; padding: 28px; position: relative; overflow: hidden; }
.cp-svc-grid .svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.cp-svc-grid .svc-card:hover::after { transform: scaleX(1); }
.cp-svc-grid .svc-card h3 { font-size: 18px; }
.cp-svc-grid .svc-card p { color: var(--text-muted); font-size: 14.5px; }
.svc-icon { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft)); }
.cp-svc-grid .svc-icon i, .svc-icon i { font-size: 24px; color: var(--blue); margin: 0; }
.svc-icon.light { background: rgba(255,255,255,0.15); }
.svc-icon.light i { color: #fff; }
.cp-svc-grid .btn-link { color: var(--teal-dark) !important; display: inline-flex; align-items: center; gap: 8px; }
.cp-svc-grid .btn-link i { font-size: 13px; color: inherit; margin: 0; transition: transform 0.2s; }
.cp-svc-grid .svc-card:hover .btn-link i { transform: translateX(4px); }

.cp-account-cta { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 70%, var(--teal) 130%); color: #fff; border-radius: 18px; padding: 28px 32px; }
.cp-account-cta-text { display: flex; align-items: center; gap: 18px; }
.cp-account-cta-text .svc-icon { margin: 0; flex-shrink: 0; }
.cp-account-cta h3 { color: #fff; font-size: 20px; margin: 0 0 4px; }
.cp-account-cta p { color: #d3e6f1; margin: 0; }
.cp-account-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cp-steps-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.cp-step { position: relative; padding: 28px 26px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.cp-step-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
    color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); margin-bottom: 14px; box-shadow: 0 6px 16px rgba(44,134,192,0.3); }
.cp-step h3 { font-size: 18px; }
.cp-step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.cp-visit-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; }
.cp-visit h2 { font-size: 30px; }
.cp-visit-lead { color: var(--text-muted); }
.cp-contact-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.cp-contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; font-size: 15px; }
.cp-contact-list i { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cp-contact-list span { padding-top: 8px; }
.cp-map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); border: 4px solid #fff; height: 360px; }
.cp-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 960px) {
    .cp-hero-inner { grid-template-columns: 1fr; }
    .cp-hero h1 { font-size: 36px; }
    .cp-highlights { grid-template-columns: repeat(2, 1fr); }
    .cp-hl:nth-child(2) { border-right: none; }
    .cp-hl:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .cp-steps { grid-template-columns: 1fr; }
    .cp-visit-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cp-hero { padding: 44px 0 90px; }
    .cp-hero h1 { font-size: 29px; }
    .cp-highlights { grid-template-columns: 1fr; }
    .cp-hl { border-right: none !important; border-bottom: 1px solid var(--border); }
    .cp-hl:last-child { border-bottom: none; }
    .cp-svc-grid { grid-template-columns: 1fr; }
    .cp-account-cta { padding: 24px 22px; }
    .cp-account-cta-text { flex-direction: column; align-items: flex-start; }
    .cp-map { height: 280px; }
}
