/* ==========================================
   ECN EMERGENCY SOS
   Matching ECN Main Website Design System
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ==========================================
   GLOBAL
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ecn-bg: #f8fafc;
    --ecn-dark: #090d16;
    --ecn-dark-2: #0f1724;

    --ecn-red: #ef4444;
    --ecn-red-dark: #dc2626;
    --ecn-red-soft: #fff1f2;

    --ecn-green: #10b981;
    --ecn-blue: #3b82f6;

    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(239, 68, 68, 0.07),
            transparent 35%
        ),
        var(--ecn-bg);

    color: var(--text-dark);
    min-height: 100vh;
}


/* ==========================================
   HEADER
========================================== */

.sos-header {
    height: 72px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.92);

    border-bottom: 1px solid #e5e7eb;

    position: relative;
    z-index: 10;
}


/* ECN BRAND */

.ecn-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: var(--text-dark);
}

.brand-icon {
    width: 38px;
    height: 38px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--ecn-dark);
    color: white;

    font-size: 17px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1;

    letter-spacing: -0.5px;
}

.brand-text span {
    margin-top: 4px;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: #64748b;
}


/* HEADER STATUS */

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #475569;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--ecn-green);

    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.1);
}


/* ==========================================
   BACK BUTTON
========================================== */

.back-btn {
    position: absolute;

    top: 98px;
    left: 5%;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    color: #64748b;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: rgba(255, 255, 255, 0.85);

    transition: all 0.2s ease;
}

.back-btn:hover {
    color: var(--text-dark);
    border-color: #cbd5e1;
    transform: translateX(-2px);
}


/* ==========================================
   MAIN SOS AREA
========================================== */

.sos-page {
    min-height: calc(100vh - 132px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 90px 20px 70px;
}

.sos-content {
    width: 100%;
    max-width: 720px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* ==========================================
   EMERGENCY LABEL
========================================== */

.emergency-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--ecn-red-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;

    padding-bottom: 6px;

    border-bottom: 2px solid var(--ecn-red);

    margin-bottom: 30px;
}

.emergency-label i {
    font-size: 6px;
}


/* ==========================================
   SOS ICON
========================================== */

.sos-icon-wrapper {
    width: 126px;
    height: 126px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;
}

.sos-icon-circle {
    width: 104px;
    height: 104px;

    background: var(--ecn-red-soft);

    border: 1px solid #fecdd3;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    z-index: 2;
}

.sos-icon-circle i {
    color: var(--ecn-red);

    font-size: 48px;
}

.shield-alert {
    position: absolute;

    top: 42px;
    left: 50%;

    transform: translateX(-50%);

    color: white;

    font-size: 15px;
    font-weight: 800;

    z-index: 3;
}


/* Pulse rings */

.pulse {
    position: absolute;

    width: 104px;
    height: 104px;

    border-radius: 50%;

    border: 1px solid rgba(239, 68, 68, 0.18);

    animation: sosPulse 2.5s infinite;
}

.pulse-two {
    animation-delay: 1.2s;
}

@keyframes sosPulse {

    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }

}


/* ==========================================
   PUBLIC SOS LABEL
========================================== */

.public-sos {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;

    color: #64748b;

    margin-bottom: 12px;
}


/* ==========================================
   HEADING
========================================== */

.sos-content h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);

    line-height: 1.05;

    letter-spacing: -1.8px;

    font-weight: 800;

    color: var(--text-dark);

    margin-bottom: 18px;
}


/* ==========================================
   DESCRIPTION
========================================== */

.sos-description {
    max-width: 580px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.65;

    margin-bottom: 30px;
}


/* ==========================================
   PRIMARY CALL BUTTON
========================================== */

.primary-call-btn {
    width: 100%;
    max-width: 470px;

    display: flex;
    align-items: center;

    text-align: left;

    gap: 14px;

    padding: 15px 18px;

    background: var(--ecn-red);

    color: white;

    text-decoration: none;

    border-radius: 7px;

    box-shadow:
        0 10px 25px rgba(239, 68, 68, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary-call-btn:hover {
    background: var(--ecn-red-dark);

    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(239, 68, 68, 0.25);
}

.call-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.15);

    border-radius: 5px;

    font-size: 17px;
}

.call-content {
    flex: 1;

    display: flex;
    flex-direction: column;
}

.call-content small {
    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    opacity: 0.8;

    margin-bottom: 3px;
}

.call-content strong {
    font-size: 17px;

    font-weight: 700;
}

.call-arrow {
    font-size: 14px;

    opacity: 0.8;
}


/* ==========================================
   DISCLAIMER
========================================== */

.charges-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 10px;

    color: #94a3b8;

    margin-top: 10px;

    margin-bottom: 30px;
}

.charges-disclaimer i {
    font-size: 10px;
}


/* ==========================================
   ACTION GRID
========================================== */

.action-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 28px;
}

.action-card {
    min-height: 112px;

    display: flex;
    align-items: center;

    text-align: left;

    gap: 13px;

    padding: 17px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 7px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.action-card:hover {
    border-color: #cbd5e1;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.06);
}

.action-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}

.action-icon.callback {
    color: var(--ecn-blue);
    background: #eff6ff;
}

.action-icon.silent {
    color: var(--ecn-red);
    background: var(--ecn-red-soft);
}

.action-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.action-content strong {
    color: var(--text-dark);

    font-size: 13px;

    font-weight: 700;
}

.action-content small {
    color: #64748b;

    font-size: 10px;

    line-height: 1.5;
}

.action-arrow {
    color: #94a3b8;

    font-size: 10px;
}


/* ==========================================
   OFFICIAL EMERGENCY SERVICES
========================================== */

.official-emergency {
    width: 100%;

    padding: 17px 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 7px;

    margin-bottom: 20px;
}

.official-title {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #475569;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 13px;
}

.official-title i {
    color: var(--ecn-red);

    font-size: 11px;
}

.emergency-links {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;
}

.emergency-links a {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px;

    text-decoration: none;

    border-radius: 5px;

    transition: background 0.2s ease;
}

.emergency-links a:hover {
    background: #f8fafc;
}

.emergency-links span {
    font-size: 14px;

    font-weight: 800;

    color: var(--text-dark);
}

.emergency-links small {
    font-size: 9px;

    color: #94a3b8;

    margin-top: 3px;
}


/* ==========================================
   FOOTER DISCLAIMER
========================================== */

.footer-disclaimer {
    max-width: 610px;

    font-size: 10px;

    line-height: 1.6;

    color: #94a3b8;
}


/* ==========================================
   FOOTER
========================================== */

.sos-footer {
    min-height: 64px;

    padding: 18px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);

    background: white;

    color: #94a3b8;

    font-size: 10px;
}

.sos-footer div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sos-footer strong {
    color: var(--text-dark);

    font-size: 14px;
}

.sos-footer span {
    letter-spacing: 0.3px;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 700px) {

    .sos-header {
        padding: 0 20px;
    }

    .header-status {
        display: none;
    }

    .back-btn {
        top: 88px;
        left: 20px;
    }

    .sos-page {
        padding: 105px 18px 50px;
    }

    .sos-content h1 {
        font-size: 2.5rem;

        letter-spacing: -1.2px;
    }

    .sos-description {
        font-size: 14px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: 96px;
    }

    .emergency-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .sos-footer {
        flex-direction: column;
        gap: 10px;

        text-align: center;
    }
}


@media (max-width: 420px) {

    .brand-text span {
        display: none;
    }

    .sos-icon-wrapper {
        margin-bottom: 20px;
    }

    .sos-content h1 {
        font-size: 2.2rem;
    }

    .primary-call-btn {
        padding: 13px;
    }

    .call-content strong {
        font-size: 15px;
    }

    .call-content small {
        font-size: 8px;
    }

}