*,
*::before,
*::after {
  box-sizing: border-box;
}

.hidden {
    display: none;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  /* background-color: #173B3F; */
  background-color: #1E5F73;
  /* background: linear-gradient(90deg, #12585d 0%, #0d2d2f 100%); */
  text-align: center;
  border-radius: 30px;
  margin: 20px;
}

.row-contacts {
  display: flex;
  align-items: flex-start;
  height: auto;
  gap: 50px;
  padding: 50px;
}

.slogan {
  flex: 1;
  text-align: left;
  margin: 0;
  padding: 0;
}

.slogan h1 {
  /* background: linear-gradient(90deg, #D6BE72 0%, #A98A3C 100%); */
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
  /* background-clip: text; */
  /* color: transparent; */
  /* text-shadow: none; */
  color: #D6BE72;
  margin-top: 0;
}

.form {
  display: block;
  flex: 2;
  margin-bottom: 30px;
}

.row-input {
  display: flex;
  gap: 15px;
  margin: 15px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 1.5em;
  overflow: visible;
  /* важно! */
}

/* Стили ошибок всплывающих */
#toast {
  position: fixed;
  top: 20px;
  /* отступ сверху */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.field-error {
  position: absolute;
  left: 0;
  top: 100%;
  /* сразу под полем */
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.527);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
  white-space: nowrap;
}

.field-error.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.checkbox-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #EADFC8;
  gap: 8px;
}

.checkbox-label input {
  margin: 0;
  /* border: solid 2px yellow; */
  width: 20px;
  height: 20px;
}

.row-input textarea {
  height: 9.6em;
  width: 100%;
}

.cont {
  flex: 1;
  /* равная ширина всех полей в строке */
  min-width: 150px;
  /* минимальная ширина для узких экранов */
  padding: 0.6em 1em;
  border-radius: 10px;
  border: 2px solid #D6BE72;
  background: transparent;
  font-family: "Outfit", sans-serif;
  font-size: 1.1em;
  outline: none;
  color: #D6BE72;
  box-sizing: border-box;
  margin: 0;
  /* убираем старые маргины, gap теперь управляет расстоянием */
}

.cont::placeholder {
  opacity: 0.6;
  color: #D6BE72 !important;
}

textarea.cont::placeholder {
  opacity: 0.6;
  color: #D6BE72 !important;
}

[data-i18n] {
  transition: opacity 0.2s;
}

textarea::placeholder,
input::placeholder {
  color: inherit;
  opacity: 0.6;
}

.checkbox {
  color: #D6BE72;
  padding-bottom: 30px;
}

.checkbox a {
  text-decoration: underline;
  color: #EADFC8;
}

.modal2 {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 24px;
  z-index: 9999;
}

#thank {
  margin-bottom: 50px;
}

.modal-thank h1 {
  margin-top: 30px;
  color: #d6be72;
}

.thank-text {
  font-size: 18px;
  color: black;
  margin-bottom: 50px;
}

.modal-thank {
  background: white;
  padding: 20px;
  width: 100%;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  position: relative;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.modal-content {
  text-align: left;
  max-height: 80vh;
  /* ограничиваем высоту, чтобы появилась прокрутка */
  overflow-y: auto;
  padding-right: 10px;
  /* чтобы скролл не наслаивался на текст */
}

.modal.hidden,
.modal-overlay.hidden {
  display: none;
}

.hidden {
  display: none;
}

.close-btn {
  display: block;
  margin: 20px auto 0;
  /* сверху 20px, по центру, снизу 0 */
  margin-top: 16px;
  background-color: transparent;
  border: 2px solid black;
  color: black;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: rgb(127, 255, 212);
  transition: background-color 0.3s, color 0.3s;
}


