.custom-contact-form {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group-block {
  flex: 1 1 48%;
}

.input-group-block.full-width {
  flex: 1 1 100%;
}

.input-group-block:not(.phone-block) input,
.input-group-block textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  color: #212529;
  box-sizing: border-box;
  height: 48px;
  outline: none;
}

.input-group-block textarea {
  min-height: 35px;
  resize: vertical;
}

.input-group-block input::placeholder,
.input-group-block textarea::placeholder {
  color: #6c757d;
  font-weight: 500;
}

.phone-block {
  flex: 1 1 48%;
}

.phone-input-group {
  display: flex;
  height: 48px;
  background: #fafafa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  /*overflow: hidden;*/
}

.phone-input-group .country-code {
  flex: 0 0 90px;
  padding: 13px 12px;
  border: none;
  border-right: 1px solid #ced4da;
  font-size: 15px;
  color: #212529;
  background: transparent;
  outline: none;
  height: 100%;
  box-sizing: border-box;
  border-radius: 0;
}

.phone-input-group .phone-number {
  flex: 1;
  padding: 13px 16px;
  border: none;
  font-size: 15px;
  color: #212529;
  background: transparent;
  outline: none;
  height: 100%;
  box-sizing: border-box;
  border-radius: 0;
}

.form-footer {
  text-align: center;
}

.privacy-note {
  font-size: 13px;
  color: #919191;
  margin-bottom: 12px;
}

.privacy-note a {
  color: #3687e3;
  text-decoration: underline;
}

.submit-button {
  background-color: #3687e3;
  color: #fff;
  font-family: "Montserrat Regular", Sans-serif;
  border: none;
  padding: 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease-in-out;
}

.submit-button:hover {
  background-color: #09468b;
}




.input-group-block {
  position: relative;
}

.input-group-block select {
  width: 100%;
  height: 48px;
  padding: 13px 40px 13px 16px; /* отступ справа для стрелки */
  background-color: #fafafa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 15px;
  color: #212529;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
  outline: none;

  /* Скрываем нативную стрелку */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Кастомная стрелка ߑ */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,55 70,95 110,55' fill='none' stroke='%236c757d' stroke-width='15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center; /* ߑ стрелка отодвинута от правого края на 15px */
  background-size: 12px;
}

/* При фокусе — синяя рамка */
.input-group-block select:focus {
  border: 2px solid #2a7de1;
}

/* Placeholder-стиль для первой опции */
.input-group-block select:invalid {
  color: #6c757d;
  font-weight: 500;
}








@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .input-group-block,
  .input-group-block.full-width,
  .phone-block {
    flex: 1 1 100%;
  }

  .phone-input-group {
    flex-direction: row;
    height: 48px;
  }

  .phone-input-group .country-code {
    border-right: 1px solid #ced4da;
    border-bottom: none;
  }
}





input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

.input-group-block:has(input:focus),
.input-group-block:has(textarea:focus),
.phone-block:has(input:focus) {
  border: 2px solid #2a7de1;
  border-radius: 6px;
  padding: 1px; /* компенсация для визуального выравнивания */
}
/* Обёртка textarea */
.input-group-block.full-width {
  background: #fafafa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 0; /* важно! */
  transition: border-color 0.2s;
}

/* При фокусе — подсветка рамки */
.input-group-block.full-width.focused {
  border: 2px solid #2a7de1;
  padding: 0; /* сохраняем ровность */
}

/* Стили для самого textarea */
.input-group-block.full-width textarea {
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 13px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #212529;
  resize: vertical;
  box-sizing: border-box;
}

    .iti__search-input {
      height: 30px;
    }
    .iti__country-container {
      font-size: 15px;
    }