@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-blue: #007BFF;
    --dark-blue: #0056b3;
    --bg-blue: #005bb6;
    --light-gray: #f9f9f9;
    --text-color: #333;
    --form-width: clamp(300px, 90%, 600px);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 2rem;
    background-color: var(--bg-blue);
    color: var(--text-color);
    min-height: 100vh;
}

h1 {
    margin-top: 8vh;
    text-align: center;
    letter-spacing: 2px;
    color: #000;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.botao-voltar {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #406697;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.botao-voltar:hover {
    background-color: #003080;
}

.header-flex {
    display: flex;
    flex-direction: column; /* Coloca logo acima do título */
    align-items: center;     /* Centraliza horizontalmente */
    justify-content: center; /* Opcional, caso queira centralizar verticalmente em tela cheia */
    margin-top: 5vh;
    text-align: center;
    gap: 1rem; /* Espaçamento entre logo e título */
  }
  
  .logo-ndap {
    width: clamp(60px, 10vw, 120px);
    height: auto;
  }
  
/* Visualizador 3D */
#viewer {
    margin: 8vh auto 0 auto; /* Centraliza horizontalmente e mantém margem superior */
    width: 100%;
    max-width: var(--form-width); /* Mesma largura máxima do formulário */
    height: clamp(350px, 50vh, 500px);
    border-radius: 10px;
    background: #222;
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Barra de Progresso */
#progressBar {
    width: 100%;
    background-color: transparent;
    margin-top: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

#progressBar div {
    height: 20px;
    background-color: var(--primary-blue);
    width: 0%;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

/* Formulário */
form {
    margin-top: 3rem;
    background: white;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: var(--form-width);
    margin-left: auto;
    margin-right: auto;
}

/* Labels */
label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

/* Inputs e Textarea */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--light-gray);
    transition: border 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

/* Botão */
button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 1rem;
}

button:hover {
    background-color: var(--dark-blue);
    transform: scale(1.05);
}

.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
  }
  
  .screen__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    clip-path: inset(0 0 0 0);
  }
  
  .screen__background__shape {
    position: absolute;
    border-radius: 32px;
  }
  
  /* BRANCO INCLINADO */
  .screen__background__shape1 {
    width: 130vw;
    height: 130vw;
    background: white;
    top: -105vh;
    left: 180vh;
    transform: rotate(-30deg);
    border-radius: 0;
  }
  
  /* AZUL ESCURO INFERIOR DIREITO */
  .screen__background__shape2 {
    width: 35vw;
    height: 75vh;
    background: #0056b3;
    top: 50vh;
    right: -25vw;
    transform: rotate(30deg);
  }
  
  /* AZUL CLARO CANTO DIREITO */
  .screen__background__shape3 {
    width: 80vw;
    height: 65vh;
    background: #007BFF;
    top: -40vh;
    left: -60vh;
    transform: rotate(150deg);
  }
  
  /* VERMELHO INFERIOR DIREITO */
  .screen__background__shape4 {
    width: 40vw;
    height: 65vh;
    background: #ff0000;
    top: 70vh;
    left: -64vh;
    transform: rotate(150deg);
  }

  .screen__background__shape5 {
    width: 40vw;
    height: 65vh;
    background: #ff0000;
    top: -30vh;
    left: -64vh;
    transform: rotate(30deg);
  }

  /* AZUL CLARO CANTO DIREITO */
  .screen__background__shape6 {
    width: 80vw;
    height: 65vh;
    background: #007BFF;
    top: -40vh;
    left: 100vh;
    transform: rotate(30deg);
  }

  .screen__background__shape7 {
    width: 30vw;
    height: 50vw;
    background: white;
    top: 10vh;
    right: 190vh;
    transform: rotate(20deg);
    border-radius: 0;
    z-index: -2;
  }

/* Responsivo Extra */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    form {
        padding: 1rem;
    }

    #viewer {
        height: 300px;
    }
}