/*
 * TCSH 5.3.4 Website - Unified Stylesheet
 * Version: 0.3
 * 
 * Complete styling for TotalCare eHealth website.
 * Includes all component styles, responsive breakpoints, and page-specific styles.
 * Uses TC namespace prefix for all classes to avoid conflicts.
 * 
 * Color Palette:
 * - Primary Teal: #07988f
 * - Primary Orange: #f17510
 * - Dark Gray: #434343
 * - Light Gray: #666
 * 
 * Dependencies: None
 * External Services: None
 */

/* ============================================
   1. GLOBAL RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1 {
    font-size: 2.5rem;
    color: #434343;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: #434343;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: #434343;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    color: #07988f;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

ul,
ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

ul li,
ol li {
    margin-bottom: 0.5rem;
    color: #666;
}

a {
    color: #07988f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   3. LAYOUT CONTAINERS
   ============================================ */

.tc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tc-section {
    padding: 4rem 0;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */

.tc-site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tc-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-site-logo {
    height: 50px;
}

.tc-main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.tc-main-nav a {
    color: #434343;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
}

.tc-main-nav a:hover {
    color: #07988f;
}

.tc-main-nav a.tc-active {
    color: #434343;
    border-bottom: 3px solid #f17510;
}

.tc-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #434343;
}

/* ============================================
   5. HERO SECTIONS
   ============================================ */

.tc-hero {
    background: linear-gradient(135deg, #07988f 0%, #05766e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.tc-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tc-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.tc-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

/* ============================================
   6. BUTTONS & CTAS
   ============================================ */

.tc-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.tc-button-primary {
    background: #f17510;
    color: white;
}

.tc-button-primary:hover {
    background: #d66410;
    text-decoration: none;
}

.tc-submit-button {
    background: #f17510;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.tc-submit-button:hover {
    background: #d66410;
}

/* ============================================
   7. CONTENT COMPONENTS
   ============================================ */

/* Card Layouts */
.tc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tc-card {
    background: white;
    border: 2px solid #07988f;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(7, 152, 143, 0.2);
}

.tc-card h3 {
    color: #07988f;
    margin-bottom: 1rem;
}

.tc-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tc-card-link {
    display: inline-block;
    color: #f17510;
    text-decoration: none;
    font-weight: 600;
}

.tc-card-link:hover {
    text-decoration: underline;
}

/* Two-Column Layouts */
.tc-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.tc-two-column-content {
    /* Content side */
}

.tc-two-column-image {
    /* Image side */
}

.tc-two-column-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Image Placeholders */
.tc-img-placeholder {
    background: #e0e0e0;
    border: 2px dashed #999;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    min-height: 300px;
}

/* Feature Boxes */
.tc-feature-box {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #07988f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tc-feature-list {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #07988f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Highlight Boxes */
.tc-highlight-box {
    background: #4285f4;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.tc-highlight-box h3 {
    color: white;
}

.tc-highlight-box p {
    color: white;
}

/* Timeline */
.tc-timeline {
    margin-top: 2rem;
}

.tc-timeline-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #f17510;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Challenge/Option Grids */
.tc-challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.tc-challenge-card {
    background: white;
    border-top: 4px solid #f17510;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tc-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tc-option-card {
    background: white;
    border-top: 4px solid #f17510;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Patient Cards */
.tc-patient-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tc-patient-card {
    background: white;
    border-left: 4px solid #07988f;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Price Box */
.tc-price-box {
    background: #07988f;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.tc-price-box h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tc-price-box p {
    color: white;
}

/* Icon List */
.tc-icon-list {
    max-width: 800px;
    margin: 0 auto;
}

.tc-icon-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.tc-icon-circle {
    background: #07988f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.tc-icon-content {
    flex: 1;
    padding-top: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.tc-icon-content strong {
    color: #434343;
}

/* FAQ Styles */
.tc-faq-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tc-faq-nav .tc-button {
    min-width: 180px;
}

.tc-faq-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #07988f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tc-faq-item h3 {
    color: #07988f;
    margin-bottom: 1rem;
}

.tc-faq-item p {
    color: #666;
    margin-bottom: 0;
}

.tc-faq-contact {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.tc-faq-contact p {
    color: #666;
    margin-bottom: 0;
}

.tc-faq-contact a {
    color: #f17510;
    font-weight: 600;
    text-decoration: none;
}

.tc-faq-contact a:hover {
    text-decoration: underline;
}

/* Program Pillars */
.tc-program-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tc-pillar {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.tc-pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tc-pillar h3 {
    color: #07988f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tc-pillar p {
    color: #666;
    text-align: left;
}

/* Testimonials */
.tc-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tc-testimonial {
    background: white;
    padding: 2rem;
    border-left: 4px solid #f17510;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tc-testimonial-text {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tc-testimonial-author {
    color: #434343;
    font-weight: 600;
    margin-bottom: 0;
}

.tc-placeholder-note {
    color: #999;
    font-size: 0.85rem;
    font-weight: normal;
    font-style: italic;
}

/* Contact Info Box */
.tc-contact-info {
    background: white;
    padding: 2rem;
    border-left: 4px solid #07988f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tc-contact-info h3 {
    color: #434343;
    margin-bottom: 1rem;
}

.tc-contact-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* ============================================
   8. CONTENT SECTIONS
   ============================================ */

.tc-content-section {
    background: #f8f9fa;
}

.tc-content-section:nth-child(even) {
    background: white;
}

/* ============================================
   9. FORMS
   ============================================ */

.tc-form-container {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 8px;
    max-width: 700px;
    margin: 2rem auto;
}

.tc-form-group {
    margin-bottom: 1.5rem;
}

.tc-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #434343;
    font-weight: 600;
}

.tc-form-required {
    color: #f17510;
}

.tc-form-container input[type="text"],
.tc-form-container input[type="email"],
.tc-form-container input[type="tel"],
.tc-form-container input[type="password"],
.tc-form-container select,
.tc-form-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.tc-form-container textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form Messages */
.tc-form-message {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.tc-form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tc-form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tc-form-debug {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    font-size: 0.9rem;
}

/* Login Page */
.tc-login-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.tc-login-box {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tc-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tc-login-header h1 {
    font-size: 2rem;
    color: #07988f;
    margin-bottom: 0.5rem;
}

.tc-login-header p {
    color: #666;
    font-size: 1rem;
}

.tc-login-form {
    margin-bottom: 2rem;
}

.tc-login-form-group {
    margin-bottom: 1.5rem;
}

.tc-login-form-group label {
    display: block;
    font-weight: 600;
    color: #434343;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tc-login-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tc-login-form-group input:focus {
    outline: none;
    border-color: #07988f;
    box-shadow: 0 0 0 3px rgba(7, 152, 143, 0.1);
}

.tc-login-form-group input::placeholder {
    color: #999;
}

.tc-login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #07988f 0%, #06766d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tc-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 152, 143, 0.3);
}

.tc-login-button:active {
    transform: translateY(0);
}

.tc-login-message {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tc-login-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.tc-login-error a {
    color: #c33;
    font-weight: 600;
}

.tc-login-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.tc-login-help {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.tc-login-help-link {
    color: #07988f;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.tc-login-help-link:hover {
    text-decoration: underline;
}

/* ============================================
   10. FOOTER
   ============================================ */

.tc-site-footer {
    background: #434343;
    color: white;
    padding: 3rem 2rem 1rem;
}

.tc-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tc-footer-section h4 {
    color: #07988f;
    margin-bottom: 1rem;
}

.tc-footer-section p {
    color: #ccc;
}

.tc-footer-section ul {
    list-style: none;
    margin-left: 0;
}

.tc-footer-section ul li {
    margin-bottom: 0.5rem;
}

.tc-footer-section a {
    color: #ccc;
    text-decoration: none;
}

.tc-footer-section a:hover {
    color: #07988f;
}

.tc-footer-contact-button {
    display: inline-block;
    background: #f17510;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.tc-footer-contact-button:hover {
    background: #d66410;
}

.tc-footer-email {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.tc-footer-social {
    margin-top: 1rem;
}

.tc-footer-social a {
    display: inline-block;
    margin-right: 1rem;
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.tc-footer-social a:hover {
    color: #07988f;
}

.tc-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #666;
    color: #999;
}

.tc-footer-bottom a {
    color: #999;
}

/* ============================================
   11. ZOHO BIGIN FORM STYLES
   ============================================ */

/* Scoped wrapper - all Zoho styles only affect forms inside this class */
.tc-zoho-form-wrapper {
    margin: 2rem 0;
}

/* Hide Zoho Bigin attribution */
.tc-zoho-form-wrapper .wform-poweredby-container {
    display: none !important;
}

/* Form container and wrapper */
.tc-zoho-form-wrapper .wf-parent {
    padding: 30px 0;
    box-sizing: border-box;
    overflow: auto;
    background: transparent;
}

.tc-zoho-form-wrapper .wf-wrapper {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    margin: auto;
    border: none;
    background-color: #fff;
    color: #222;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

.tc-zoho-form-wrapper .wf-wrapper * {
    box-sizing: border-box;
}

.tc-zoho-form-wrapper .iframe-container {
    height: 100%;
    width: 100%;
    border: none;
    min-height: 365px;
}

/* Form header */
.tc-zoho-form-wrapper .wf-header {
    font-size: 22px;
    padding-bottom: 35px;
    font-weight: bold;
    word-break: break-word;
    color: #07988f;
}

.tc-zoho-form-wrapper .wf-form-component {
    padding: 30px 40px 60px;
    font-size: 15px;
}

/* Section styles */
.tc-zoho-form-wrapper .wf-sec-wrap {
    margin-bottom: 40px;
}

.tc-zoho-form-wrapper .wf-sec-head {
    margin-bottom: 20px;
    margin-top: 35px;
}

.tc-zoho-form-wrapper .wf-sec-title {
    font-size: 18px;
    font-weight: bold;
    word-break: break-word;
    color: #07988f;
}

/* Form rows and fields */
.tc-zoho-form-wrapper .wf-row {
    margin-bottom: 20px;
}

.tc-zoho-form-wrapper .wf-label {
    padding: 7px 0;
    word-break: break-word;
    font-weight: 600;
    color: #434343;
}

.tc-zoho-form-wrapper .wf-field {
    text-align: left;
    word-break: break-word;
    border: 0;
    position: relative;
}

.tc-zoho-form-wrapper .wf-field-inner {
    position: relative;
    display: flex;
    flex: 1;
}

/* Input styles */
.tc-zoho-form-wrapper .wf-field-input,
.tc-zoho-form-wrapper .wf-field-dropdown {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    min-height: 38px;
    font-size: 15px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tc-zoho-form-wrapper .wf-field-input:focus {
    outline: none;
    border-color: #07988f;
    box-shadow: 0 0 0 3px rgba(7, 152, 143, 0.1);
}

.tc-zoho-form-wrapper select:not([data-wform-field='select-multiple']) {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23434343' height='34' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 99%;
    background-color: #fff;
    min-width: 70px;
}

/* Mandatory field indicator */
.tc-zoho-form-wrapper .wf-field-mandatory .wf-field-inner::before {
    content: '';
    position: absolute;
    left: 0;
    background-color: #07988f;
    width: 3px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    z-index: 2;
    top: 0;
    bottom: 0;
}

/* Error states */
.tc-zoho-form-wrapper .wf-field-error-active .wf-field-input,
.tc-zoho-form-wrapper .wf-field-error-active .wf-field-dropdown {
    border: 2px solid #FD6B6D;
    box-shadow: 0 0 0 3px rgba(253, 107, 109, 0.1);
}

.tc-zoho-form-wrapper .wf-field-error {
    color: #FF5050;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.tc-zoho-form-wrapper .wf-field-error-active .wf-field-error {
    display: block;
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

/* Captcha styles */
.tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .wf-field {
    display: flex;
    align-items: center;
}

.tc-zoho-form-wrapper .wform-field-item-captcha-input {
    border-radius: 6px 0 0 6px;
}

.tc-zoho-form-wrapper .wf-field-captcha-img-wrap {
    border: 2px solid #e0e0e0;
    border-radius: 0 6px 6px 0;
    border-left: 0;
    height: initial;
    overflow: hidden;
    min-width: 120px;
}

.tc-zoho-form-wrapper .wf-field-captcha-img {
    height: 38px;
    width: 100%;
}

.tc-zoho-form-wrapper .reload-captcha {
    margin-left: 10px;
    user-select: none;
    cursor: pointer;
    color: #07988f;
    font-weight: 600;
}

.tc-zoho-form-wrapper .reload-img {
    font-size: 23px;
    color: #434343;
    margin-right: 5px;
}

.tc-zoho-form-wrapper .link {
    color: #07988f;
    cursor: pointer;
}

/* Submit button - CENTERED */
.tc-zoho-form-wrapper .wform-btn-wrap {
    display: flex;
    margin-top: 40px;
    align-items: center;
    justify-content: center !important;
    flex: 1;
}

.tc-zoho-form-wrapper .wf-btn {
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #07988f 0%, #06766d 100%);
    color: #fff;
    border: 1px solid #07988f;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tc-zoho-form-wrapper .wf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 152, 143, 0.3);
}

.tc-zoho-form-wrapper .wf-btn:active {
    transform: translateY(0);
}

/* Form alignment - left labels on desktop */
.tc-zoho-form-wrapper .wf-form-component:not([data-ux-form-alignment='top']) .wf-row {
    display: flex;
}

.tc-zoho-form-wrapper .wf-form-component:not([data-ux-form-alignment='top']) .wf-label {
    word-break: break-word;
    width: 30%;
    padding: 1.2rem 2rem 0 0;
    text-align: left;
}

.tc-zoho-form-wrapper .wf-form-component:not([data-ux-form-alignment='top']) .wf-field {
    width: 70%;
}

.tc-zoho-form-wrapper .wf-form-component[data-ux-form-alignment='top'] .wf-label {
    padding-top: 0;
}

/* Captcha field layout */
.tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .wf-field-inner {
    height: 38px;
}

.tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .wf-field.wf-field-error-active {
    flex-wrap: wrap;
}

.tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .wf-field-error {
    flex-basis: 100%;
    width: 100%;
    margin-left: 5px;
}

/* Animation for errors */
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .tc-zoho-form-wrapper .wf-wrapper {
        max-width: 700px;
        width: calc(100% - 20px);
        border: 0;
    }
    
    .tc-zoho-form-wrapper .wf-form-component {
        padding: 20px;
        padding-bottom: 60px;
    }
    
    .tc-zoho-form-wrapper .wf-field input[type=text],
    .tc-zoho-form-wrapper .wf-field select {
        width: 100% !important;
    }
}

@media screen and (max-width: 590px) {
    .tc-zoho-form-wrapper .wf-parent {
        padding: 20px 0;
    }
    
    .tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .wf-field {
        flex-direction: column;
    }
    
    .tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .reload-captcha {
        margin-left: auto;
        margin-top: 10px;
    }
    
    .tc-zoho-form-wrapper .wf-row[data-ux-field-appearance='captcha'] .wf-field-inner {
        width: 100%;
    }
}

/* ============================================
   12. PAGE-SPECIFIC STYLES
   ============================================ */

.tc-meta-info {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ============================================
   13. RESPONSIVE / MOBILE
   ============================================ */

@media (max-width: 768px) {
    .tc-main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .tc-main-nav.active {
        display: flex;
    }

    .tc-mobile-menu-toggle {
        display: block;
    }

    h1,
    .tc-hero h1 {
        font-size: 2rem;
    }

    .tc-hero p {
        font-size: 1.1rem;
    }

    .tc-card-grid,
    .tc-patient-cards,
    .tc-challenge-grid,
    .tc-option-grid {
        grid-template-columns: 1fr;
    }

    .tc-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tc-form-container,
    .tc-login-box {
        padding: 2rem 1rem;
    }
}
/* ============================================
   14. ENCOUNTER ENGINE
   ============================================ */

.tc-encounter-main {
    min-height: 80vh;
    background: #f4f7f7;
    padding: 2rem 1rem 4rem;
}
.tc-encounter-container {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.tc-progress-wrap {
    height: 6px;
    background: #d0e6e4;
}
.tc-progress-bar {
    height: 6px;
    background: #07988f;
    transition: width 0.3s ease;
}
.tc-encounter-container form {
    padding: 2.5rem;
}
.prompt-container h2 {
    font-size: 1.4rem;
    color: #2c3e3e;
    margin: 0 0 0.5rem;
}
.prompt-container p {
    font-size: 1.05rem;
    color: #5a6b6b;
    margin: 0 0 1.5rem;
}
.prompt-hint {
    font-size: 0.9rem;
    color: #8aa0a0;
    margin-top: -1rem;
}
.response-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.response-options label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid #d0e6e4;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1rem;
    color: #2c3e3e;
    transition: border-color 0.2s, background 0.2s;
}
.response-options label:hover {
    border-color: #07988f;
    background: #e8f6f5;
}
.response-options--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.response-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a6b6b;
    margin-bottom: 1rem;
}
.response-fields input {
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #d0e6e4;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #d0e6e4;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    resize: vertical;
}
.tc-prompt-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}
.tc-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.tc-btn--primary {
    background: #07988f;
    color: #fff;
}
.tc-btn--primary:hover { background: #068a82; }
.tc-btn--secondary {
    background: transparent;
    color: #07988f;
    border: 1.5px solid #07988f;
}
.tc-btn--back {
    background: transparent;
    color: #5a6b6b;
    font-size: 0.9rem;
}
.tc-prompt-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}
.tc-prompt-error.visible {
    display: block;
}

/* Results */
.tc-results { padding: 2.5rem; }
.tc-risk-block {
    display: flex;
    gap: 1.5rem;
    border: 1.5px solid #d0e6e4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.tc-risk-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-width: 120px;
    gap: 4px;
}
.tc-risk-high .tc-risk-score { background: #fdf0ef; }
.tc-risk-moderate .tc-risk-score { background: #fef8ec; }
.tc-risk-low .tc-risk-score { background: #edf9f4; }
.tc-score-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}
.tc-risk-high .tc-score-number { color: #c0392b; }
.tc-risk-moderate .tc-score-number { color: #d4890a; }
.tc-risk-low .tc-score-number { color: #2d9e6b; }
.tc-score-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.tc-risk-high .tc-score-label { color: #c0392b; }
.tc-risk-moderate .tc-score-label { color: #d4890a; }
.tc-risk-low .tc-score-label { color: #2d9e6b; }
.tc-score-sub { font-size: 0.7rem; color: #8aa0a0; text-align: center; }
.tc-risk-detail { padding: 1.5rem 1.5rem 1.5rem 0; flex: 1; }
.tc-risk-detail h2 { font-size: 1.1rem; margin: 0 0 0.5rem; color: #2c3e3e; }
.tc-risk-detail p { font-size: 0.9rem; color: #5a6b6b; margin: 0 0 1rem; }
.tc-risk-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #8aa0a0;
    margin-bottom: 4px;
}
.tc-risk-bar-track {
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #2d9e6b 0%, #d4890a 45%, #c0392b 100%);
    position: relative;
}
.tc-risk-bar-cursor {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2c3e3e;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.tc-result-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f4f4;
}
.tc-result-section h3 { color: #07988f; margin: 0 0 0.5rem; font-size: 1rem; }
.tc-result-section p { color: #5a6b6b; font-size: 0.95rem; line-height: 1.65; margin: 0; }
.tc-next-steps {
    background: #07988f;
    border-radius: 10px;
    padding: 1.75rem;
    color: #fff;
}
.tc-next-steps h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #fff;
}
.tc-next-steps p {
    color: #fff;
    opacity: 0.95;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}
.tc-next-steps .tc-btn--primary {
    background: #f17510;
    color: #fff;
    display: inline-block;
    margin-top: 0.5rem;
}
.tc-next-steps .tc-btn--primary:hover { background: #d66410; }
.tc-next-steps--low {
    background: #f4f7f7;
}
.tc-next-steps--low h3 { color: #07988f; }
.tc-next-steps--low p { color: #5a6b6b; opacity: 1; }
/* ── Login Page ─────────────────────────────────────────────────────────── */
.tc-login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.tc-login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.tc-login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tc-login-logo img {
    max-width: 200px;
    height: auto;
}

.tc-login-heading {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.tc-login-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #5d4037;
}

.tc-login-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #721c24;
}

.tc-field {
    margin-bottom: 1.25rem;
}

.tc-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #444;
}

.tc-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.tc-field input:focus {
    outline: none;
    border-color: #00897b;
    box-shadow: 0 0 0 2px rgba(0,137,123,0.15);
}

.tc-login-actions {
    margin-top: 1.5rem;
}

.tc-btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #00897b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.tc-btn-primary:hover {
    background: #00796b;
}

.tc-login-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.tc-login-links a {
    color: #00897b;
    text-decoration: none;
}

.tc-login-links a:hover {
    text-decoration: underline;
}
/* ── Authenticated Layout ───────────────────────────────────────────────── */
.tc-auth-body {
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    font-family: inherit;
}

.tc-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 100;
}

.tc-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-topbar-logo img {
    height: 32px;
    width: auto;
}

.tc-sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
    padding: 0.25rem 0.5rem;
}

.tc-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tc-topbar-username {
    font-size: 0.9rem;
    color: #444;
}

.tc-topbar-logout {
    font-size: 0.875rem;
    color: #00897b;
    text-decoration: none;
}

.tc-topbar-logout:hover {
    text-decoration: underline;
}

.tc-page-wrap {
    display: flex;
    margin-top: 56px;
    min-height: calc(100vh - 56px);
}

.tc-sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 90;
    transition: transform 0.2s ease;
}

.tc-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.tc-nav-badge {
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.tc-sidebar-link:hover {
    background: #f0faf9;
    color: #00897b;
}

.tc-sidebar-active {
    color: #00897b;
    border-left-color: #00897b;
    background: #f0faf9;
    font-weight: 600;
}

.tc-main-content {
    margin-left: 220px;
    padding: 2rem;
    flex: 1;
    min-width: 0;
}

/* Mobile sidebar */
@media (max-width: 768px) {
    .tc-sidebar {
        transform: translateX(-100%);
    }

    .tc-sidebar.tc-sidebar-open {
        transform: translateX(0);
    }

    .tc-main-content {
        margin-left: 0;
    }
}
/* ── Dashboard ──────────────────────────────────────────────────────────── */
.tc-dashboard {
    max-width: 860px;
}

.tc-dashboard-welcome h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #222;
}

.tc-dashboard-welcome p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tc-alert-bar {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #5d4037;
}

.tc-alert-bar a {
    color: #00897b;
    font-weight: 600;
    text-decoration: none;
}

.tc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.tc-card h2 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Stage Bar */
.tc-stage-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

.tc-stage-bar::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.tc-stage-bar--empty::before {
    display: none;
}

.tc-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.tc-stage-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #ccc;
    margin-bottom: 0.5rem;
}

.tc-stage-done .tc-stage-dot {
    background: #00897b;
    border-color: #00897b;
}

.tc-stage-current .tc-stage-dot {
    background: #fff;
    border-color: #00897b;
    border-width: 3px;
}

.tc-stage-label {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.tc-stage-current .tc-stage-label {
    color: #00897b;
    font-weight: 600;
}

.tc-stage-done .tc-stage-label {
    color: #444;
}

.tc-stage-status {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Next Step */
.tc-btn-inline {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

/* Quick Links */
.tc-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tc-quick-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0faf9;
    border: 1px solid #b2dfdb;
    border-radius: 4px;
    color: #00897b;
    text-decoration: none;
    font-size: 0.9rem;
}

.tc-quick-link:hover {
    background: #e0f2f1;
}

/* Activity List */
.tc-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-activity-list li {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
}

.tc-activity-list li:last-child {
    border-bottom: none;
}

.tc-activity-date {
    color: #999;
    white-space: nowrap;
}

.tc-activity-action {
    color: #444;
}
/* ── Messages Page ─────────────────────────────────────────────────────────
   Add this block to the bottom of styles.css
   ───────────────────────────────────────────────────────────────────────── */

.tc-messages {
    max-width: 1100px;
}

.tc-messages-layout {
    display: flex;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    min-height: 520px;
}

/* Thread list */
.tc-thread-list {
    width: 280px;
    min-width: 280px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

.tc-thread-list h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    padding: 1rem 1.25rem 0.5rem;
    margin: 0;
}

.tc-thread-item {
    display: block;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.tc-thread-item:hover {
    background: #f5fafa;
}

.tc-thread-active {
    background: #f0faf9;
    border-left: 3px solid #00897b;
}

.tc-thread-unread .tc-thread-name {
    font-weight: 700;
    color: #111;
}

.tc-thread-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.2rem;
}

.tc-thread-snippet {
    font-size: 0.82rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.tc-thread-date {
    font-size: 0.75rem;
    color: #aaa;
}

.tc-empty-state {
    padding: 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: #999;
}

/* Thread view */
.tc-thread-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tc-thread-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.tc-thread-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.tc-thread-role {
    font-size: 0.82rem;
    color: #888;
}

.tc-thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 380px;
}

.tc-message-bubble {
    max-width: 75%;
}

.tc-bubble-mine {
    align-self: flex-end;
}

.tc-bubble-theirs {
    align-self: flex-start;
}

.tc-bubble-body {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.93rem;
    line-height: 1.5;
}

.tc-bubble-mine .tc-bubble-body {
    background: #00897b;
    color: #fff;
    border-bottom-right-radius: 3px;
}

.tc-bubble-theirs .tc-bubble-body {
    background: #f0f0f0;
    color: #222;
    border-bottom-left-radius: 3px;
}

.tc-bubble-meta {
    font-size: 0.73rem;
    color: #aaa;
    margin-top: 0.3rem;
    padding: 0 0.25rem;
}

.tc-bubble-mine .tc-bubble-meta {
    text-align: right;
}

/* Reply form */
.tc-reply-form {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.tc-reply-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.93rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.tc-reply-input:focus {
    outline: none;
    border-color: #00897b;
}

.tc-reply-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.tc-thread-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.92rem;
    padding: 2rem;
}

/* Alerts */
.tc-alert {
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.93rem;
}

.tc-alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6c6;
}

.tc-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Mobile */
@media (max-width: 768px) {
    .tc-messages-layout {
        flex-direction: column;
    }

    .tc-thread-list {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .tc-thread-messages {
        max-height: 260px;
    }
}
/* ── My Program Page ──────────────────────────────────────────────────────── */

.tc-program-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #444;
}

.tc-protocol-card {
    margin-bottom: 1.25rem;
}

.tc-protocol-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tc-protocol-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.tc-status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tc-status-pending    { background: #f0f0f0; color: #666; }
.tc-status-assigned   { background: #e8f0fe; color: #1a56db; }
.tc-status-active     { background: #e6f4ea; color: #1a7a3e; }
.tc-status-completed  { background: #d4edda; color: #155724; }
.tc-status-ended      { background: #f8d7da; color: #721c24; }

.tc-encounter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tc-encounter-table th,
.tc-encounter-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.tc-encounter-table th {
    font-weight: 600;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fafafa;
}

.tc-encounter-table tr:last-child td {
    border-bottom: none;
}

.tc-resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tc-resource-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tc-resource-list li:last-child {
    border-bottom: none;
}

.tc-resource-list a {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

.tc-resource-list a:hover {
    text-decoration: underline;
}

.tc-resource-list p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #666;
}
/* ── Profile Page ─────────────────────────────────────────────────────────── */

.tc-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tc-profile-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 0.25rem;
}

.tc-profile-field span {
    font-size: 0.95rem;
    color: #222;
}

.tc-input {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #222;
    box-sizing: border-box;
}

.tc-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

.tc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #222;
    cursor: pointer;
}

.tc-profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tc-empty-state {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.tc-activity-value {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.tc-alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.tc-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
/* ── Button: Small modifier ───────────────────────────────────────────────── */

.tc-btn-sm {
    width: auto !important;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.4;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 0;
}

/* ── Dashboard: Wide variant for admin pages ──────────────────────────────── */

.tc-dashboard-wide {
    max-width: 100%;
}

/* ── Admin: Column card header ────────────────────────────────────────────── */

.tc-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tc-col-header h2 {
    margin: 0;
}

/* ── Admin: Scrollable list ───────────────────────────────────────────────── */

.tc-scroll-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
}

.tc-scroll-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tc-scroll-list li:last-child {
    border-bottom: none;
}

.tc-scroll-list a {
    color: #00897b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.tc-scroll-list a:hover {
    text-decoration: underline;
}

.tc-list-meta {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

/* ── Admin: Three-column grid ─────────────────────────────────────────────── */

.tc-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ── Button: Secondary ────────────────────────────────────────────────────── */

.tc-btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #00897b;
    border: 1px solid #00897b;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    margin-bottom: 15px;
}

.tc-btn-secondary:hover {
    background: #f0faf9;
}
/* ── Documents Page ───────────────────────────────────────────────────────── */

.tc-doc-download {
    color: #00897b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.tc-doc-download:hover {
    text-decoration: underline;
}