﻿/* ==============================
    Variáveis de Cores e Fontes
   ============================== */
:root {
    --verde-unimed: #00995d;
    --verde-escuro: #004e4c;
    --bege-claro: #ece3d9;
    --bege-escuro: #e5d8c9;
    --cinza-claro: #cccccc;
    --texto-principal: #0f172a;
    --fundo-card: #fff;
    --sombra-leve: rgba(0, 0, 0, 0.1);
    --sombra-pesada: rgba(0, 0, 0, 0.15);
}

/* ==============================
    Reset e Corpo
   ============================== */
body {
    margin: 0;
    padding: 0;
    background: var(--bege-claro);
    color: var(--texto-principal);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
    font-size: clamp(1.2rem, 2.5vw + 1.2rem, 1.5rem);
}

/* ==============================
    Utilitários
   ============================== */
.box-shadow {
    box-shadow: 0 4px 15px var(--sombra-leve);
}

.text-bold {
    font-weight: 800;
}

/* ==============================
    Header
   ============================== */
.menu-topo {
    background: linear-gradient(120deg, #004e4c, #00995d);
    color: #fff;
    padding: 1rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-sizing: border-box;
}

    .menu-topo img {
        height: 60px;
        max-width: 100%;
        padding-right: 10px;
    }

    .menu-topo label {
        font-weight: 600;
        color: #fff;
        font-size: 1.3rem;
    }

.small-info {
    font-size: 1.1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .menu-topo {
        padding: 1.5rem 1.5rem;
        gap: 0.75rem;
    }

        .menu-topo img {
            height: 50px;
            padding-right: 10px;
        }

    .small-info {
        font-size: 1.4rem;
        white-space: normal;
    }
}

/* ==============================
    Alerta de Demanda
   ============================== */
.alert-demand {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #fae8af;
    color: var(--verde-escuro);
    border: 2px dashed #e6cc5d;
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

    .alert-demand .icon {
        flex-shrink: 0;
        font-size: clamp(2rem, 4vw, 2.8rem);
        line-height: 1;
    }

    .alert-demand .alert-text {
        flex: 1;
        word-break: break-word;
    }

    .alert-demand b {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        line-height: 1.3;
    }

/* ==============================
    Container e Cartões
   ============================== */
.container-jornada {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: calc(20px + 4rem);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.card {
    background: var(--fundo-card);
    border: 1px solid var(--cinza-claro);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--fundo-card);
    border: 2px solid var(--verde-escuro);
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 15px var(--sombra-leve);
}

    .info-card a {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .info-card img {
        width: 85px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .info-card div {
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--verde-escuro);
    }

/* ==============================
    Introdução
   ============================== */
.intro {
    background: var(--bege-claro);
    border: 1px solid var(--bege-escuro);
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: var(--verde-escuro);
}

    .intro h2 {
        margin: 0 0 0.8rem;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        color: var(--verde-unimed);
    }

    .intro p {
        margin: 0;
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
        line-height: 1.6;
    }

/* ==============================
    Hero
   ============================== */
.hero {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
    color: #eafaf3;
    background: var(--verde-escuro);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

    .hero b {
        font-size: clamp(1.4rem, 2.5vw, 2.0rem);
        line-height: 1.3;
    }

    .hero .subtext {
        opacity: 0.8;
        font-size: clamp(1.2rem, 2vw, 1.5rem);
    }

/* ==============================
    Grid
   ============================== */
.grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==============================
    Vídeo e Overlay
   ============================== */
.videoWrap {
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid var(--bege-escuro);
    overflow: hidden;
    background: var(--fundo-card);
    position: relative;
}

video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.overlayTip {
    position: absolute;
    inset: auto 1.2rem 1.2rem 1.2rem;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--bege-escuro);
    color: var(--verde-escuro);
    padding: 1.2rem 1.5rem;
    border-radius: 1.2rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

    .overlayTip .overlay-icon {
        width: clamp(1.8rem, 3vw, 2.2rem);
        height: clamp(1.8rem, 3vw, 2.2rem);
        border: 2px solid var(--verde-escuro);
        border-radius: 0.2rem;
        position: relative;
        flex-shrink: 0;
    }

        .overlayTip .overlay-icon::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60%;
            height: 60%;
            background-color: var(--verde-escuro);
        }

/* ==============================
    Labels e Separadores
   ============================== */
label {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #5d6b78;
    font-weight: 600;
}

.or {
    display: grid;
    place-items: center;
    color: var(--verde-escuro);
    font-weight: 800;
    margin: 1rem 0;
}

#NrCpf, #dataNascimento {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.8rem !important;
    box-sizing: border-box !important;
}

/* ==============================
    Ações e Botões
   ============================== */
.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    border-radius: 1.4rem;
    border: 1px solid transparent;
    background: var(--verde-unimed);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
}

    .btn.ghost {
        background: transparent;
        color: var(--verde-unimed);
        border-color: var(--verde-unimed);
    }

    .btn.cadastrar {
        background: var(--verde-unimed);
    }

/* ==============================
    Ajuda e Footer
   ============================== */
.help {
    background: #e1ecd5;
    border: 1px dashed #bcd1a8;
    color: #243b2f;
    padding: 1.5rem;
    border-radius: 1.6rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-top: 1.5rem;
}

.footer {
    margin-top: 2rem;
    color: #24463f;
    text-align: center;
}

    .footer img {
        max-width: 40%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

/* ==============================
    Ajustes de Layout para Telas Maiores
   ============================== */
@media (min-width: 768px) {
    .container {
        padding-top: 2rem;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .hero {
        padding: 2rem;
    }

    .intro {
        padding: 2rem;
    }

    .card {
        padding: 2rem;
        gap: 2rem;
    }

    .alert-demand {
        padding: 2rem 3rem;
    }

    .menu-topo {
        justify-content: space-between;
    }

    .small-info {
        white-space: normal;
        flex: 1;
        text-align: right;
    }
}
