/* -------------------------------------------------------------------------- */


/* SOS OLDAL */


/* -------------------------------------------------------------------------- */

.sos-page {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 86px) 0 100px;
    overflow: hidden;
    background: transparent;
}

.sos-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 36%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.56) 100%), url("../assets/images/backgrounds/main-bg.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.sos-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 14%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.24) 84%, rgba(0, 0, 0, 0.68) 100%);
}

.sos-inner {
    position: relative;
    z-index: 2;
}


/* -------------------------------------------------------------------------- */


/* CÍMRÉSZ */


/* -------------------------------------------------------------------------- */

.sos-heading {
    max-width: 1120px;
    margin: 0 auto 44px;
    text-align: center;
}

.sos-heading-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(183, 255, 0, 0.44);
}

.sos-heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0 0 18px;
    text-transform: uppercase;
    font-style: italic;
    font-size: clamp(2.45rem, 5.6vw, 5.2rem);
    line-height: 0.95;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.95), 0 0 18px rgba(255, 255, 255, 0.08);
}

.sos-heading-title>span:nth-child(2) {
    display: inline-block;
}

.sos-heading-text {
    max-width: 920px;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    line-height: 1.65;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.95);
}

.title-side {
    position: relative;
    flex: 0 0 110px;
    height: 18px;
    display: inline-block;
}

.title-side::before,
.title-side::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%) skewX(-28deg);
    height: 12px;
    border-radius: 2px;
    background: linear-gradient( 90deg, rgba(145, 255, 0, 0.3), rgba(183, 255, 0, 1));
    box-shadow: 0 0 12px rgba(183, 255, 0, 0.72), 0 0 24px rgba(183, 255, 0, 0.28);
}

.title-side-left::before {
    left: 0;
    width: 52px;
}

.title-side-left::after {
    left: 20px;
    width: 34px;
}

.title-side-right::before {
    right: 0;
    width: 52px;
}

.title-side-right::after {
    right: 20px;
    width: 34px;
}


/* -------------------------------------------------------------------------- */


/* SOS KÁRTYÁK */


/* -------------------------------------------------------------------------- */

.sos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.sos-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(183, 255, 0, 0.22);
    background: linear-gradient( 180deg, rgba(16, 16, 16, 0.76), rgba(3, 3, 3, 0.88));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sos-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient( circle at top right, rgba(183, 255, 0, 0.1), transparent 35%);
    opacity: 0.95;
}

.sos-card-head {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.sos-card-head span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sos-card-head h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.4rem);
    line-height: 1.05;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-style: italic;
}

.sos-card-head p {
    color: var(--color-muted);
}


/* -------------------------------------------------------------------------- */


/* TELEFONSZÁM MEZŐ */


/* -------------------------------------------------------------------------- */

.sos-phone-box {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(183, 255, 0, 0.18);
    background: linear-gradient( 135deg, rgba(183, 255, 0, 0.07), rgba(0, 0, 0, 0.28));
}

.sos-phone-box label {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.95rem;
}

.sos-phone-box input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(183, 255, 0, 0.18);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.36);
    color: #ffffff;
    padding: 0 16px;
    outline: none;
    font-weight: 850;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.sos-phone-box input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.sos-phone-box input:focus {
    border-color: rgba(183, 255, 0, 0.48);
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 0 0 3px rgba(183, 255, 0, 0.08), 0 0 20px rgba(183, 255, 0, 0.1);
}

.sos-phone-box input.is-invalid {
    border-color: rgba(255, 90, 90, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.08);
}

.sos-phone-box small {
    color: var(--color-muted-2);
    font-size: 0.88rem;
}


/* -------------------------------------------------------------------------- */


/* GPS GOMB */


/* -------------------------------------------------------------------------- */

.sos-location-button {
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: 100%;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient( 135deg, var(--color-primary), var(--color-primary-2));
    color: #000000;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(183, 255, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.52);
    animation: sosButtonPulse 1.85s ease-in-out infinite;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.sos-location-button::before {
    content: "";
    position: absolute;
    inset: -7px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(183, 255, 0, 0.42);
    opacity: 0;
    transform: scale(0.96);
    animation: sosButtonOuterPulse 1.85s ease-in-out infinite;
}

.sos-location-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(183, 255, 0, 0.7), 0 22px 46px rgba(0, 0, 0, 0.58);
    filter: brightness(1.04);
}

.sos-location-button:active {
    transform: translateY(0) scale(0.99);
}

.sos-location-button:disabled {
    cursor: wait;
    filter: grayscale(0.2) brightness(0.92);
    animation-duration: 1.15s;
}

.sos-location-button:disabled::before {
    animation-duration: 1.15s;
}

.sos-pulse-dot {
    position: relative;
    width: 18px;
    height: 22px;
    flex: 0 0 18px;
    display: inline-block;
    border-radius: 50% 50% 50% 0;
    background: #000000;
    transform: rotate(-45deg);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.24);
}

.sos-pulse-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(183, 255, 0, 0.72);
}

.sos-pulse-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 18px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    transform: translateX(-50%) rotate(45deg);
    filter: blur(2px);
    opacity: 0.55;
}

.sos-location-button-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    transform: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes sosButtonPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(183, 255, 0, 0.46), 0 18px 40px rgba(0, 0, 0, 0.52);
    }
    50% {
        box-shadow: 0 0 34px rgba(183, 255, 0, 0.82), 0 0 58px rgba(183, 255, 0, 0.24), 0 22px 48px rgba(0, 0, 0, 0.6);
    }
}

@keyframes sosButtonOuterPulse {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    35% {
        opacity: 0.78;
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}


/* -------------------------------------------------------------------------- */


/* STÁTUSZ + EREDMÉNY */


/* -------------------------------------------------------------------------- */

.sos-status {
    position: relative;
    z-index: 2;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(183, 255, 0, 0.16);
    background: rgba(0, 0, 0, 0.26);
    color: var(--color-muted);
}

.sos-status.is-loading {
    color: var(--color-primary);
}

.sos-status.is-success {
    color: var(--color-primary);
    border-color: rgba(183, 255, 0, 0.28);
    background: rgba(183, 255, 0, 0.07);
}

.sos-status.is-error {
    color: #ffb7b7;
    border-color: rgba(255, 80, 80, 0.32);
    background: rgba(255, 0, 0, 0.08);
}

.sos-location-result {
    position: relative;
    z-index: 2;
    margin: 0 0 22px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(183, 255, 0, 0.18);
    background: linear-gradient( 135deg, rgba(183, 255, 0, 0.07), rgba(0, 0, 0, 0.28));
}

.sos-coordinates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sos-coordinates div {
    padding: 13px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
}

.sos-coordinates span {
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted-2);
    font-size: 0.82rem;
}

.sos-coordinates strong {
    display: block;
    color: #ffffff;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.sos-map-link {
    display: inline-flex;
    color: var(--color-primary);
    font-weight: 950;
    text-shadow: 0 0 12px rgba(183, 255, 0, 0.32);
}

.sos-action-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sos-action-row .btn {
    flex: 1 1 190px;
}


/* -------------------------------------------------------------------------- */


/* LÉPÉSEK */


/* -------------------------------------------------------------------------- */

.sos-steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sosSteps;
}

.sos-steps li {
    position: relative;
    padding: 16px 16px 16px 58px;
    border-radius: 18px;
    border: 1px solid rgba(183, 255, 0, 0.12);
    background: rgba(0, 0, 0, 0.24);
    counter-increment: sosSteps;
}

.sos-steps li::before {
    content: counter(sosSteps);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--color-primary);
    color: #000000;
    font-weight: 950;
    box-shadow: 0 0 16px rgba(183, 255, 0, 0.45);
}

.sos-steps strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

.sos-steps span {
    display: block;
    color: var(--color-muted);
    font-size: 0.94rem;
}

.sos-warning {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(183, 255, 0, 0.16);
    background: rgba(183, 255, 0, 0.06);
}

.sos-warning strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.sos-warning span {
    display: block;
    color: var(--color-muted);
}

.sos-bottom-note {
    max-width: 920px;
    margin: 34px auto 0;
    padding: 20px 24px;
    border-radius: 22px;
    border: 1px solid rgba(183, 255, 0, 0.16);
    background: rgba(0, 0, 0, 0.28);
    color: var(--color-muted);
    text-align: center;
}


/* -------------------------------------------------------------------------- */


/* RESZPONZÍV */


/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .sos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sos-heading-title {
        gap: 14px;
    }
    .title-side {
        flex-basis: 70px;
    }
    .title-side-left::before,
    .title-side-right::before {
        width: 36px;
    }
    .title-side-left::after,
    .title-side-right::after {
        width: 24px;
    }
    .sos-heading-text {
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .sos-page {
        padding-top: calc(var(--header-height) + 58px);
    }
    .sos-card {
        padding: 22px;
    }
    .sos-heading-title {
        gap: 10px;
    }
    .title-side {
        flex-basis: 46px;
        height: 12px;
    }
    .title-side-left::before,
    .title-side-right::before {
        width: 24px;
        height: 8px;
    }
    .title-side-left::after,
    .title-side-right::after {
        width: 16px;
        height: 8px;
    }
    .sos-coordinates {
        grid-template-columns: 1fr;
    }
}