/* =================== DEMANDER DEVIZ STYLE =================== */

*,
*::before,
*::after {
   box-sizing: border-box;
}

.form-deviz {
   background-color: #ffffffcf;
   padding: 3rem 2rem;
   border-radius: 1.5rem;
   max-width: 820px;
   margin: 0rem auto;
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
   font-family: var(--font-main);
   margin-bottom: 4rem;
   padding: 3rem 2rem;
}
body {
   background: url("Images/demande-photo.png") center/cover no-repeat;
   background-attachment: scroll;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center top;
}
body::before {
   content: "";
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.2);
   z-index: -1;
}
.main-form-devis {
   margin: 0;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   min-height: 1px;
   margin-bottom: 0;
}

.form-deviz__title {
   text-align: center;
   font-size: 2.5rem;
   color: #b7ac4f;
   font-weight: 700;
   margin-bottom: 1rem;
}

.form-deviz__description {
   text-align: center;
   color: #444;
   font-size: 1.5rem;
   margin-bottom: 2rem;
}

.form-deviz__field {
   margin-bottom: 1.5rem;
}

.form-deviz__label {
   display: block;
   margin-bottom: 0.4rem;
   font-weight: 600;
   color: #333;
   font-size: 1.2rem;
}

.form-deviz__input,
.form-deviz__textarea {
   padding: 0.85rem 1rem;
   width: 100%;
   padding: 0.75rem 1rem;
   border-radius: 0.7rem;
   border: 1.5px solid #cfcfcf;
   font-size: 1.1rem;
   background-color: #f9f9f9;
   transition: border 0.3s ease;
}

.form-deviz__input:focus,
.form-deviz__textarea:focus {
   outline: none;
   border-color: #4c4cf1;
   background-color: #ffffff;
   box-shadow: 0 0 0 3px rgba(76, 76, 241, 0.1);
}

.form-deviz__textarea {
   min-height: 120px;
   resize: vertical;
}

/* Сетка чекбоксов и радиокнопок */
fieldset {
   border: none;
   padding: 0;
   margin-bottom: 1.8rem;
}

fieldset > div {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
   gap: 0.7rem 1rem;
}

fieldset label {
   font-size: 1.5rem;
   color: #2d2d2d;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
   accent-color: #004aad;
   transform: scale(1.1);
}

/* Слайдер */
.form-deviz__slider {
   width: 100%;
   margin-top: 0.5rem;
}

#slider-value {
   font-weight: 700;
   color: #004aad;
   margin-left: 0.5rem;
}

/* Кнопка */
.form-deviz__btn {
   display: block;
   margin: 2rem auto 0 auto;
   padding: 0.9rem 2.2rem;
   font-size: 1.1rem;
   font-weight: 600;
   background-color: #004aad;
   color: #fff;
   border: none;
   border-radius: 2rem;
   cursor: pointer;
   box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
   transition:
      background 0.3s ease,
      transform 0.2s ease;
}

.form-deviz__btn:hover {
   background-color: #003080;
   transform: translateY(-2px);
}
.form-devis__confirmation {
   background: none;
   border: none;
   padding: 0;
   margin: 0;
   border-radius: 0;
   max-width: 820px;
   font-size: 1rem;
   color: #004aad;
}
.form-deviz__field {
   border: none;
   padding: 0;
}
/* ========== АДАПТАЦИЯ DEMANDER DEVIZ ========== */

@media (max-width: 768px) {
   .form-deviz {
      padding: 2rem 1rem;
      margin-bottom: 3rem;
      border-radius: 1rem;
   }

   .main-form-devis {
      padding: 2rem 1rem 0;
   }

   .form-deviz__title {
      font-size: 1.6rem;
   }

   .form-deviz__description {
      font-size: 1.1rem;
   }

   .form-deviz__label {
      font-size: 1rem;
   }

   .form-deviz__input,
   .form-deviz__textarea {
      font-size: 1rem;
      padding: 0.6rem 0.8rem;
   }

   fieldset label {
      font-size: 1.1rem;
   }

   .form-deviz__btn {
      font-size: 1rem;
      padding: 0.75rem 1.6rem;
   }
   .footer-logo-box {
      flex-direction: column;
      margin-top: 2rem;
      margin-left: 3rem;
   }

   .footer-section {
      flex-direction: column;
      gap: 1rem;
   }
}
@media (min-width: 769px) {
   .form-deviz {
      max-width: 820px;
      margin: 0 auto 4rem auto;
      padding: 3rem 2.5rem;
      border-radius: 1.5rem;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
      background-color: #fff;
   }
   .main-form-devis {
      padding: 0;
   }
   .form-deviz__title {
      font-size: 2.5rem;
      margin-bottom: 1.3rem;
   }
   .form-deviz__description {
      font-size: 1.45rem;
      margin-bottom: 2rem;
   }
   .form-deviz__label {
      font-size: 1.2rem;
   }
   .form-deviz__input,
   .form-deviz__textarea {
      font-size: 1.1rem;
      padding: 0.85rem 1rem;
   }
   fieldset label {
      font-size: 1.2rem;
   }
   .form-deviz__btn {
      font-size: 1.2rem;
      padding: 1rem 2.6rem;
   }
}
