body {
    background-color: #0f0f0f;
    overflow: hidden;
    height: 100vh;
}

.form_container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

form {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: 100vw; height: 100vh;
    flex-shrink: 0;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, .6);
    margin-bottom: 30px; margin-left: 15vw;
    font-family: "Outfit", "sans-serif";
    font-size: 2.5vw; font-weight: 700;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

h2 span{
    font-weight: 100;
    margin-right: 2vw;
    font-size: 2vw;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

input{
    width: 70vw;
    padding: 12px;
    margin-top: 4vh; margin-left: 21.5vw;
    box-shadow: 0 0 1px rgba(255, 255, 255, .2);
    border:none; border-bottom: 2px solid rgba(255, 255, 255, .6); border-radius: 4px;
    background: rgba(0, 0, 0, .6);
    color: #fff; text-shadow: 0 0 5px rgba(0, 0, 0, .6);
    font-size: 1.4vw;
}

textarea {
  height: 150px;
  resize: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: none;
}


.buttons {
  margin-top: 4vh; margin-left: 21.5vw;
  display: flex;
  gap: 3vw;
}

button {
    width: 10vw;
    background-color: #FF00FF;
    color: #fff;
    border: 1px solid #FF00FF; border-radius: 4px; box-shadow: 0 0 5px rgba(0,0,0,0.6);
    padding: 1vw;
    cursor: pointer;
    font-size: 1.4vw; font-weight: 400;
    transition: all 0.3s ease-in-out;
}

button:hover {
  background-color: rgba(0,0,0,0.6);
  border: 1px solid #fff;
}

.checkbox{
    display: flex; align-items: center; gap: 1vw;
    color: white;
    font-size: 1.4vw;
    text-shadow: 0 0 5px rgba(0,0,0,.6);
    margin-top: 1vh;
}

.checkbox input{
    margin-top: 0;
    width: 1.4vw;
    height: 1.4vw;
}

select{
    width: 70vw;
    padding: 12px;
    margin-top: 4vh; margin-left: 21.5vw;
    box-shadow: 0 0 1px rgba(255, 255, 255, .2);
    border:none; border-bottom: 2px solid rgba(255, 255, 255, .6); border-radius: 4px;
    background: rgba(0, 0, 0, .6);
    color: #fff; text-shadow: 0 0 5px rgba(0, 0, 0, .6);
    font-size: 1.4vw;
}

select option{
    color: #fff; text-shadow: 0 0 5px rgba(0, 0, 0, .6);
    font-size: 1.4vw;
    cursor: pointer;
}

textarea{
    width: 70vw;
    padding: 12px;
    margin-top: 4vh; margin-left: 21.5vw;
    box-shadow: 0 0 1px rgba(255, 255, 255, .2);
    border:none; border-bottom: 2px solid rgba(255, 255, 255, .6); border-radius: 4px;
    background: rgba(0, 0, 0, .6);
    color: #fff; text-shadow: 0 0 5px rgba(0, 0, 0, .6);
    font-size: 1.4vw;
}

.progress_bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #222;
  z-index: 1;
}

#progress {
  height: 6px;
  background: #FF00FF;
  width: 0;
}

.slide:nth-of-type(2){
    background: url("../images/devis/_0.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide:nth-of-type(3){
    background: url("../images/devis/_1.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

/*.slide:nth-of-type(4){
    background: url("../images/devis/_2.webp") no-repeat;
    background-position: center;
    background-size: cover;
}*/

.slide:nth-of-type(5){
    background: url("../images/devis/_3.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide:nth-of-type(6){
    background: url("../images/devis/_4.webp") no-repeat;
    background-position: center;
    background-size: cover;
}

.slide:nth-of-type(7){
    background: url("../images/devis/_5.webp") no-repeat;
    background-position: center;
    background-size: cover;
}


/************************FORMAT TABLETTE (< 1024px)************************/

@media (max-width: 1024px) {
    h2 { font-size: 3.5vw; margin-left: 10vw; }
    h2 span { font-size: 2.5vw; }
    input, select, textarea {
        width: 80vw;
        margin-left: 10vw;
        font-size: 2vw;
    }
    .buttons { margin-left: 10vw; }
    button { font-size: 2vw; padding: 1.5vw; width: 15vw; }
    .checkbox { font-size: 2vw; margin-left: 10vw; }
    .checkbox input { width: 2vw; height: 2vw; }
}


/************************FORMAT MOBILE (< 768px)************************/

@media (max-width: 768px) {
    h2 {
        font-size: 6.5vw;
        margin-left: 5vw;
        margin-bottom: 10px;
    }
    h2 span { font-size: 5vw; margin-right: 3vw; }

    input, select, textarea {
        width: 90vw;
        margin-left: 5vw;
        font-size: 4vw;
        padding: 10px;
    }
    .buttons {
        margin-left: 5vw;
        gap: 4vw;
        flex-wrap: wrap;
    }
    button {
        width: auto;
        min-width: 35vw;
        padding: 3vw 5vw;
        font-size: 4vw;
    }
    .checkbox {
        font-size: 4vw;
        gap: 3vw;
        margin-left: 5vw;
        margin-top: 2vh;
    }
    .checkbox input {
        width: 5vw;
        height: 5vw;
        margin-left: 0;
        margin-top: 0;
    }
}