/* TechTvik Labs — SPA front enhancements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

body.fv2 {
    font-family: 'Inter', system-ui, sans-serif;
}

body.fv2 .fv2-h1,
body.fv2 .fv2-h2,
body.fv2 .fv2-logo-text,
body.fv2 .fv2-feat h3,
body.fv2 .fv2-stat strong {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* SweetAlert — match brand (not default purple) */
.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}
.swal2-styled.swal2-cancel {
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
}
.swal2-title, .swal2-html-container {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
}

/* Email field status */
.fv2-field input.email-ok { border-color: #10b981 !important; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.fv2-field input.email-bad { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.fv2-field-hint { font-size: .78rem; margin-top: .35rem; color: #64748b; }
.fv2-field-hint.err { color: #dc2626; }
.fv2-field-hint.ok { color: #059669; }

/* Terms agreement */
.fv2-terms {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    margin-bottom: 1rem;
}
.fv2-section--alt .fv2-terms,
.fv2-modal .fv2-terms {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.fv2-terms input { margin-top: .2rem; width: 18px; height: 18px; accent-color: #0d9488; flex-shrink: 0; }
.fv2-terms label { font-size: .82rem; line-height: 1.55; color: #94a3b8; cursor: pointer; }
.fv2-section--alt .fv2-terms label,
.fv2-modal .fv2-terms label { color: #475569; }
.fv2-terms a { color: #14b8a6; font-weight: 600; }

/* Legal pages — terms, refund */
.fv2-legal-hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
    background: linear-gradient(165deg, #0f172a, #1e293b);
}
.fv2-legal-meta {
    font-size: .82rem; color: #64748b; margin-top: .75rem;
}
.fv2-legal-meta a { color: #5eead4; text-decoration: none; }
.fv2-legal-card {
    max-width: 780px; margin: 0 auto;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .06);
}
.fv2-legal-intro {
    font-size: 1rem; line-height: 1.7; color: #334155;
    padding-bottom: 1.25rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.fv2-legal h2, .fv2-legal-card h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem; font-weight: 700; color: #0f172a;
    margin: 1.75rem 0 .65rem;
}
.fv2-legal-card h2:first-of-type { margin-top: 0; }
.fv2-legal-card p, .fv2-legal-card li {
    font-size: .92rem; line-height: 1.7; color: #475569;
}
.fv2-legal-card ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.fv2-legal-card li { margin-bottom: .4rem; }
.fv2-legal-card a { color: #0d9488; font-weight: 600; }
.fv2-legal-highlight {
    background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px;
    padding: 1rem 1.15rem; color: #0f766e !important; font-size: .9rem !important;
}
.fv2-legal-contact { list-style: none; padding: 0; }
.fv2-legal-contact li {
    display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
}
.fv2-legal-contact i { color: #0d9488; width: 18px; }
.fv2-legal-footer {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0;
    text-align: center;
}
.fv2-legal-footer p { margin-bottom: 1rem; color: #64748b; font-size: .88rem; }

/* Trust & security */
.fv2-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.fv2-trust-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.35rem;
    transition: .2s;
}
.fv2-trust-card:hover {
    border-color: #99f6e4;
    box-shadow: 0 12px 32px rgba(13,148,136,.1);
    transform: translateY(-2px);
}
.fv2-trust-card i {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(6,182,212,.08));
    color: #0d9488; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: .75rem;
}
.fv2-trust-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .98rem; margin: 0 0 .4rem; }
.fv2-trust-card p { margin: 0; font-size: .84rem; color: #64748b; line-height: 1.55; }
.fv2-trust-banner {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #e2e8f0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.fv2-trust-banner p { margin: 0; font-size: .88rem; line-height: 1.6; color: #94a3b8; }
.fv2-trust-banner strong { color: #fff; display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; margin-bottom: .35rem; }
@media (max-width: 640px) { .fv2-trust-banner { grid-template-columns: 1fr; } }

/* Platform highlights (replaces old services) */
.fv2-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fv2-highlight {
    text-align: center; padding: 1.5rem 1rem; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 18px;
}
.fv2-highlight i { font-size: 1.75rem; color: #0d9488; margin-bottom: .65rem; }
.fv2-highlight h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; margin: 0 0 .35rem; }
.fv2-highlight p { margin: 0; font-size: .82rem; color: #64748b; }
@media (max-width: 768px) { .fv2-highlights { grid-template-columns: 1fr; } }

/* Find Labs page */
.fv2-find-hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
    background: linear-gradient(165deg, #ecfdf5, #f8fafc);
    text-align: center;
}
.fv2-find-search {
    max-width: 720px; margin: 1.5rem auto 0;
    display: grid; grid-template-columns: 1fr auto; gap: .65rem;
    background: #fff; padding: .5rem; border-radius: 16px;
    border: 1px solid #e2e8f0; box-shadow: 0 8px 32px rgba(15,23,42,.06);
}
.fv2-find-search input {
    border: none; outline: none; padding: .85rem 1rem;
    font-size: 1rem; font-family: inherit; border-radius: 12px; background: #f8fafc;
}
.fv2-find-filters {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    margin-top: 1rem;
}
.fv2-find-filters input {
    padding: .55rem .85rem; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: .86rem; font-family: inherit; min-width: 140px;
}
.fv2-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    padding: 2rem 0 4rem;
}
.fv2-lab-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 20px;
    overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.fv2-lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,23,42,.1);
    border-color: #99f6e4;
}
.fv2-lab-card-head {
    padding: 1.25rem 1.25rem .75rem;
    display: flex; align-items: flex-start; gap: .85rem;
}
.fv2-lab-avatar {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, #0d9488, #06b6d4);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
}
.fv2-lab-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; margin: 0 0 .2rem; }
.fv2-lab-card .meta { font-size: .8rem; color: #64748b; margin: 0; }
.fv2-lab-card-body { padding: 0 1.25rem 1rem; flex: 1; }
.fv2-lab-card-body p { margin: 0 0 .45rem; font-size: .84rem; color: #475569; display: flex; align-items: center; gap: .5rem; }
.fv2-lab-card-body i { color: #0d9488; width: 16px; text-align: center; }
.fv2-lab-card-actions {
    display: flex; flex-wrap: wrap; gap: .45rem;
    padding: 1rem 1.25rem; border-top: 1px solid #f1f5f9; background: #fafbfc;
}
.fv2-lab-card-actions a, .fv2-lab-card-actions button {
    flex: 1; min-width: 80px; text-align: center;
    padding: .5rem .65rem; border-radius: 10px; font-size: .78rem; font-weight: 600;
    text-decoration: none !important; border: 1px solid #e2e8f0; background: #fff; color: #334155;
    font-family: inherit; cursor: pointer; transition: .15s;
}
.fv2-lab-card-actions a:hover, .fv2-lab-card-actions .primary {
    background: #0d9488; color: #fff; border-color: #0d9488;
}
.fv2-find-empty {
    text-align: center; padding: 3rem 1rem; color: #64748b;
    grid-column: 1 / -1;
}
.fv2-find-empty i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 1rem; }

/* Nav scroll spy */
.fv2-nav-link.is-active { color: #0f766e !important; background: rgba(13,148,136,.08); }

/* Patient report lookup */
.fv2-patient-portal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.fv2-patient-portal-intro p { color: #94a3b8; line-height: 1.65; }
.fv2-patient-notes { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.fv2-patient-notes li {
    display: flex; align-items: center; gap: .6rem;
    font-size: .86rem; color: #94a3b8; margin-bottom: .55rem;
}
.fv2-patient-notes i { color: #5eead4; width: 18px; }
.fv2-patient-portal-form {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 1.5rem;
}
.fv2-input {
    width: 100%; padding: .75rem 1rem; border-radius: 12px;
    border: 1px solid #e2e8f0; font-family: inherit; font-size: .92rem;
    background: #fff;
}
.fv2-section--dark .fv2-input { background: #f8fafc; }
.fv2-patient-result {
    margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 14px; font-size: .88rem;
}
.fv2-patient-result--ok { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #d1fae5; }
.fv2-patient-result--warn { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fde68a; }
.fv2-patient-result--err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fecaca; }
.fv2-patient-result-head { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .65rem; }
.fv2-patient-result-head strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; color: #fff; }
.fv2-patient-result-head span { font-size: .8rem; opacity: .85; }
.fv2-patient-result-patient { margin: 0 0 .75rem; opacity: .9; }
.fv2-patient-tests { display: flex; flex-direction: column; gap: .65rem; }
.fv2-patient-test {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .65rem .75rem; background: rgba(0,0,0,.15); border-radius: 10px;
}
.fv2-patient-test strong { display: block; font-size: .88rem; }
.fv2-status {
    display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .5rem;
    border-radius: 6px; margin-top: .2rem;
}
.fv2-status--generated { background: #10b981; color: #fff; }
.fv2-status--pending { background: #f59e0b; color: #fff; }
.fv2-patient-download {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .95rem; border-radius: 10px;
    font-size: .8rem; font-weight: 700; font-family: inherit;
    text-decoration: none !important; white-space: nowrap; flex-shrink: 0;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, .4);
    transition: transform .15s, box-shadow .15s;
}
.fv2-patient-download:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, .5);
}
.fv2-patient-download i { color: #fff; font-size: .85rem; }
.fv2-btn--sm { padding: .4rem .75rem !important; font-size: .78rem !important; }
@media (max-width: 768px) {
    .fv2-patient-portal { grid-template-columns: 1fr; }
}
