/* =========================================================
   FREDELIN TURISMO
   PERFIL DO CLIENTE / AGENTE
   css/perfil.css
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   TOPO
   ========================================================= */

.topo {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    padding: 18px 6%;
}

.marca {
    display: flex;

    align-items: center;

    gap: 18px;

    max-width: 1200px;

    margin: 0 auto;
}

.logo {
    width: 72px;
    height: 72px;

    object-fit: contain;

    border-radius: 12px;
}

.marca h1 {
    font-size: 24px;

    font-weight: 700;

    color: #0f172a;

    letter-spacing: 0.3px;
}

.marca p {
    margin-top: 3px;

    font-size: 13px;

    color: #64748b;
}


/* =========================================================
   SELETOR DE IDIOMA
   ========================================================= */

.seletor-idioma {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;
}

.seletor-idioma label {
    font-size: 18px;
}

.seletor-idioma select {
    min-width: 150px;

    padding: 7px 10px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    background: #ffffff;

    color: #374151;

    font-family: "Poppins", sans-serif;

    font-size: 13px;

    cursor: pointer;

    outline: none;

    transition: 0.2s ease;
}

.seletor-idioma select:hover {
    border-color: #2563eb;
}

.seletor-idioma select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   CABEÇALHO DO PAINEL
   ========================================================= */

.painel-header {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 6%;

    background: #0f172a;

    color: #ffffff;
}


/* =========================================================
   TÍTULO + FOTO
   ========================================================= */

.painel-titulo {
    display: flex;

    align-items: center;

    gap: 14px;
}


/* =========================================================
   FOTO PEQUENA DO CABEÇALHO
   ========================================================= */

.mini-perfil {
    width: 55px;

    height: 55px;

    border-radius: 50%;

    overflow: hidden;

    border: 3px solid #ffffff;

    background: #e5e7eb;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.18);

    flex-shrink: 0;
}

.mini-perfil img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   TÍTULO DO PAINEL
   ========================================================= */

.painel-titulo h1 {
    margin: 0;

    font-size: 24px;

    font-weight: 700;

    color: #ffffff;
}

.painel-titulo p {
    margin: 2px 0 0;

    font-size: 13px;

    color: #cbd5e1;
}


/* =========================================================
   MENU DO PAINEL
   ========================================================= */

.painel-header nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    flex-wrap: wrap;
}

.painel-header nav a {
    text-decoration: none;

    color: #ffffff;

    padding: 9px 14px;

    border-radius: 8px;

    font-size: 13px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.painel-header nav a:hover {
    background: rgba(255, 255, 255, 0.12);

    transform: translateY(-2px);
}

.painel-header nav a.sair {
    background: #dc2626;
}

.painel-header nav a.sair:hover {
    background: #b91c1c;
}


/* =========================================================
   CONTAINER DO PERFIL
   ========================================================= */

.perfil-container {
    width: 100%;

    padding: 45px 20px;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    flex: 1;
}


/* =========================================================
   CARD
   ========================================================= */

.perfil-card {
    width: 100%;

    max-width: 850px;

    background: #ffffff;

    border-radius: 18px;

    padding: 35px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    border: 1px solid #e5e7eb;
}


/* =========================================================
   FOTO REAL DO PERFIL
   ========================================================= */

.perfil-foto-container {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    margin-bottom: 30px;
}


/* =========================================================
   CÍRCULO DA FOTO
   ========================================================= */

.perfil-foto {
    width: 150px;

    height: 150px;

    border-radius: 50%;

    overflow: hidden;

    border: 5px solid #ffffff;

    background: #f1f5f9;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.20);

    position: relative;
}


/* =========================================================
   IMAGEM
   ========================================================= */

.perfil-foto img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   BOTÃO ALTERAR FOTO
   ========================================================= */

.btn-foto {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 15px;

    padding: 10px 20px;

    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-foto:hover {
    background: #1d4ed8;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.25);

    transform: translateY(-2px);
}


/* =========================================================
   INFORMAÇÃO DA FOTO
   ========================================================= */

.foto-info {
    margin-top: 8px;

    font-size: 12px;

    line-height: 1.5;

    color: #64748b;

    text-align: center;
}


/* =========================================================
   TÍTULO DO CARD
   ========================================================= */

.perfil-card h2 {
    margin-bottom: 25px;

    font-size: 21px;

    font-weight: 700;

    color: #0f172a;

    text-align: center;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.perfil-form {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


/* =========================================================
   CAMPOS
   ========================================================= */

.campo {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.campo label {
    font-size: 13px;

    font-weight: 600;

    color: #374151;
}

.campo input,
.campo select {
    width: 100%;

    height: 46px;

    padding: 0 13px;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.campo input::placeholder {
    color: #9ca3af;
}

.campo input:hover,
.campo select:hover {
    border-color: #94a3b8;
}

.campo input:focus,
.campo select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

.campo select {
    cursor: pointer;
}


/* =========================================================
   CAMPOS DE LARGURA TOTAL
   ========================================================= */

.campo:nth-child(1),
.campo:nth-child(2),
.campo:nth-child(8) {
    grid-column: span 2;
}


/* =========================================================
   BOTÃO SALVAR
   ========================================================= */

.perfil-form button {
    grid-column: span 2;

    width: 100%;

    min-height: 48px;

    margin-top: 8px;

    border: none;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.perfil-form button:hover {
    background: #1d4ed8;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.25);

    transform: translateY(-1px);
}

.perfil-form button:active {
    transform: translateY(0);
}

.perfil-form button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   ESTADO DE ERRO
   ========================================================= */

.campo input.erro,
.campo select.erro {
    border-color: #dc2626;

    background: #fff7f7;
}

.campo input.erro:focus,
.campo select.erro:focus {
    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.12);
}


/* =========================================================
   MENSAGEM DE ERRO
   ========================================================= */

.mensagem-erro {
    color: #dc2626;

    font-size: 12px;

    margin-top: 3px;
}


/* =========================================================
   MENSAGEM DE SUCESSO
   ========================================================= */

.mensagem-sucesso {
    padding: 12px 15px;

    margin-bottom: 20px;

    border-radius: 8px;

    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;

    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width: 100%;

    padding: 22px 20px;

    background: #0f172a;

    color: #cbd5e1;

    text-align: center;

    font-size: 13px;

    margin-top: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .topo {
        padding: 15px 20px;
    }


    .marca {
        gap: 12px;
    }


    .logo {
        width: 60px;

        height: 60px;
    }


    .marca h1 {
        font-size: 19px;
    }


    .marca p {
        font-size: 11px;
    }


    /* PAINEL */

    .painel-header {
        padding: 14px 20px;

        flex-direction: column;

        align-items: flex-start;
    }


    .painel-titulo {
        width: 100%;
    }


    .painel-header nav {
        width: 100%;

        justify-content: flex-start;
    }


    .painel-header nav a {
        flex: 1;

        text-align: center;
    }


    /* PERFIL */

    .perfil-container {
        padding: 30px 15px;
    }


    .perfil-card {
        padding: 25px 20px;
    }


    .perfil-form {
        grid-template-columns: 1fr;
    }


    .campo:nth-child(1),
    .campo:nth-child(2),
    .campo:nth-child(8) {
        grid-column: span 1;
    }


    .perfil-form button {
        grid-column: span 1;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 480px) {

    .topo {
        padding: 14px 15px;
    }


    .marca {
        align-items: flex-start;
    }


    .logo {
        width: 50px;

        height: 50px;
    }


    .marca h1 {
        font-size: 16px;
    }


    .marca p {
        font-size: 10px;
    }


    /* IDIOMA */

    .seletor-idioma {
        margin-top: 7px;
    }


    .seletor-idioma select {
        min-width: 125px;

        font-size: 11px;

        padding: 6px 8px;
    }


    /* CABEÇALHO */

    .painel-header {
        padding: 13px 15px;
    }


    .mini-perfil {
        width: 45px;

        height: 45px;
    }


    .painel-titulo h1 {
        font-size: 18px;
    }


    .painel-titulo p {
        font-size: 11px;
    }


    .painel-header nav {
        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;
    }


    .painel-header nav a {
        width: 100%;

        font-size: 11px;

        padding: 8px 5px;
    }


    .painel-header nav a.sair {
        grid-column: span 2;
    }


    /* FOTO */

    .perfil-foto {
        width: 125px;

        height: 125px;
    }


    .btn-foto {
        font-size: 12px;

        padding: 9px 17px;
    }


    /* PERFIL */

    .perfil-container {
        padding: 20px 10px;
    }


    .perfil-card {
        padding: 22px 15px;

        border-radius: 14px;
    }


    .perfil-card h2 {
        font-size: 19px;

        margin-bottom: 22px;
    }


    .perfil-form {
        gap: 16px;
    }


    .campo input,
    .campo select {
        height: 44px;

        font-size: 13px;
    }


    .perfil-form button {
        min-height: 46px;

        font-size: 14px;
    }


    footer {
        font-size: 11px;

        padding: 18px 10px;
    }

}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition: none !important;

        animation: none !important;
    }

}