@charset "utf-8";
/* CSS pagina index Filiais Rota Seguros */

html, body {
    /*height: 100%;*/
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    position: relative;

    /* Degradê base */
    background: linear-gradient(
        to bottom,
        #001a33 0%,
        #2f6fa5 55%,
        #a8dcff 100%
    );

    overflow-x: hidden;
}

/* IMAGEM OVERLAY */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("../img/fundo-praia.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 0.18;

    pointer-events: none;
    z-index: 0;
}

/* Conteúdo sempre acima */
body > * {
    position: relative;
    z-index: 1;
}

/* ANIMAÇÃO DA NÉVOA */
@keyframes nevoaFlutuante {
    0% {
        transform: translateY(0);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-2%);
        opacity: 0.12;
    }
    100% {
        transform: translateY(0);
        opacity: 0.08;
    }
}

/* NÉVOA COM ANIMAÇÃO */
body::after {
    content: "";
    position: fixed;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.10) 100%
    );

    animation: nevoaFlutuante 22s ease-in-out infinite;

    pointer-events: none;
    z-index: 0;
}

/* 📱 AJUSTES MOBILE */
@media (max-width: 768px) {
	
	html, body {
    height: auto;
    margin: 0;
}

    body {
        /* degradê um pouco mais claro no mobile */
        background: linear-gradient(
            to bottom,
            #002244 0%,
            #3f7fb3 60%,
            #ccecff 100%
        );
    }

    body::before {
        /* imagem mais visível no mobile */
        opacity: 0.25;

        /* melhora performance no celular */
        background-attachment: scroll;
        background-position: center top;
		background-position-x: -225px !important;
    }
	
	body::after {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.14) 100%
    );
	}
}

@media (max-width: 768px) {
    body::after {
        animation-duration: 28s;
    }
}

a {
  text-decoration: none;
}

#imagem-logo {
  background-position: center;
  position: absolute;
  top: 20px;
  left: 50%; 
  transform: translate(-50%, 0);
  width:364px;
}

#container {
  position: relative;
  width: 100%;
  height: auto; 
  text-align: center; 
  padding-top: 225px !important;
}

#imagem-logo {
  max-width: 100%; 
  height: auto;
}

.botao {
    height: 2.2em;
    width: 15em;
    margin: 18px auto;

    background: linear-gradient(
        to bottom,
        #ff8a3d 0%,
        #fa7f28 60%,
        #f36a1d 100%
    );

    padding: 12px 22px;
    border-radius: 28px;

    text-align: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 2.2em;

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    border: 2px solid transparent; /* borda reservada, invisível */
    
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}


/* HOVER DESKTOP */
.botao:hover {
    background: linear-gradient(
        to bottom,
        #fff 0%,
        #fff 60%,
        #fff 100%
    );

    transform: translateY(-3px);

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    font-weight: 600;
    border-color: #ef6f01;
    color: #ef6f01;
}

/* CSS para dispositivos móveis */
@media screen and (max-width: 768px) {
  #container {
    padding-top: 20px; 
    display: block; 
  }

  .botao {
        font-size: 16px;
        border-radius: 32px;
        box-shadow:
            0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .botao:hover {
        transform: none;
    }
	
}

/* CSS para desktop */
@media screen and (min-width: 769px) {
  #container {
    padding-top: 95px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

  .botao {
    width: 100%;
    max-width: 300px;
  }

  .botao a {
    display: block;
    width: 100%;
    max-width: 100%;
  }
}

/* -- Formulário -- */

#caixaform{
    background-color: #f3f3f3;
    width: 450px;
    border-radius: 20px;
    margin-top: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

        form {
            margin: 0 auto;
            padding: 10px;
            /*border: 1px solid #ccc;*/
            border-radius: 20px;
        }

        fieldset {
           border: 0;
    width: 382px;
	margin-top: -25px;
    margin-left: -5px;
        }

        p {
            margin-bottom: 10px;
        }

        input[type="text"],
        select,
        textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        button {
            display: block;
            width: 100%;
            padding: 10px;
            background-color: rgba(250,127,40,1);
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
			margin-top:20px;
			margin-left: 12px;
        }

        button:hover {
            background-color: rgb(255 106 0);
        }


		@media screen and (max-width:500px) {
			

#caixaform {
    background-color: #f3f3f3;
    width: 397px;
    border-radius: 20px 20px 20px 20px;
}

fieldset {
    border: 0;
    width: 317px;
    margin-left: 2px;
}
			
		}
		
		@media screen and (max-width:390px) {

#caixaform {
    background-color: #f3f3f3;
    width: 345px;
    border-radius: 20px 20px 20px 20px;
}

fieldset {
    border: 0;
    width: 275px;
    margin-left: -3px;
}

			
		}

