#contactForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: inherit;
}

#contactForm input[type="text"], 
#contactForm input[type="tel"], 
#contactForm input[type="email"], 
#contactForm textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

#contactForm textarea {
  height: 100px;
  resize: none;
}

.form-btn {
  display: inline-block;
  width: 50%;
  padding: 12px;
  background-color: inherit;
  border: 1px solid var(--bs-link-color);
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-btn:hover {
  color: #fff;
  background-color: var(--bs-link-hover-color);
  border: 1px solid var(--bs-link-hover-color);
}

.phone-email-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.phone-email-item {
  flex: 1;
}

#contactForm .consent-row {
  margin-bottom: 20px;
}

.consent-link {
  color: var(--bs-link-color);
}

.styled-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.consent-row {
  display: flex;
  align-items: center;
  font-size: 1rem; 
  cursor: pointer;
  position: relative;
  padding-left: 1.5rem; 
  line-height: 1.5; 
}

.consent-row label::before {
  content: "";
  display: inline-block;
  width: 1em;  
  height: 1em;
  border: 1px solid #ccc;
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 25%;
  transform: translateY(-50%);
  box-sizing: border-box;
}

.styled-checkbox:checked + label::before {
  content: "\2714"; 
  font-size: 1.2em;
  color: var(--bs-link-hover-color); 
  text-align: center;
  line-height: 1em; 
  border: 1px solid var(--mepen-dark-gray);
}

.error {
  color: red;
}


/* Стили для модального окна */
.form-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Увеличим затемнение фона */
  justify-content: center;
  align-items: center;
  padding: 20px; /* Добавим отступы для модального окна */
}

.form__modal-content {
  position: relative;
  background-color: #fff;
  padding: 40px 30px; /* Увеличим внутренние отступы */
  border-radius: 15px; /* Закругление углов */
  text-align: center;
  max-width: 600px; /* Увеличим ширину модального окна */
  width: 100%; /* Модальное окно будет адаптивным */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); /* Приятная тень */
}

.close {
  font-size: 28px; /* Увеличим размер креста */
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  color: #333; /* Цвет креста */
}

.close:hover {
  color: red; /* Цвет при наведении */
}

@media (max-width: 768px) {
  .form__modal-content {
    max-width: 90%; /* Для мобильных устройств окно станет шире */
    padding: 30px 20px; /* Уменьшим отступы на мобильных */
  }

  .close {
    font-size: 24px; /* Размер креста немного меньше на мобильных */
  }
}
#modalMessage {
  white-space: pre-line;
}

@media (max-width: 768px) {
  .phone-email-wrapper {
      flex-direction: column;
  }

  .consent-row {
    font-size: 0.875rem; 
    padding-left: 1.5rem; 
  }

  .consent-row label::before {
    width: 1.2em;
    height: 1.2em;
    border-width: 0.1em;
  }

  .styled-checkbox:checked + label::before {
    line-height: 1em;
}
}

@media (max-width: 550px) {
  .phone-email-wrapper {
      flex-direction: column;
  }

  .consent-row {
    font-size: 0.75rem; 
    padding-left: 1.25rem;
  }

  .consent-row label::before {
    width: 1em;
    height: 1em;
    border-width: 0.1em;
    top: 20%;
  }
}

