/* ========================================
   ONLINE CONSULTATION PAGE
   ======================================== */

.consultation-intro {
  padding: 140px 0 167px;
  background:
    url("../images/online-consultation/consultation_hero.png") no-repeat center;
  background-size: cover;
}

.consultation-intro__title {
  margin-bottom: 10px;
  color: #ffffff;
  text-transform: none; */
}

.consultation-intro__text {
  margin: 0;
  color: #ffffff;
  text-transform: none;
  /* max-width: 328px; */
}

.consultation {
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url("../images/online-consultation/consultation-bg.png") no-repeat center top;
  background-size: cover;
}

.consultation__title {
  margin-bottom: 40px;
  color: #1D3174;
  text-align: center;
  text-transform: none;
}

.consultation-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 80px;
}

.consultation-feature {
  max-height: 211px;
  padding: 30px 24px;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
}

.consultation-feature__icon {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  object-fit: contain;
}

.consultation-feature__title {
  margin: 0 0 10px;
  color: #111827;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
}

.consultation-feature__text {
  margin: 0;
  color: #111827;
  font-family: Inter;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  font-family: Inter;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
}

/* Form card */

.consultation-request,
.consultation-success {
  max-width: 1190px;
  margin: 0 auto;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0px 4px 4px 0px #0000001C;
}

.consultation-request {
  padding: 80px 102px;
}

.consultation-form__title {
  margin: 0 0 40px;
  color: #1D3174;
  text-align: center;
  text-transform: none;
}

.consultation-form__notice {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  align-items: center;
  margin-bottom: 40px;
  padding: 0 20px;
  border: 1px solid #B1B1B1;
  border-radius: 6px;
  overflow: hidden;
  justify-content: space-between;
  min-height: 70px;
}

.consultation-form__notice-main {
  color: #12264A;
  font-family: Inter;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  align-items: center;
}

.consultation-form__notice-item {
  display: flex;
  /* align-items: center; */
  gap: 10px;
  min-height: 50px;
  /* padding: 8px 18px; */
  box-sizing: border-box;
}

.consultation-form__notice-icon {
  display: block;
  width: 41px;
  height: 50px;
  flex: 0 0 41px;
  object-fit: contain;
}

.consultation-form__notice-item h4 {
  margin: 0 0 5px;
  color: #3778DA;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}

.consultation-form__notice-item p {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
}

.consultation-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.consultation-field {
  display: block;
  margin-bottom: 20px;
}

.consultation-field__label {
  display: block;
  margin-bottom: 10px;
  color: #1B65D5;
  font-family: Inter;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.consultation-field__input,
.consultation-field__textarea {
  display: block;
  width: 100%;
  border: 1px solid #193270;
  border-radius: 6px;
  background: #ffffff;
  color: #000000;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-sizing: border-box;
  outline: none;
}

.consultation-field__input {
  height: 52px;
  padding: 10px 20px;
}

.consultation-field__textarea {
  min-height: 190px;
  padding: 10px 20px;
  resize: vertical;
}

.consultation-field__input::placeholder,
.consultation-field__textarea::placeholder {
  color: #00000080;
}

.consultation-field__input:focus,
.consultation-field__textarea:focus,
.consultation-phone:focus-within {
  border-color: #2178FF;
  /* box-shadow: 0 0 0 1px #1B65D5; */
}
.consultation-agreement__error {
  margin: 5px 0 0 39px;
  color: #C00000;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.consultation-field__error {
  display: none;
  margin-top: 20px;
  color: #C00000;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.consultation-agreement__error {
  display: none;
}

.consultation-agreement__error {
  display: none;
  color: #C00000;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 10px;
}

.consultation-field.is-error .consultation-field__input,
.consultation-field.is-error .consultation-field__textarea,
.consultation-field.is-error .consultation-phone {
  border-color: #C00000;
}

.consultation-field.is-error .consultation-field__error,
.consultation-agreement.is-error .consultation-agreement__error {
  display: block;
}

.consultation-phone {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 1px solid #1D3174;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

.consultation-phone__prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #1B65D5;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
}

.consultation-phone__input {
  height: 100%;
  border: 0;
  border-radius: 0;
  padding-left: 5px;
  width: 100%;
  background: transparent;
  color: #000000;
  box-sizing: border-box;
}

.consultation-phone__input:focus {
  box-shadow: none;
}

/* Checkboxes */
.consultation-checkboxes {
  margin-bottom: 40px;
}

.consultation-checkboxes__title {
  margin: 0 0 10px;
  color: #1B65D5;
  font-family: Inter;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.consultation-checkboxes__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.consultation-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000000;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.consultation-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consultation-checkbox span {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #193270;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.consultation-checkbox input:checked + span {
  border-color: #14CB6E;
}

.consultation-checkbox input:checked + span::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  color: #14CB6E;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.consultation-agreement {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  padding: 20px 16px;
  background: #F8F8F8;
  box-sizing: border-box;
  justify-content: space-between;
}
.consultation-agreement__notice {
  margin-bottom: 30px;
}
.consultation-checkbox--agreement {
  align-items: flex-start;
  color: #000000;
}
.consultation-agreement__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.consultation-agreement.is-error .consultation-checkbox--agreement span {
  border-color: #E21D1D;
}

.consultation-agreement__text {
  margin: 0 0 10px 39px;
  color: #00000080;
  font-weight: 400;
  font-family: Inter;
  font-size: 13px;
  line-height: 1.5;
  text-transform: none;
  text-wrap: wrap;
}

.consultation-agreement__link {
  display: inline-block;
  margin-left: 39px;
  color: #14CB6E;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}
.consultation-agreement__notice-title {
  margin-bottom: 5px;
  color: #1B65D5;
  font-weight: 500;
  text-transform: none;
  text-align: left;
}

.consultation-agreement__secure {
  display: flex;
  align-items: center;
  gap: 18px;
}

.consultation-agreement__secure-icon {
  width: 39px;
  height: 42px;
  flex: 0 0 39px;
  border-radius: 8px;
}

.consultation-agreement__secure p {
  margin: 0;
  color: #000000;
  font-family: Inter;
  font-size: 16px;
  line-height: 1.5;
  text-transform: none;
  font-weight: 400;
}

.consultation-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(270deg, #0555A6 0%, #1B65D5 100%);
  color: #ffffff;
  font-family: Inter;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.consultation-form__submit:hover,
.consultation-form__submit:focus {
  opacity: 0.85;
}

/* Success */

.consultation-success {
  min-height: 341px;
  padding: 80px 100px;
  text-align: center;
}

.consultation-success__icon {
  width: 74px;
  height: 71px;
  margin: 0 auto 35px;
  border-radius: 12px;
  background: #F3F7FF;
  position: relative;
}

.consultation-success__icon::before {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  color: #1B65D5;
  font-size: 42px;
  transform: translate(-50%, -50%);
}

.consultation-success__title {
  margin: 0 0 10px;
  color: #000000;
  font-weight: 700;
  text-transform: none;
}

.consultation-success__text {
  margin: 0;
  color: #535353;
  font-family: Inter;
  font-size: 16px;
  line-height: 1.5;
  text-transform: none;
}

/* Footer consultation */

.site-footer--consultation {
  padding: 110px 0;
  background: #303030;
}

.consultation-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) minmax(0, 1fr);
  align-items: start;
  min-height: 470px;
}

.consultation-footer__left {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.consultation-footer__center {
  justify-self: center;
}

.consultation-footer__right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 470px;
}
.site-footer__menu-block {
  margin-bottom: 64px;
}
.consultation-footer .site-footer__menu-title {
  margin: 0 0 24px;
  color: #1B65D5;
  font-family: Inter;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consultation-footer .site-footer__menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.consultation-footer .site-footer__menu-link {
  color: #ffffff;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
}

.consultation-footer .site-footer__contact {
  margin-bottom: 64px;
}

.consultation-footer .site-footer__contact-text,
.consultation-footer .site-footer__contact-mail {
  margin: 0;
  color: #ffffff;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
}

.consultation-footer .site-footer__subscription {
  width: 100%;
  max-width: 580px;
  margin: 0 0 54px;
}

.consultation-footer .site-footer__subscribe-field {
  display: flex;
  align-items: center;
  width: 580px;
  height: 48px;
  border: 1px solid #FFFFFF20;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
}
.consultation-footer .site-footer__subscribe-field:focus-within {
  border: 1px solid #1B65D5;
}
.consultation-footer .site-footer__subscribe-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  box-sizing: border-box;
}

.consultation-footer .site-footer__subscribe-input::placeholder {
  color: #ffffff;
}

.consultation-footer .site-footer__subscribe-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer__buttom_row {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.consultation-footer .site-footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.consultation-footer .site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  text-decoration: none;
  box-sizing: border-box;
}

.consultation-footer .site-footer__social img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.consultation-footer .site-footer__right-logo {
  display: block;
  width: 129px;
}

.consultation-footer .site-footer__right-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.consultation-footer__bottom {
  display: flex;
  align-items: center;
  gap: 40px;
  /* margin-top: auto; */
}

.consultation-footer .site-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: Inter;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.consultation-footer .site-footer__related-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 98px;
  height: 29px;
  max-width: none;
  margin: 0;
  padding: 2px 10px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #040404;
  font-family: Inter;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

.consultation-footer .site-footer__related-button span {
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-bottom: 6px solid #262626;
}



/* Responsive */
@media (max-width: 1024px) {
  .consultation-footer {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 32px;
    min-height: auto;
  }

  .consultation-footer__left,
  .consultation-footer__center {
    display: contents;
  }

  .consultation-footer__right {
    display: none;
  }

  .consultation-footer__left > .site-footer__menu-block,
  .consultation-footer__center > .site-footer__menu-block {
    margin-bottom: 0;
  }

  .consultation-footer__left > .site-footer__contact,
  .consultation-footer__left > .site-footer__subscription {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .consultation-footer .site-footer__subscribe-field {
    width: 100%;
    max-width: 630px;
  }

  .consultation-footer__bottom {
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .site-footer--consultation {
    padding: 70px 0;
  }

  .consultation-footer .site-footer__subscription {
    max-width: 100%;
  }

  .consultation-footer .site-footer__subscribe-field {
    width: 100%;
  }

  .consultation-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .consultation-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consultation-request {
    padding: 56px 40px;
  }

  .consultation-form__notice {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    row-gap: 12px;
  }

  .consultation-form__notice-main {
    padding-bottom: 12px;
    border-bottom: 1px solid #DBDBDB;
  }

  .consultation-form__notice-item {
    align-items: center;
    border-left: 0;
    min-height: 0;
  }

  .consultation-agreement {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .consultation-agreement__left {
    gap: 10px;
  }

  .consultation-agreement__text,
  .consultation-agreement__link {
    margin-left: 0;
    margin-bottom: 0;
  }

  .consultation-agreement__secure {
    padding-top: 14px;
    border-top: 1px solid #E5E5E5;
  }

  .consultation-agreement__secure p br {
    display: none;
  }

  .consultation-agreement__secure p {
    word-break: keep-all;
  }
}

@media (max-width: 640px) {
  .consultation-intro {
    padding: 120px 0 70px;
  }

  .consultation-intro__title,
  .consultation__title,
  .consultation-form__title {
    font-size: 30px;
  }

  .consultation-features,
  .consultation-form__grid {
    grid-template-columns: 1fr;
  }

  .consultation-request {
    padding: 42px 20px;
  }

  .consultation-checkboxes__list {
    flex-direction: column;
    gap: 14px;
  }
}
