/* Reset e Fonte Padrão */
* {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
    border: none;
    outline: none;
}

/* Estilos Globais */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    background: url("./images/circle-scatter-haikei.svg"), #2b17bf;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    gap: 50px;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

header img {
    width: 150px;
}

/* Formulário */
form {
    background: rgba(255, 255, 255, 0.21);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(17.7px);
    -webkit-backdrop-filter: blur(17.7px);
    min-width: 300px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

form h1 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

/* Labels e Inputs */
label {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    color: #fff;
    font-size: 14px;
}

input,
select {
    padding: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input:focus {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    font-size: 13px;
    line-height: 1.5;
}

/* Botão */
button {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #2b17bf;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Mensagens de Erro */
.error {
    color: rgb(229, 57, 57);
    font-size: 12px;
}

.error-input {
    outline: 2px solid rgb(229, 57, 57);
}

/* Barra de Progresso */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
    color: #ccc;
    font-weight: bold;
    position: relative;
}

.progress-step.active {
    border-color: #8BC34A;
    color: #8BC34A;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: -1;
}

.progress-step:first-child::before,
.progress-step:last-child::before {
    content: none;
}

.progress-step+.progress-step::before {
    left: -50%;
}

/* Página de Agradecimento */
.thankyou-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.thankyou-wrapper {
    background: rgba(255, 255, 255, 0.21);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(17.7px);
    -webkit-backdrop-filter: blur(17.7px);
    padding: 20px;
    text-align: center;
    max-width: 600px;
    margin: 20px;
}

.thankyou-logo {
    width: 100px;
    margin-bottom: 20px;
}

.thankyou-wrapper h4 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.thankyou-wrapper p {
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 20px;
}

.email-notice {
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 20px;
}

.email-notice svg {
    margin-right: 10px;
}

.configure-button {
    background-color: #2b17bf;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.configure-button:hover {
    background-color: #2b17bf;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Modal de Câmera */
#camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Desabilitar interações */
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Desabilitar interações */
}

#overlay::after {
    content: '';
    display: block;
    position: absolute;
    border: 5px solid rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}
p{
    color: white;
    text-align: center;
    margin-top: -20px;
}

#overlay.front::after,
#overlay.back::after {
    width: 60%;
    height: 45%;
}

#overlay.selfie::after {
    width: 50%;
    height: 50%;
    border-radius: 50%;
}

/* Botões da Câmera */
.camera-button {
    position: absolute;
    background-color: #2b17bf;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    bottom: 20px;
}

#snap {
    bottom: 70px;
    /* Botão de captura acima do botão de fechar */
}

#close-camera {
    bottom: 20px;
}

.camera-button:hover {
    background-color: #2b17bf;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Preview das Imagens */
.preview-container {
    position: relative;
}

.preview {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 10px 0;
}

.delete-photo {
    position: absolute;
    top: 9px;
    /* right: 0px; */
    background-color: #ff0000b5;
    color: white;
    border-radius: 0;
    padding: 5px 10px;
    cursor: pointer;
}

/* Popup de Loading */
#loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    height: 100%;
    background: rgba(15, 15, 15, 0.932);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-weight: 800;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 20px;
    color: #ffffff;
}

.loader {
    width: 108px;
    height: 108px;
    border: 2px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: #2b17bf;
    width: 6px;
    height: 6px;
    transform: translate(150%, 150%);
    border-radius: 50%;
}

.loader::before {
    left: auto;
    top: auto;
    right: 0;
    bottom: 0;
    transform: translate(-150%, -150%);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 10px;
        gap: 30px;
    }

    form {
        width: 90%;
    }

    .thankyou-wrapper {
        padding: 10px;
    }

    header img {
        width: 120px;
    }
}

@media (max-width: 480px) {

    input:focus {
        transform: scale(1.01);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    form {
        width: 100%;
        padding: 10px;
    }

    form h1 {
        font-size: 20px;
    }

    label {
        font-size: 12px;
    }

    input,
    select {
        padding: 14px;
        height: 45px !important;
    }

    

    button {
        padding: 15px;
    }

    .thankyou-wrapper p {
        font-size: 14px;
    }

    .configure-button {
        padding: 10px 15px;
    }
}
