/* /local/templates/nonmetall/help-block.css */

.help-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

.help-block h3 {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 125%;
  letter-spacing: -1.5%;
  text-align: center;
  margin: 0 0 12px;
  padding: 0;
  color: var(--text-color);
}

.help-block form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-block .form-fields-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.help-block .form-group {
  flex: 1;
  min-width: 140px;
  margin: 0;
}

.help-block input[type="text"],
.help-block input[type="tel"],
.help-block input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.help-block input:focus {
  border-bottom-color: var(--primary-color);
}

.help-block .form-checkbox {
  display: flex;
  align-items: center; /* выравнивает чекбокс и текст по центру по вертикали */
  gap: 8px;
  margin: 8px 0;
}

.help-block .checkbox-input {
  /* Убираем transform, если он мешает выравниванию */
  margin: 0;
  flex-shrink: 0; /* чтобы чекбокс не сжимался */
}

.help-block .checkbox-label {
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  user-select: none;
  font-family: 'Manrope', sans-serif;
  line-height: 1.4; /* улучшает читаемость и выравнивание */
}

.help-block button[type="submit"] {
  display: block;
  margin: 2px auto 0;
  width: 50%;
  border-radius: 24px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  background: var(--primary-color);
  color: var(--background-white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.help-block button[type="submit"]:hover {
  background: var(--primary-dark);
}

#form-success-message {
  display: none;
  margin-top: 16px;
  color: #27ae60;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  font-family: 'Manrope', sans-serif;
}