/* ==========================
   HERO
========================== */
.contact-hero {
  background: #e3f5f9;
  text-align: center;
  padding: 60px 20px 50px;
}
.contact-hero h1 {
  color: #005385;
  font-size: 42px;
  font-weight: 700;
  margin: 0;
}

/* ==========================
   GRID
========================== */
.contact-main {
  width: min(1200px, 92%);
  margin: 40px auto 80px;
  font-family: 'Poppins', sans-serif;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================
   LEFT COLUMN — GET IN TOUCH
========================== */
.contact-left {
  background: rgba(0,143,173,1);
  color: #fff;
  width: 360px;
  height: 513px;
  padding: 40px 35px;
  border-radius: 2px 65px 65px 2px; /* 🔹 top-left, top-right, bottom-right, bottom-left */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  margin-left: 150px; /* 🔹 сдвигаем блок вправо */
}

.contact-left h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: -10px !important;
  margin-bottom: 8px !important; /* было 15 — жёстко фиксируем меньше */
}

.contact-left p {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 8px;
  margin: 0 0 14px 0 !important; /* 🔹 гарантировано 14 px после текста */
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 🔹 было 18px */
  margin-bottom: 10px; /* 🔹 было 25px */
}

/* --- PHONE ROW (phone + messengers inline) --- */
.contact-phone-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0px 0 0px 0;
  flex-wrap: wrap; /* чтобы не ломалось на мобильных */
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-phone img {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}

.contact-phone span {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

/* --- Messengers --- */
.contact-icons {
  display: flex;
  gap: 12px;
}
.contact-icons img {
  width: 27px;
  height: 27px;
  display: inline-block;
  vertical-align: middle;
}

.contact-icons a:hover img {
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
}

/* --- Phone & Email rows --- */
.contact-phone,
.contact-email {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.contact-phone img,
.contact-email img {
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.contact-phone span,
.contact-email a {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.contact-email a:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
}

/* --- Socials --- */
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  /*justify-content: flex-end; /* выровнять по левому или правому краю */
  gap: 10px;
  margin-top: 0px;
  margin-bottom: 18px !important; /* 🔹 было 18 — теперь ровно в два раза меньше */
}
.contact-socials img {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

.contact-socials a:hover img {
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
}

/* --- Schedule section --- */
.contact-meet-text {
  font-size: 15px;
  margin-top: 0px;
  margin-bottom: 8px !important;
  line-height: 1.5;
}

.btn-schedule {
  display: inline-block;
  height: 40px;                /* фиксированная высота */
  line-height: 40px;           /* центрирование текста по вертикали */
  padding: 0 24px;             /* горизонтальные отступы */
  border: 1px solid #005385; /* добавляем контур, чтобы переход был аккуратный */
  background: #005385;
  color: #fff;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.25s ease;
  width: fit-content;
  margin-top: 15px; /* 🔹 опускаем кнопку вниз */
}

.btn-schedule:hover {
  background: #fff;         /* 🔹 белый фон при наведении */
  color: #005385;           /* 🔹 синий текст */
  border-color: #005385;    /* 🔹 оставляем синий контур */
}

/* ==========================
   RIGHT COLUMN — CONTACT FORM
========================== */
.contact-right {
  background: rgb(227, 245, 249);
  width: 509px;
  height: 513px;
  padding: 40px 35px;
  border-radius: 2px 2px 2px 2px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-right h2 {
  font-size: 28px;
  font-weight: 700;
  color: #005385;
  margin-top: -8px;   /* 🔹 выровнен с Get in Touch */
  margin-bottom: 2px;
}

/* --- Form --- */
.contact-form label {
  display: block;
  font-size: 14px;
  color: #000;
  margin-top: 0px !important;
  font-weight: 400;
  margin-bottom: 4px;
}

.contact-form .required {
  color: #ff4040;
  margin-left: 3px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 5px 8px; /* 🔹 меньше высота полей */
  margin-bottom: 6px; /* 🔹 меньше отступ между полями */
  border: 1px solid #005385;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 50px; /* 🔹 ~2 строки */
  max-height: 70px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
  font-style: normal;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #003f66;
  outline: none;
}

/* --- Button --- */
.btn-send {
  display: inline-block;
  height: 40px;                /* фиксированная высота */
  line-height: 40px;           /* центрирование текста по вертикали */
  padding: 0 24px;             /* горизонтальные отступы */
  background: #005385;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  width: auto; /* 🔹 только по содержимому */
}

.btn-send:hover {
  background: #fff;
  color: #005385;
  border: 1px solid #005385;
}

/* --- Кнопка и сообщение в одной зоне --- */
.btn-area {
  position: relative;
  height: 40px; /* совпадает с высотой кнопки */
}

.form-status {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  text-align: center;
}

.form-status {
  display: none;
  line-height: 40px;
  font-size: 16px;
  font-weight: 450;
  color: #008fad;              /* мягкий бирюзовый */
  transition: opacity 0.3s ease;
  text-align: left; /* выравнивание по левому краю */
}

.form-status.success {
  color: #008fad;
  margin-left: 0 !important; /* 🔹 смещаем влево */
  margin-top: 10px !important;
  line-height: 1.3; /* 🔹 уменьшено межстрочное расстояние */
  letter-spacing: -0.3px; /* 🔹 уменьшает промежутки между буквами */
  width: 439px;
}

.form-status.error {
  color: #c62828;
  margin-left: 0 !important; /* 🔹 смещаем влево */
  margin-top: 10px !important;
  line-height: 1.3; /* 🔹 уменьшено межстрочное расстояние */
  letter-spacing: -0.3px; /* 🔹 уменьшает промежутки между буквами */
  width: 439px;
}

/* ==========================
   CONTACT — Bottom Block (Final)
========================== */
.contact-bottom {
  background: rgba(227,245,249,1); /* 🔹 голубой фон на всю ширину */
  padding-top: 10px;
  padding-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  color: #0b0b0b;
  width: 100%;           /* гарантирует 100% ширину */
}

.contact-bottom-grid {
  max-width: 1000px;     /* фиксированная ширина центра */
  width: 92%;            /* адаптивная */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Левая колонка --- */
.contact-bottom-left h2 {
  font-size: 24px;
  color: #005385;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 550;
}

.contact-bottom-left ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.contact-bottom-left li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-bottom-left li span {
  color: #007da3;
}

/* --- Правая колонка --- */
.contact-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;       /* 🔹 текст и кнопки центрируются */
  justify-content: center;   /* 🔹 блок выровнен по вертикали */
  text-align: center;
  transform: translateY(14px); /* 🔹 сдвигаем вниз, чтобы совпал с первым буллетом */
}

.contact-bottom-right p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 22px 0 22px 0;
  max-width: 90%;
}

/* --- Кнопки --- */
.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* синяя */
.btn-blue {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 28px;
  background: #005385;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #005385;
}
.btn-blue:hover {
  background: #fff;
  color: #005385;
}

/* белая */
.btn-outline {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 28px;
  margin-top: 0px !important;
  background: #fff;
  color: #005385;
  font-size: 16px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid #005385;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: #005385;
  color: #fff;
}

/* ==========================
   Адаптив для мобильных (контактная страница)
========================== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;   /* колонки — в столбик */
    gap: 30px;
    justify-items: center;        /* центрирование обеих секций */
  }

  /* Левая бирюзовая панель */
  .contact-left {
    width: 100%;                  /* тянется на всю ширину контейнера */
    max-width: 500px;             /* ограничиваем, чтобы не расползлась на планшетах */
    height: auto;                 /* авто-высота */
    margin: 0 auto;               /* центрируем */
    border-radius: 12px;          /* аккуратнее на мобильных */
    padding: 30px 24px;
  }

  /* Правая голубая панель (форма) */
  .contact-right {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    padding: 30px 24px;
  }

  /* Выровнять заголовки и текст */
  .contact-left h2,
  .contact-right h2 {
    text-align: center;
    font-size: 24px;
  }

  /* Внутренние тексты меньше, равномерные отступы */
  .contact-left p,
  .contact-meet-text {
    text-align: center;
    font-size: 15px;
  }

  /* Иконки и кнопки — по центру */
  .contact-icons,
  .contact-socials,
  .btn-schedule {
    justify-content: center;
    align-self: center;
  }

  .contact-icons img,
  .contact-socials img {
    width: 26px;
    height: 26px;
  }

  /* Кнопка “Schedule now” — центрируем и уменьшаем */
  .btn-schedule {
    font-size: 16px;
    height: 38px;
    line-height: 38px;
    padding: 0 20px;
    margin-top: 12px;
  }

  /* Поля формы и кнопка */
  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
    padding: 6px 10px;
  }

  .btn-send {
    font-size: 16px;
    padding: 0 22px;
  }

  /* Нижний голубой блок — на всю ширину, без зазора */
  .contact-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .contact-bottom-left h2 {
    text-align: center;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  /* Список In case you... выравниваем по левому краю */
  .contact-bottom-left ul {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
}