/* =========================================================
   ECN AI TRIAGE
   COMPLETE CSS
========================================================= */


/* =========================================================
   ROOT VARIABLES — DARK MODE
========================================================= */

:root {

    --bg: #080c14;
    --bg-secondary: #0d121c;

    --surface: #111827;
    --surface-hover: #172033;

    --border: #263244;
    --border-light: #334155;

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --primary: #ef4444;
    --primary-dark: #dc2626;

    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);

    --success: #22c55e;
    --warning: #f59e0b;

    --danger-soft: rgba(239, 68, 68, 0.10);
    --warning-soft: rgba(245, 158, 11, 0.10);
    --success-soft: rgba(34, 197, 94, 0.10);

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.30);

    --radius: 14px;

    --transition:
        0.25s ease;

}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light {

    --bg: #f5f7fa;
    --bg-secondary: #ffffff;

    --surface: #ffffff;
    --surface-hover: #f8fafc;

    --border: #dbe2ea;
    --border-light: #cbd5e1;

    --text: #111827;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --primary: #dc2626;
    --primary-dark: #b91c1c;

    --accent: #0284c7;
    --accent-soft: rgba(2, 132, 199, 0.10);

    --success: #16a34a;
    --warning: #d97706;

    --danger-soft: rgba(220, 38, 38, 0.08);
    --warning-soft: rgba(217, 119, 6, 0.08);
    --success-soft: rgba(22, 163, 74, 0.08);

    --shadow:
        0 15px 40px rgba(15, 23, 42, 0.08);

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);

    transition:
        background-color var(--transition),
        color var(--transition);

}


button,
input,
select,
textarea {
    font-family: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    width: 100%;

    min-height: 76px;

    padding:
        0 42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(8, 12, 20, 0.92);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition);

}


body.light .navbar {

    background:
        rgba(255, 255, 255, 0.94);

}


/* =========================================================
   NAV LEFT
========================================================= */

.nav-left {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


/* =========================================================
   ECN HOME LINK
========================================================= */

.ecn-home-link {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    color: inherit;

    padding:
        6px 10px;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.ecn-home-icon {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(239, 68, 68, 0.10);

    border:
        1px solid rgba(239, 68, 68, 0.20);

    color:
        #ef4444;

    font-size: 18px;

    flex-shrink: 0;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.ecn-home-text {

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.ecn-home-text h1 {

    margin: 0;

    font-size: 21px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 0.5px;

    color: #f8fafc;

}


.ecn-home-text p {

    margin:
        4px 0 0;

    font-size: 7px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: 1.15px;

    color: #94a3b8;

    white-space: nowrap;

}


.ecn-home-link:hover {

    background:
        rgba(255, 255, 255, 0.05);

}


.ecn-home-link:hover .ecn-home-icon {

    background:
        rgba(239, 68, 68, 0.16);

    border-color:
        rgba(239, 68, 68, 0.40);

    transform:
        translateY(-1px);

}


.ecn-home-link:active {

    transform:
        scale(0.98);

}


/* =========================================================
   NAV RIGHT
========================================================= */

.nav-right {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown {

    position: relative;

}


.dropdown-btn {

    min-height: 42px;

    padding:
        0 15px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface);

    color:
        var(--text-secondary);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        all var(--transition);

}


.dropdown-btn:hover {

    border-color:
        var(--border-light);

    color:
        var(--text);

    background:
        var(--surface-hover);

}


.status-dot {

    width: 7px;

    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.10);

}


.dropdown-btn .arrow {

    margin-left: 3px;

    font-size: 10px;

    transition:
        transform var(--transition);

}


.dropdown.active .dropdown-btn .arrow {

    transform:
        rotate(180deg);

}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {

    position: absolute;

    top:
        calc(100% + 12px);

    right: 0;

    width: 340px;

    padding: 8px;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px);

    pointer-events: none;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);

}


.dropdown.active .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;

}


.dropdown-title {

    padding:
        12px 12px 10px;

    border-bottom:
        1px solid var(--border);

}


.dropdown-title h4 {

    color:
        var(--text);

    font-size: 13px;

    font-weight: 700;

}


.dropdown-title p {

    margin-top: 4px;

    color:
        var(--text-muted);

    font-size: 11px;

}


.dropdown-item {

    min-height: 65px;

    padding: 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    border-radius: 10px;

    transition:
        background var(--transition);

}


.dropdown-item:hover {

    background:
        var(--surface-hover);

}


.dropdown-item .left {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

}


.dropdown-item .icon {

    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 14px;

}


.dropdown-item .icon.red {

    color: #ef4444;

    background:
        rgba(239, 68, 68, 0.12);

}


.dropdown-item .icon.green {

    color: #22c55e;

    background:
        rgba(34, 197, 94, 0.12);

}


.dropdown-item .icon.blue {

    color: #38bdf8;

    background:
        rgba(56, 189, 248, 0.12);

}


.dropdown-item .icon.orange {

    color: #f59e0b;

    background:
        rgba(245, 158, 11, 0.12);

}


.dropdown-item h5 {

    color:
        var(--text);

    font-size: 12px;

    font-weight: 700;

}


.dropdown-item small {

    display: block;

    margin-top: 3px;

    color:
        var(--text-muted);

    font-size: 10px;

}


.dropdown-item > span {

    color:
        var(--text);

    font-size: 14px;

    font-weight: 800;

}


/* =========================================================
   SIGN IN
========================================================= */

.btn-signin {

    min-height: 42px;

    padding:
        0 16px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        transparent;

    color:
        var(--text);

    font-size: 13px;

    font-weight: 700;

    transition:
        all var(--transition);

}


.btn-signin:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

    background:
        var(--accent-soft);

}


.btn-signin i {

    font-size: 11px;

    transition:
        transform var(--transition);

}


.btn-signin:hover i {

    transform:
        translateX(3px);

}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size: 15px;

    transition:
        all var(--transition);

}


.theme-toggle:hover {

    color:
        var(--accent);

    border-color:
        var(--accent);

    background:
        var(--accent-soft);

    transform:
        translateY(-1px);

}


.theme-toggle i {

    transition:
        transform 0.3s ease;

}


.theme-toggle:active i {

    transform:
        rotate(25deg);

}


/* =========================================================
   PAGE
========================================================= */

.page-container {

    width: 100%;

    min-height:
        calc(100vh - 76px);

    padding:
        45px 25px 60px;

    display: flex;

    justify-content: center;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(56, 189, 248, 0.07),
            transparent 38%
        );

}


/* =========================================================
   TRIAGE CARD
========================================================= */

.triage-card {

    width: 100%;

    max-width: 960px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    overflow: hidden;

}


/* =========================================================
   CHAT HEADER
========================================================= */

.chat-header {

    padding:
        28px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid var(--border);

}


.chat-header-left {

    display: flex;

    align-items: center;

    gap: 15px;

}


.ai-icon-box {

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color:
        var(--accent);

    background:
        var(--accent-soft);

    border:
        1px solid rgba(56, 189, 248, 0.20);

    font-size: 18px;

}


.chat-header-content {

    min-width: 0;

}


.category-tag {

    display: inline-block;

    color:
        var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


.chat-header h1 {

    margin-top: 7px;

    color:
        var(--text);

    font-size: 27px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.025em;

}


.ai-status {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        8px 11px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    color:
        var(--text-muted);

    background:
        var(--bg-secondary);

    font-size: 10px;

    font-weight: 700;

}


/* =========================================================
   DISCLAIMER
========================================================= */

.alert-banner {

    margin:
        22px 30px 0;

    padding:
        13px 15px;

    display: flex;

    align-items: flex-start;

    gap: 11px;

    border:
        1px solid rgba(245, 158, 11, 0.20);

    border-radius: 10px;

    background:
        var(--warning-soft);

}


.alert-icon-box {

    flex-shrink: 0;

    color:
        var(--warning);

    font-size: 15px;

}


.alert-text {

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.6;

}


.alert-text strong {

    color:
        var(--text-secondary);

}


/* =========================================================
   CHAT AREA
========================================================= */

.chat-area {

    min-height: 300px;

    max-height: 520px;

    overflow-y: auto;

    padding:
        25px 30px 10px;

    scroll-behavior: smooth;

}


.chat-area::-webkit-scrollbar {

    width: 5px;

}


.chat-area::-webkit-scrollbar-track {

    background: transparent;

}


.chat-area::-webkit-scrollbar-thumb {

    background:
        var(--border-light);

    border-radius: 999px;

}


/* =========================================================
   MESSAGE ROW
========================================================= */

.message-row {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-bottom: 20px;

}


.user-row {

    flex-direction: row-reverse;

}


.message-avatar {

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 12px;

}


.ai-avatar {

    color:
        var(--accent);

    background:
        var(--accent-soft);

    border:
        1px solid rgba(56, 189, 248, 0.18);

}


.user-avatar {

    color:
        var(--text);

    background:
        rgba(148, 163, 184, 0.12);

    border:
        1px solid var(--border);

}


.message-content {

    max-width: 78%;

}


.user-row .message-content {

    text-align: right;

}


.message-name {

    margin-bottom: 5px;

    color:
        var(--text-muted);

    font-size: 9px;

    font-weight: 700;

}


.message-bubble {

    padding:
        13px 15px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    font-size: 12px;

    line-height: 1.65;

}


.ai-bubble {

    background:
        var(--bg-secondary);

    color:
        var(--text-secondary);

    border-top-left-radius: 4px;

}


.user-bubble {

    background:
        var(--accent-soft);

    color:
        var(--text);

    border-color:
        rgba(56, 189, 248, 0.20);

    border-top-right-radius: 4px;

}


.message-bubble p + p {

    margin-top: 9px;

}


/* =========================================================
   TRIAGE RESULT
========================================================= */

.result-area {

    width: 100%;

}


.triage-result {

    margin:
        5px 0 22px 45px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        var(--bg-secondary);

}


.result-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;

}


.result-label {

    color:
        var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


.urgency-badge {

    padding:
        6px 10px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.08em;

}


.urgency-red {

    color:
        #ef4444;

}


.urgency-yellow {

    color:
        #f59e0b;

}


.urgency-green {

    color:
        #22c55e;

}


.badge-red {

    color: #ef4444;

    background:
        rgba(239, 68, 68, 0.10);

    border:
        1px solid rgba(239, 68, 68, 0.20);

}


.badge-yellow {

    color: #f59e0b;

    background:
        rgba(245, 158, 11, 0.10);

    border:
        1px solid rgba(245, 158, 11, 0.20);

}


.badge-green {

    color: #22c55e;

    background:
        rgba(34, 197, 94, 0.10);

    border:
        1px solid rgba(34, 197, 94, 0.20);

}


.result-title {

    color:
        var(--text);

    font-size: 15px;

    font-weight: 800;

}


.result-description {

    margin-top: 7px;

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.65;

}


.result-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 14px;

}


.result-action {

    min-height: 34px;

    padding:
        0 12px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        var(--surface);

    color:
        var(--text-secondary);

    font-size: 10px;

    font-weight: 700;

    transition:
        all var(--transition);

}


.result-action:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

    background:
        var(--accent-soft);

}


/* =========================================================
   TYPING INDICATOR
========================================================= */

.hidden {

    display: none !important;

}


.typing-bubble {

    min-width: 60px;

    padding:
        12px 14px;

    display: flex;

    align-items: center;

    gap: 4px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    border-top-left-radius: 4px;

    background:
        var(--bg-secondary);

}


.typing-bubble span {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--text-muted);

    animation:
        typingAnimation 1.2s infinite ease-in-out;

}


.typing-bubble span:nth-child(2) {

    animation-delay:
        0.15s;

}


.typing-bubble span:nth-child(3) {

    animation-delay:
        0.3s;

}


@keyframes typingAnimation {

    0%,
    60%,
    100% {

        transform:
            translateY(0);

        opacity: 0.45;

    }

    30% {

        transform:
            translateY(-4px);

        opacity: 1;

    }

}


/* =========================================================
   SUGGESTIONS
========================================================= */

.suggestions-section {

    padding:
        20px 30px 22px;

    border-top:
        1px solid var(--border);

}


.suggestions-header {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

}


.suggestions-hint {

    color:
        var(--text-muted);

    font-size: 10px;

}


.chips-grid {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.chip-btn {

    min-height: 34px;

    padding:
        7px 12px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background:
        var(--bg-secondary);

    color:
        var(--text-secondary);

    font-size: 10px;

    font-weight: 600;

    text-align: left;

    transition:
        all var(--transition);

}


.chip-btn:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

    background:
        var(--accent-soft);

    transform:
        translateY(-1px);

}


/* =========================================================
   INPUT SECTION
========================================================= */

.chat-input-section {

    padding:
        0 30px 22px;

}


.input-form {

    display: flex;

    align-items: center;

    gap: 9px;

}


.input-wrapper {

    position: relative;

    flex: 1;

}


.input-icon {

    position: absolute;

    left: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--text-muted);

    font-size: 12px;

    pointer-events: none;

}


.chat-input {

    width: 100%;

    height: 50px;

    padding:
        0 65px 0 40px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background:
        var(--bg-secondary);

    color:
        var(--text);

    font-size: 12px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);

}


.chat-input::placeholder {

    color:
        var(--text-muted);

    opacity:
        0.70;

}


.chat-input:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.09);

}


.input-counter {

    position: absolute;

    right: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--text-muted);

    font-size: 8px;

    pointer-events: none;

}


.send-btn {

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color:
        #ffffff;

    font-size: 14px;

    box-shadow:
        0 8px 20px rgba(239, 68, 68, 0.15);

    transition:
        all var(--transition);

}


.send-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px rgba(239, 68, 68, 0.24);

}


.send-btn:active {

    transform:
        scale(0.96);

}


.input-disclaimer {

    margin-top: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    color:
        var(--text-muted);

    font-size: 9px;

}


.input-disclaimer i {

    color:
        var(--success);

}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.action-buttons-group {

    padding:
        0 30px 25px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}


.action-btn {

    min-height: 48px;

    padding:
        0 15px;

    display: flex;

    align-items: center;

    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--bg-secondary);

    color:
        var(--text-secondary);

    font-size: 11px;

    font-weight: 700;

    transition:
        all var(--transition);

}


.action-btn:hover {

    transform:
        translateY(-2px);

}


.btn-doctor:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

    background:
        var(--accent-soft);

}


.btn-hospital:hover {

    border-color:
        var(--success);

    color:
        var(--success);

    background:
        var(--success-soft);

}


.btn-icon {

    font-size: 14px;

}


.action-arrow {

    margin-left: auto;

    font-size: 9px;

    transition:
        transform var(--transition);

}


.action-btn:hover .action-arrow {

    transform:
        translateX(3px);

}


/* =========================================================
   FOOTER
========================================================= */

.triage-footer {

    min-height: 48px;

    padding:
        0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-top:
        1px solid var(--border);

    color:
        var(--text-muted);

    font-size: 9px;

}


.triage-footer span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light .ecn-home-text h1 {

    color:
        #111827;

}


body.light .chat-input,
body.light .chip-btn,
body.light .action-btn,
body.light .ai-status,
body.light .alert-banner {

    background:
        #ffffff;

}


body.light .triage-card {

    background:
        #ffffff;

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {

        padding:
            0 25px;

    }


    .page-container {

        padding:
            35px 20px 50px;

    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLET
========================================================= */

@media (max-width: 760px) {

    .navbar {

        min-height: 70px;

        padding:
            0 18px;

    }


    .nav-right {

        gap: 8px;

    }


    .dropdown-btn {

        width: 42px;

        padding: 0;

    }


    .dropdown-btn > span:not(.status-dot) {

        display: none;

    }


    .dropdown-btn .arrow {

        display: none;

    }


    .dropdown-menu {

        right: -55px;

        width:
            min(340px, calc(100vw - 30px));

    }


    .btn-signin {

        width: 42px;

        padding: 0;

    }


    .btn-signin span {

        display: none;

    }


    .chat-header {

        padding:
            23px;

    }


    .alert-banner {

        margin:
            18px 23px 0;

    }


    .chat-area {

        padding:
            22px 23px 8px;

    }


    .suggestions-section {

        padding:
            18px 23px 20px;

    }


    .chat-input-section {

        padding:
            0 23px 20px;

    }


    .action-buttons-group {

        padding:
            0 23px 22px;

    }


    .triage-footer {

        padding:
            0 23px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .navbar {

        padding:
            0 14px;

        gap: 10px;

    }


    .ecn-home-link {

        padding:
            5px 7px;

    }


    .ecn-home-icon {

        width: 38px;
        height: 38px;

        font-size: 16px;

    }


    .ecn-home-text h1 {

        font-size: 18px;

    }


    .ecn-home-text p {

        font-size: 6px;

        letter-spacing:
            0.9px;

    }


    .nav-right {

        gap: 6px;

    }


    .theme-toggle,
    .btn-signin,
    .dropdown-btn {

        width: 38px;

        height: 38px;

        min-height: 38px;

    }


    .page-container {

        padding:
            15px 10px 35px;

    }


    .triage-card {

        border-radius:
            12px;

    }


    .chat-header {

        padding:
            20px 17px;

        align-items:
            flex-start;

    }


    .chat-header-left {

        gap: 11px;

    }


    .ai-icon-box {

        width: 40px;
        height: 40px;

        border-radius: 9px;

        font-size: 15px;

    }


    .chat-header h1 {

        font-size: 21px;

    }


    .category-tag {

        font-size: 8px;

    }


    .ai-status {

        padding:
            6px 8px;

        font-size: 8px;

    }


    .ai-status span:last-child {

        display: none;

    }


    .alert-banner {

        margin:
            15px 17px 0;

        padding:
            11px 12px;

    }


    .alert-text {

        font-size: 10px;

    }


    .chat-area {

        min-height:
            260px;

        max-height:
            450px;

        padding:
            18px 17px 5px;

    }


    .message-content {

        max-width:
            84%;

    }


    .message-bubble {

        font-size:
            11px;

    }


    .triage-result {

        margin-left:
            0;

    }


    .suggestions-section {

        padding:
            16px 17px 18px;

    }


    .suggestions-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 4px;

    }


    .chips-grid {

        display:
            grid;

        grid-template-columns:
            1fr;

    }


    .chip-btn {

        width:
            100%;

        font-size:
            9px;

    }


    .chat-input-section {

        padding:
            0 17px 18px;

    }


    .input-form {

        gap:
            7px;

    }


    .chat-input {

        height:
            47px;

        font-size:
            11px;

        padding-left:
            37px;

    }


    .send-btn {

        width:
            47px;

        height:
            47px;

    }


    .input-disclaimer {

        text-align:
            center;

        line-height:
            1.5;

    }


    .action-buttons-group {

        grid-template-columns:
            1fr;

        padding:
            0 17px 20px;

    }


    .triage-footer {

        min-height:
            55px;

        padding:
            10px 17px;

        flex-direction:
            column;

        justify-content:
            center;

    }


    .dropdown-menu {

        position:
            fixed;

        top:
            70px;

        right:
            12px;

        width:
            calc(100vw - 24px);

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .ecn-home-text {

        display:
            none;

    }


    .chat-header h1 {

        font-size:
            19px;

    }


    .ai-status {

        display:
            none;

    }


    .dropdown-menu {

        top:
            65px;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline:
        2px solid var(--accent);

    outline-offset:
        2px;

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation:
            none !important;

    }

}

/* =========================================================
   FOOTER
========================================================= */

.ecn-footer {
    margin-top: 30px;

    padding: 40px 0 20px;

    border-top: 1px solid #e2e8f0;
}


.ecn-footer-grid {
    display: grid;

    grid-template-columns:
        1.2fr
        1.3fr
        1fr;

    gap: 50px;

    padding-bottom: 35px;
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.ecn-footer-logo {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 15px;
}


.ecn-logo-icon {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 17px;
}


.ecn-footer-logo strong {
    display: block;

    color: #172554;

    font-size: 21px;

    line-height: 1;

    font-weight: 850;

    letter-spacing: -0.5px;
}


.ecn-footer-logo small {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1px;
}


.ecn-footer-brand p {
    max-width: 310px;

    margin: 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER COLUMNS
========================================================= */

.ecn-footer-title {
    display: inline-block;

    margin-bottom: 17px;

    padding-bottom: 5px;

    border-bottom: 2px solid #e2e8f0;

    color: #64748b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.ecn-footer-column ul {
    list-style: none;

    margin: 0;

    padding: 0;
}


.ecn-footer-column li {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 11px;

    color: #475569;

    font-size: 12px;

    line-height: 1.5;
}


.ecn-footer-column li i {
    margin-top: 2px;

    color: #10b981;

    font-size: 11px;
}


/* =========================================================
   FOOTER CONTACT
========================================================= */

.ecn-footer-phone {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 7px;

    color: #fff;

    text-decoration: none;

    font-size: 18px;

    font-weight: 750;
}


.ecn-footer-phone i {
    color: #4f46e5;

    font-size: 14px;
}


.ecn-footer-note {
    margin: 0 0 13px;

    color: #94a3b8;

    font-size: 10px;
}


.ecn-footer-email {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #64748b;

    text-decoration: none;

    font-size: 11px;

    transition: color 0.2s ease;
}


.ecn-footer-email:hover {
    color: #4f46e5;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.ecn-footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 19px;

    border-top: 1px solid #f1f5f9;

    color: #94a3b8;

    font-size: 10px;
}


.ecn-footer-secure {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.ecn-footer-secure i {
    color: #10b981;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .ecn-partner-main {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .ecn-pricing-grid {
        max-width: 650px;
    }

    .ecn-footer-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .ecn-footer-brand {
        grid-column: 1 / -1;
    }

}


@media (max-width: 700px) {

    .page-sections-container {
        padding: 0 14px;
    }


    /* SOS */

    .ecn-sos-banner {
        flex-direction: column;

        align-items: flex-start;

        padding: 25px 22px;

        gap: 22px;
    }


    .ecn-sos-content h2 {
        font-size: 22px;
    }


    .ecn-sos-action {
        width: 100%;
    }


    .ecn-btn-sos {
        width: 100%;
    }


    /* PARTNER */

    .ecn-partner-section {
        padding: 30px 20px;

        border-radius: 15px;
    }


    .ecn-partner-content h2 {
        font-size: 28px;
    }


    .ecn-partner-actions {
        align-items: stretch;

        flex-direction: column;
    }


    .ecn-btn-primary,
    .ecn-btn-secondary {
        width: 100%;

        justify-content: center;
    }


    .ecn-pricing-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* FOOTER */

    .ecn-footer {
        padding-top: 30px;
    }


    .ecn-footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .ecn-footer-brand {
        grid-column: auto;
    }


    .ecn-footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        line-height: 1.5;
    }

}


@media (max-width: 430px) {

    .ecn-pricing-grid {
        grid-template-columns: 1fr;
    }

    .ecn-price-card {
        min-height: 120px;
    }

}
