/**
 * Блок «Première leçon d'essai»: форма записи на пробное занятие (js/trial-form.js).
 */

.GLcontainer5 {
  padding-left: 20px;
}

.contentFreeForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4% 0 30px 0;
}

.image-sectionFreeForm {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}

.form-sectionFreeForm {
  padding: 0px 40px;
  max-height: 500px;
}

.form-introFreeForm {
  font-size: 0.8rem;
  color: #000;
  font-family: "Gilroy-Light";
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 15px;
}

.form-introFreeForm h2 {
  font-size: 1.2rem;
  color: #000;
  font-family: "Gilroy", sans-serif;
  font-weight: 500;
  line-height: 1.1;
}

.form-groupFreeForm {
  margin-bottom: 15px;
}

#nameError,
#emailError,
#phoneError,
#privacyError {
  display: none;
}

/* Подсказка под полем телефона: флаг, код страны и маска (заполняет js/trial-form.js) */
#debug {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

.headerFreeForm {
  text-align: left;
  padding: 4px 12px 6px;
  background: #134fa9;
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.1;
  margin: 0;
  margin-bottom: 0px;
  font-family: "Gilroy";
}

.form-groupFreeForm label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #000;
  font-size: 1.5rem;
  font-family: "Gilroy", sans-serif;
  display: none;
}

.checkbox-groupFreeForm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 0;
}

.submit-btnFreeForm {
  width: 100%;
  background: #134fa9;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  font-family: "Gilroy", sans-serif;
}

.submit-btnFreeForm:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.submit-btnFreeForm:active {
  transform: translateY(0);
}

.errorFreeForm {
  color: #ff4757;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

@media (max-width: 768px) {
  .contentFreeForm {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .GLcontainer5 {
    height: 852px;
    width: 100%;
    padding: 10% 5% 8% 5%;
    background-color: white;
    max-height: 795px;
  }
  .form-introFreeForm h2 {
    font-size: 1.1rem;
    color: #000;
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    line-height: 1.1;
  }
  .headerFreeForm h1 {
    text-align: left;
    padding: 4px 12px 6px;
    background: #134fa9;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 1.1;
    margin: 0;
    margin-bottom: 0px;
    font-family: "Gilroy", sans-serif;
  }
  .furniture-image {
    width: 100%;
  }
  .headerFreeForm {
    background: white;
    padding: 0px;
    padding-bottom: 10%;
  }
  .form-sectionFreeForm {
    padding: 0 20px;
    max-height: 340px;
  }
  .image-sectionFreeForm {
    max-height: 430px;
  }
  #furnitureFormFreeForm {
    padding-bottom: 50px;
    margin-bottom: 50px;
  }
  .phone-inputFreeForm {
    flex-direction: column;
  }
  .country-codeFreeForm {
    justify-content: center;
  }
  .phone-inputFreeForm input {
    border: 2px solid #e0e0e0;
  }
}

.checkbox-groupFreeForm input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #667eea;
}

.checkbox-groupFreeForm label {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-groupFreeForm input {
  width: 100%;
  padding: 5px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-groupFreeForm input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.phone-inputFreeForm {
  display: flex;
  align-items: center;
}

.country-codeFreeForm {
  background: #134fa9;
  color: white;
  padding: 15px 15px;
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  border: 2px solid #667eea;
  display: none;
  align-items: center;
  gap: 8px;
}

.flagFreeForm {
  width: 20px;
  height: 15px;
  background: linear-gradient(
    to bottom,
    #ff0000 33%,
    #ffffff 33%,
    #ffffff 66%,
    #ff0000 66%
  );
  border-radius: 2px;
  position: relative;
}

.flagFreeForm::after {
  content: "+";
  position: absolute;
  left: 6px;
  top: 2px;
  color: white;
  font-size: 8px;
  font-weight: bold;
}

.phone-inputFreeForm input {
  border-radius: 5px;
}
