/* Telehealth Security Assessment - CuraSquare Theme */
:root {
    --primary-blue: #05559F;
    --dark-blue: #05559F;
    --primary-light: #00A6A6;
    --teal-accent: #00A6A6;
    --text-slate: #5a6b7c;
    --body-dark: #2d3748;
    --bg-cream-fade: #fcf8f4;
    --hover-lift: 0 -4px 20px rgba(5, 85, 159, 0.15);
    --hover-shadow-md: 0 12px 35px rgba(5, 85, 159, 0.12);
    --border-light: #e2e8f0;
    --critical-color: #dc3545;
    --high-color: #fd7e14;
}
body { overflow-x: hidden; }
a, button, .btn, .card { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important; }

/* ===== BUTTONS MATCHING MAIN SITE ===== */
.btn-hipaa-primary {
    background-color: #00A6A6 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14px;
    padding: 8px 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px !important;
}
.btn-hipaa-primary:hover {
    background-color: #05559F !important;
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(5, 85, 159, 0.12);
    color: white !important;
}

.btn-outline-hipaa {
    background-color: transparent !important;
    color: #05559F !important;
    border: 1.5px solid #05559F !important;
    font-size: 14px;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 4px !important;
}
.btn-outline-hipaa:hover {
    background-color: #00A6A6 !important;
    border-color: #00A6A6 !important;
    color: #ffffff !important;
}

/* ===== HERO SECTION ===== */
.telehealth-hero {
    background: linear-gradient(135deg, #fcf8f4 0%, #e8f4f8 50%, #f0f7fa 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-badge { margin-bottom: 16px; }
.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,166,166,0.08);
    border: 1px solid rgba(0,166,166,0.2);
    border-radius: 4px;
    color: var(--teal-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--dark-blue);
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--text-slate);
    max-width: 540px;
    line-height: 1.6;
}

/* Score Preview Card */
.score-preview-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(5,85,159,0.08);
    text-align: center;
    max-width: 280px;
}
.score-ring { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.score-ring svg { width: 100%; height: 100%; }
.score-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center;
}
.score-number { font-size: 2.2rem; font-weight: 700; color: var(--dark-blue); display: block; line-height: 1; }
.score-label { font-size: 0.75rem; color: var(--text-slate); }
.feature-item {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--body-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* ===== TRUST BAR ===== */
.trust-bar {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}
.trust-stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-slate);
    font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.section { padding: 60px 0; }
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--body-dark);
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-slate);
    max-width: 600px;
    margin: 0 auto;
}
.text-highlight { color: var(--teal-accent); font-weight: 700; }

/* ===== DISCOVER CARDS ===== */
.discover-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    height: 100%;
    border: 1px solid var(--border-light);
}
.discover-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(5, 85, 159, 0.12);
    border-color: rgba(0,166,166,0.4);
}
.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,166,166,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.card-icon i { font-size: 1.3rem; color: var(--teal-accent); }
.discover-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--body-dark); }
.discover-card p { font-size: 0.85rem; color: var(--text-slate); margin: 0; }

/* ===== MATURITY CARDS ===== */
.maturity-card {
    background: white;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    height: 100%;
}
.maturity-card:hover { transform: scale(1.02); box-shadow: 0 12px 35px rgba(5, 85, 159, 0.12); }
.level-icon { font-size: 1.8rem; margin-bottom: 8px; }
.maturity-card h5 { font-size: 0.75rem; font-weight: 700; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.maturity-card h6 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.level-score {
    font-size: 1rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}
.level-1 .level-score { background: rgba(220,53,69,0.08); color: #dc3545; }
.level-2 .level-score { background: rgba(253,126,20,0.08); color: #fd7e14; }
.level-3 .level-score { background: rgba(255,193,7,0.1); color: #cc9a06; }
.level-4 .level-score { background: rgba(25,135,84,0.08); color: #198754; }
.level-5 .level-score { background: rgba(13,110,253,0.08); color: #0d6efd; }
.maturity-card p { font-size: 0.75rem; color: var(--text-slate); margin: 0; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), #043b6e);
    padding: 60px 0;
}
.cta-title { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 12px; }
.cta-text { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== REGISTER PAGE ===== */
.register-section { background: #fcf8f4; min-height: calc(100vh - 80px); padding: 40px 0; }
.register-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(5,85,159,0.08);
}
.register-icon {
    width: 56px; height: 56px;
    background: rgba(0,166,166,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.register-icon i { font-size: 1.5rem; color: var(--teal-accent); }
.register-title { font-size: 1.3rem; font-weight: 700; color: var(--body-dark); }
.register-subtitle { color: var(--text-slate); font-size: 0.9rem; }

.register-form .form-label { font-weight: 600; font-size: 0.85rem; color: var(--body-dark); margin-bottom: 4px; }
.register-form .form-control,
.register-form .form-select {
    border: 1.5px solid var(--border-light);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.9rem;
}
.register-form .form-control:focus,
.register-form .form-select:focus {
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 2px rgba(0,166,166,0.15);
}

/* CAPTCHA Box */
.captcha-box {
    background: #fcf8f4;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 14px;
}
.captcha-question { font-size: 0.9rem; color: var(--body-dark); display: flex; align-items: center; gap: 8px; }
.captcha-question i { color: var(--teal-accent); }

/* ===== ASSESSMENT PAGE ===== */
.assessment-section { background: #fcf8f4; min-height: calc(100vh - 80px); }

.assessment-header {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Progress Bar */
.progress-track {
    height: 4px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--teal-accent);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.progress-stats { font-size: 0.8rem; color: var(--text-slate); }

/* Question Card */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(5,85,159,0.08);
}
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.question-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.question-number {
    width: 36px;
    height: 36px;
    background: var(--dark-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--body-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Answer Options */
.question-options { display: flex; flex-direction: column; gap: 8px; }
.option-item {
    position: relative;
    border: 1.5px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
}
.option-item:hover { border-color: var(--teal-accent); background: rgba(0,166,166,0.03); }
.option-item.selected {
    border-color: var(--teal-accent) !important;
    background: rgba(0,166,166,0.06);
}
.option-item input { display: none; }
.option-item label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    margin: 0;
    gap: 10px;
}
.option-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.option-item.selected .option-mark {
    border-color: var(--teal-accent);
    background: var(--teal-accent);
}
.option-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    opacity: 0;
}
.option-item.selected .option-dot { opacity: 1; }
.option-text { font-size: 0.9rem; font-weight: 500; color: var(--body-dark); flex: 1; }
.option-points {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-accent);
    background: rgba(0,166,166,0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake { animation: shake 0.5s ease; border-color: var(--critical-color) !important; }

/* ===== REPORT PAGE ===== */
.report-page { background: #fcf8f4; }
.report-container { max-width: 1100px; margin: 0 auto; }

.report-header-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(5,85,159,0.08);
    border-left: 4px solid var(--teal-accent);
}
.report-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-item { font-size: 0.85rem; }
.meta-label { font-weight: 600; color: var(--text-slate); margin-right: 4px; }
.meta-value { font-weight: 500; color: var(--body-dark); }

/* Score Circle */
.score-display {
    display: inline-block;
    text-align: center;
    padding: 16px;
    border: 1.5px solid;
    border-radius: 12px;
    background: #fcf8f4;
}
.score-circle-big { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.score-circle-big svg { width: 100%; height: 100%; }
.score-circle-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center;
}
.score-number-big { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.score-label-big { font-size: 0.6rem; color: var(--text-slate); display: block; }
.score-risk-badge {
    display: inline-block;
    color: white;
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Report Sections */
.report-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}
.section-header {
    background: #fcf8f4;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header i { font-size: 1.1rem; color: var(--teal-accent); }
.section-header h3 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--body-dark); }
.section-body { padding: 20px; }
.summary-text { font-size: 1rem; }

/* Score Breakdown */
.score-breakdown { background: #fcf8f4; border-radius: 8px; padding: 14px; }
.score-breakdown h5 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.breakdown-item { margin-bottom: 8px; }
.breakdown-label { font-size: 0.75rem; font-weight: 500; color: var(--text-slate); margin-bottom: 2px; display: block; }
.breakdown-item .progress { height: 16px; border-radius: 4px; background: #e9ecef; }
.breakdown-item .progress-bar { border-radius: 4px; font-size: 0.65rem; font-weight: 600; line-height: 16px; }

/* Finding Cards */
.finding-card {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.finding-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #fff5f5;
}
.finding-number {
    width: 28px; height: 28px;
    background: var(--critical-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.finding-header h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.finding-header p { font-size: 0.8rem; color: var(--text-slate); margin: 0; }
.finding-details { padding: 10px 14px; }
.finding-status { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.status-badge { padding: 2px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.status-non_compliant { background: rgba(220,53,69,0.08); color: #dc3545; }
.status-partial { background: rgba(255,193,7,0.1); color: #cc9a06; }
.status-compliant { background: rgba(25,135,84,0.08); color: #198754; }
.risk-high { font-size: 0.7rem; font-weight: 700; color: var(--critical-color); background: rgba(220,53,69,0.06); padding: 2px 8px; border-radius: 4px; }
.finding-recommendation { font-size: 0.85rem; color: var(--text-slate); line-height: 1.5; margin-bottom: 6px; }
.finding-priority { font-size: 0.8rem; color: var(--critical-color); }

/* Heat Map */
.heatmap-table th { font-size: 0.8rem; border-bottom: 2px solid var(--border-light) !important; background: #fcf8f4; }
.heatmap-table td { vertical-align: middle; font-size: 0.85rem; }
.heatmap-bar {
    position: relative;
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
}
.heatmap-fill { height: 100%; border-radius: 4px; }
.heatmap-bar span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 0.7rem; font-weight: 700; color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.risk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Gap Table */
.gap-table th { font-size: 0.8rem; background: #fcf8f4; }
.gap-table td { font-size: 0.85rem; vertical-align: middle; }

/* Roadmap */
.roadmap-phase {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.phase-header { padding: 14px 18px; color: white; }
.phase-critical { background: linear-gradient(135deg, #dc3545, #b02a37); }
.phase-high { background: linear-gradient(135deg, #fd7e14, #e06b0a); }
.phase-optimize { background: linear-gradient(135deg, var(--dark-blue), #043b6e); }
.phase-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.phase-header h4 { font-size: 1rem; font-weight: 700; margin: 0; }
.phase-header p { font-size: 0.8rem; margin: 2px 0 0; opacity: 0.85; }
.phase-items { padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phase-item { font-size: 0.85rem; color: var(--body-dark); display: flex; align-items: center; gap: 6px; }
.phase-item i { color: var(--teal-accent); font-size: 1rem; }

/* Conversion Section */
.conversion-section {
    background: linear-gradient(135deg, #fcf8f4, #e8f4f8);
    border: 1.5px solid var(--teal-accent);
}
.conversion-icon { font-size: 2.5rem; color: var(--teal-accent); margin-bottom: 12px; }
.conversion-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.conversion-text { font-size: 0.95rem; color: var(--text-slate); margin-bottom: 20px; }
.conversion-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Print */
@media print {
    .header-section-container, .hipaa-report-toolbar, .hipaa-footer, .custom-footer { display: none !important; }
    .report-section { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
    .report-header-card { break-inside: avoid; }
    body { background: white; font-size: 11pt; }
    .section-body { padding: 12px; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 2rem; }
    .phase-items { grid-template-columns: 1fr; }
    .cta-title { font-size: 1.5rem; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.6rem; }
    .section-title { font-size: 1.4rem; }
    .register-card { padding: 20px; }
    .report-header-card { padding: 16px; }
}
@media (max-width: 576px) {
    .telehealth-hero { padding: 30px 0; }
    .section { padding: 30px 0; }
    .question-card { padding: 16px; }
    .question-text { font-size: 1rem; }
}