/* STILI GENERALI */
.bg-image-quote-section {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* CONTENITORE PRINCIPALE */
.container_1 {
background-color: #efefef; 
box-sizing: border-box; 
margin: 0; 
padding: 0;
font-family: Inter, 'sans-serif';
}

/* QUOTE SECTION*/
.quote-section {
  background-color: #efefef;
  padding: 0px 0px;
  color: vla;
}


.quote-section {
  position: relative;
  z-index: 1;
}

/* QUOTE MAIN CONTAINER */
.quote-main-container {
  position: relative;
  z-index: 2;
}

.quote-main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
  
}

/* QUOTE BOX */
.quote-box {
  border-radius: 30px;
  margin: 0 auto;
  max-width: 750px;
  text-align: center;

  /* Altezza minima fissa, uguale a quella del form */
  min-height: 400px; /* regola in base alla tua altezza attuale del form */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Messaggio finale */
#successMessage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 400px;
  color: #000000;
}

     /* QUOTE TITLE */
    .quote-title{
      font-family: Inter, sans-serif;
      font-size: 45px;
      line-height: 52px;
      color: #fff;
      font-weight: 600;
      text-align: center;
      padding-bottom: 12px;
      margin-block-start: 0px !important;
      margin-block-end: 0px !important;
      color: black;
    }
    #successMessage h2 {
      font-family: Inter, sans-serif;
      font-size: 39px;
      line-height: 45px;
      color: #000000;
      font-weight: 600;
      text-align: center;
      padding-bottom: 30px;
      margin-block-start: 0px !important;
      margin-block-end: 0px !important;
    }

    /* QUOTE DESCRIPTION */
.quote-description {
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #000000;
  font-weight: 400;
  text-align: center;
  margin-block-start: 0px !important;
  margin-block-end: 0px !important;
  color: black;
}
#successMessage p {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 26px;
  color: #000000;
  font-weight: 400;
  text-align: center;
  margin-block-start: 0px !important;
  margin-block-end: 0px !important;
}

/* FORM DA COMPILARE */
.validation-form {
  padding-top: 18px;
}

/* QUOTE FORM */
.quote-validation-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;

}

.quote-form-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  padding-bottom: 20px;
  gap: 20px;
  justify-content: center;
  max-width: 650px;
}
.quote-form-row2 {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  padding-bottom: 15px;
  gap: 20px;
  justify-content: center;
  max-width: 650px;
}

.quote-form-column {
  flex: 1;
  min-width: 250px;
  max-width: 312px;
  position: relative;
}

.quote-input-group {
  position: relative;
  width: 100%;
}

.quote-input-field {
    box-shadow: none !important;
    background: transparent !important;
    color: #000 !important;
    padding: 10px 0;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 20px 15px 5px 0px;

}


.quote-input-field:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 157, 255, 0.quote-5);
}

.quote-input-field::placeholder {
  color: black !important;
}

.quote-input-field-textarea {
  min-height: 40px;        /* circa 1 riga visibile inizialmente */
  height: auto !important; /* permetti al JS di gestire l'altezza (utile se esistono regole conflicting) */
  overflow-y: hidden;      /* nasconde la scrollbar */
  resize: none;            /* evita ridimensionamento manuale */
  box-sizing: border-box;
  line-height: 1.4;
  transition: height 0.08s ease;
}





.quote-error-message {
  display: block;
  color: #ff3a3a;
  font-size: 11px;
  text-align: left;
  margin-top: 5px;
  margin-left: 15px;
}

.quote-privacy-check-container {
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.quote-privacy-check-container input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
}

.quote-privacy-text {
  font-size: 11px;
  color: #000000;
  line-height: 17px;
  text-align: left;
  font-family: Inter, 'sans-serif;';
}

.quote-privacy-link {
  color: black;
  text-decoration: underline;
}


.quote-button-container {
  text-align: center;
  margin-top: 20px;
}

.quote-submit-button {
  background-color: #008BEE;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.quote-3s;
  text-transform: uppercase;
}

.quote-submit-button:hover {
  background-color: #0084d6;
}

.button-disabled {
      background-color: rgb(133, 133, 133) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border: 2px solid rgb(133, 133, 133) !important;
    color: #fff !important;
}

strong {
  font-weight: 600;
}

/* MEDIA QUERIES */
/* QUOTE MAIN CONTAINER */
@media (max-width: 409px) {
  .quote-main-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 410px) and (max-width: 699px) {
  .quote-main-container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (min-width: 700px) and (max-width: 870px) {
  .quote-main-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}






@media (min-width: 700px) and (max-width: 870px) {
  .quote-box {
    padding-left: 50px;
    padding-right: 50px;
  }
}


/* QUOTE TITLE */
@media (max-width: 964px) {
  .quote-title,
    #successMessage h2 {
    font-size: 41px;
    line-height: 48px;
  }
}

@media (max-width: 887px) {
  .quote-title,
    #successMessage h2 {
    font-size: 39px;
    line-height: 46px;
  }
}

@media (max-width: 849px) {
  .quote-title,
    #successMessage h2 {
    font-size: 38px;
    line-height: 45px;
  }
}

@media (max-width: 830px) {
  .quote-title,
    #successMessage h2 {
    font-size: 37px;
    line-height: 44px;
  }
}

@media (max-width: 810px) {
  .quote-title,
    #successMessage h2 {
    font-size: 36px;
    line-height: 43px;
  }
}

@media (max-width: 791px) {
  .quote-title,
    #successMessage h2 {
    font-size: 35px;
    line-height: 42px;
  }
}

@media (max-width: 430px) {
  .quote-title,
    #successMessage h2 {
    font-size: 34px;
    line-height: 41px;
  }
}

@media (max-width: 414px) {
  .quote-title,
    #successMessage h2 {
    font-size: 32.5px;
    line-height: 40px;
  }
}

@media (max-width: 409px) {
  .quote-title,
    #successMessage h2 {
    font-size: 33px;
    line-height: 40px;
  }
}

@media (max-width: 369px) {
  .quote-title,
    #successMessage h2 {
    font-size: 32px;
    line-height: 42px;
  }
}

@media (max-width: 375px) {
  .quote-title,
    #successMessage h2 {
    font-size: 31px;
    line-height: 41px;
  }
}

/* QUOTE DESCRIPTION */
@media(max-width:699px) {
  .quote-description{
    font-size: 12px;
    line-height: 18px;
  }
}

/* QUOTE FORM */
@media (max-width: 699px) {
  .quote-form-row,
  .quote-form-row2 {
    flex-direction: column;
    gap: 0px !important;
    padding-bottom: 0px !important;
  }
}

@media (min-width: 700px) and (max-width: 768px) {
  .quote-form-row,
  .quote-form-row2 {
    flex-direction: row;
    gap: 15px;
    align-items: center;

  }
}


@media (max-width:699px) {
  .quote-form-column {
    max-width: 699px;
  }

  .error-message2 {
    bottom: 9px !important;
  }
}



@media (max-width: 768px) {
  .quote-section {
    padding: 0px 0;
  }
  .quote-form-column {
    width: 100%;
  }

  .quote-textarea-field {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .quote-input-field {
    padding: 20px 15px 5px 0px;
    font-size: 14px;
  }

  .quote-submit-button {
    padding: 10px 30px;
    font-size: 14px;
  }

  .quote-privacy-text {
    font-size: 11px;
  }

  .quote-description {
    font-size: 13px;
  }
}

@media (max-width: 360px) {

  .quote-input-field {
    padding: 20px 15px 5px 0px;
  }

  .quote-form-column {
    min-width: 200px;
  }

  .quote-textarea-field {
    min-height: 120px;
    resize: vertical;
    width: 100%;
  }
}

.quote-input-field-textarea {
  border-radius: 17px;
  height: 40px !important;
}



.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #555;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  margin-bottom: 5px;
}

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

/* Stato errore */


.input-group {
  position: relative;
}

.error-message {
  color: red;
  font-size: 0.7rem;
  position: absolute;
  bottom: -18px;
  right: 0;
}
.error-message2 {
  color: red;
  font-size: 0.7rem;
  position: absolute;
  bottom: -13px;
  right: 0;
}

/* Bordo bianco quando si digita */
.quote-input-field:focus {
  border: 1px solid #000000 !important;
  outline: none;
}

/* Colore placeholder */
.quote-input-field::placeholder {
  color: #000000; /* Sostituisci #aaa con il colore che vuoi */
}

/* Per textarea */
.quote-input-field-textarea::placeholder {
  color: #000000;
}

/* Nascondi scrollbar della textarea */
.quote-input-field-textarea {
  overflow: hidden;      /* Nasconde scrollbar */
  resize: none;      /* L’utente può ridimensionare verticalmente */
  min-height: 100px;     /* opzionale */
}


/* Per i browser WebKit (Chrome, Safari) */
.quote-input-field-textarea::-webkit-scrollbar {
  display: none;
}

strong {
  font-weight: 600;
}

/* Autofill Chrome (testo e sfondo coerenti) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #efefef inset; /* sfondo stesso del form */
    -webkit-text-fill-color: #000 !important; /* testo nero */
    transition: background-color 5000s ease-in-out 0s;
}



/* Bottone disabilitato */
.button-disabled {
    background-color: rgb(133, 133, 133) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border: 2px solid rgb(133, 133, 133) !important;
    color: #fff !important;
}

/* Rende la sezione del form visivamente contenuta */
.quote-section {
  background-color: #efefef;
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
  z-index: 1;
}

/* Mantiene il form centrato e ben visibile */
.quote-main-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Fa in modo che il box del form abbia sfondo e bordi chiari */
.quote-box {
  border-radius: 20px;
  min-height: auto;
  text-align: center;
}


.floating-label {
  position: relative;
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 16px 12px 12px;
}

.floating-label label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #777;
  pointer-events: none;
  transition: 
    transform 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;
  background: #efefef;
  padding: 0 4px;
}

.floating-label textarea + label {
  top: 30%;
}

/* quando focus o campo valorizzato */
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: #000;
  display: block !important;
}

@media (max-width: 699px) {
  .floating-label {
    padding-bottom: 20px;
  }

  .floating-label label {
    top: 35%;
  }
}