.country-details-page {
  overflow-x: hidden;
}

.country-detail-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  overflow: hidden;
  color: #ffffff;

  .country-detail-hero__media {
    position: absolute;
    inset: 0;
  }

  .country-detail-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .country-detail-hero__content {
    &[data-aos] {
      transform-origin: center bottom;
    }
  }
}

.country-employer-form {
  position: relative;
  padding-bottom: 16px;
  background:
    radial-gradient(
      circle at top left,
      rgba(15, 107, 77, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(215, 241, 92, 0.14),
      transparent 20%
    ),
    linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);

  .country-employer-form__header {
    margin-bottom: 42px;
  }

  .info {
    height: 100%;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 32px;

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 6px 16px;
      margin-bottom: 22px;
      border-radius: 999px;
      background: rgba(15, 107, 77, 0.08);
      color: #0f6b4d;
      font-size: var(--fs-xs);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .title {
      margin: 0 0 16px;
      color: var(--darkest-blue-gray);
      font-family: "Satoshi", "Poppins", sans-serif;
      font-size: var(--fs-xl);
      font-weight: 700;
      line-height: 1.18;
    }

    .text,
    .copy {
      margin: 0;
      color: var(--medium-gray);
      font-size: var(--fs-base);
      line-height: 1.75;
    }

    .block {
      margin-top: 28px;
    }

    .heading {
      margin: 0 0 10px;
      color: #163239;
      font-family: "Satoshi", "Poppins", sans-serif;
      font-size: var(--fs-md);
      font-weight: 700;
    }

    .list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 12px;

      li {
        position: relative;
        padding-left: 28px;
        color: var(--dark-blue-gray);
        font-size: var(--fs-sm);
        line-height: 1.65;

        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 9px;
          width: 12px;
          height: 12px;
          border-radius: 50%;
          background: linear-gradient(135deg, #d7f15c 0%, #53a04f 100%);
          box-shadow: 0 0 0 4px rgba(83, 160, 79, 0.12);
        }
      }
    }
  }

  .country-employer-form__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(15, 107, 77, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f6b4d;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(38, 48, 56, 0.05);
  }

  .panel {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(15, 107, 77, 0.1);
    border-radius: 32px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(246, 250, 247, 0.98)
      ),
      linear-gradient(135deg, rgba(215, 241, 92, 0.08), rgba(15, 107, 77, 0.03));
    box-shadow:
      0 28px 60px rgba(19, 39, 32, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;

    .top {
      max-width: 620px;
      margin: 0 auto 30px;
    }

    .title {
      margin: 0 0 8px;
      color: var(--darkest-blue-gray);
      font-family: "Satoshi", "Poppins", sans-serif;
      font-size: var(--fs-xl);
      font-weight: 700;
    }

    .text {
      margin: 0;
      color: var(--medium-gray);
      font-size: var(--fs-base);
      line-height: 1.7;
    }

    .link {
      color: #0f6b4d;
      font-weight: 700;
      text-decoration: none;

      &:hover {
        color: #0b5b41;
        text-decoration: underline;
      }
    }

    .form {
      position: relative;
      z-index: 1;
    }
  }

  .custom_form_label {
    margin-bottom: 12px;
    color: #254f45;
    font-size: var(--fs-xs);
  }

  .custom_form_input {
    border-color: rgba(15, 107, 77, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 2px rgba(38, 48, 56, 0.03);

    &::placeholder {
      color: #8b9d96;
    }

    &:focus {
      border-color: #0f6b4d;
      box-shadow:
        0 0 0 4px rgba(83, 160, 79, 0.1),
        0 14px 30px rgba(15, 107, 77, 0.08);
    }
  }

  .custom_form_textarea {
    min-height: 150px;
  }

  .custom_form_submit {
    width: auto;
    min-width: 210px;
    padding-inline: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #163239 0%, #0f6b4d 100%);
    box-shadow: 0 16px 34px rgba(15, 107, 77, 0.18);

    &:hover {
      background: linear-gradient(135deg, #112a30 0%, #0c5d43 100%);
      box-shadow: 0 20px 40px rgba(15, 107, 77, 0.22);
    }
  }

  .captcha-code {
    min-height: 60px;
    padding: 0 20px;
    border: 1px dashed rgba(15, 107, 77, 0.22);
    border-radius: 14px;
    background:
      linear-gradient(
        135deg,
        rgba(215, 241, 92, 0.16),
        rgba(15, 107, 77, 0.06)
      ),
      #ffffff;
    color: var(--darkest-blue-gray);
    font-family: "Satoshi", "Poppins", sans-serif;
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.country-highlights {
  overflow-x: clip;
  padding-bottom: 18px;

  .country-highlights__row + .country-highlights__row {
    margin-top: 28px;
  }

  .country-highlights__content {
    max-width: 540px;
  }

  .outline-secondary-badge {
    margin-bottom: 24px;
  }

  .country-highlights__list {
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
  }

  .country-highlights__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--medium-gray);
    font-size: var(--fs-md);
    line-height: 1.45;

    & + .country-highlights__item {
      margin-top: 16px;
    }
  }

  .country-highlights__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #09b15a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: var(--fs-xs);
  }

  .custom-icon-btn {
    width: fit-content;
  }

  .country-highlights__media {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(19, 39, 32, 0.12);
  }

  .country-highlights__image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
  }

  .country-highlights__title {
    margin: 0 0 18px;
    color: var(--dark-blue-gray);
    font-family: "Satoshi", "Poppins", sans-serif;
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.08;
  }

  .country-highlights__text {
    margin: 0;
    color: var(--medium-gray);
    font-size: var(--fs-base);
    line-height: 1.45;

    & + .country-highlights__text {
      margin-top: 12px;
    }
  }
}

.country-process-banner {
  .country-process-banner__panel {
    position: relative;
    overflow: hidden;
    padding-block: clamp(72px, 10vw, 120px) !important;
    background-image:
      linear-gradient(rgba(14, 22, 34, 0.62), rgba(14, 22, 34, 0.62)),
      url("../../img/country-proces-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 24px 54px rgba(12, 24, 32, 0.18);
  }

  .outline-secondary-badge {
    margin-bottom: 26px;
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
  }

  .section-intro-title {
    margin-bottom: 0;
    color: #ffffff;
    font-size: var(--fs-2xl);
    line-height: 1.12;

    span {
      color: var(--secondary-lime);
    }
  }

  .section-intro-text {
    max-width: 900px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--fs-base);
    line-height: 1.5;
  }
}

.country-get-started {
  .country-get-started__panel {
    border: 1px solid rgba(15, 107, 77, 0.1);
    border-radius: 28px;
    background:
      radial-gradient(
        circle at top left,
        rgba(185, 214, 76, 0.2),
        transparent 30%
      ),
      radial-gradient(
        circle at bottom right,
        rgba(15, 107, 77, 0.18),
        transparent 26%
      ),
      linear-gradient(135deg, #eef5f0 0%, #dfece4 52%, #d4e4da 100%);
    box-shadow: 0 18px 42px rgba(19, 39, 32, 0.08);
  }

  .section-intro-title {
    margin-bottom: 0;
  }

  .section-intro-text {
    max-width: 760px;
    margin-inline: auto;
  }

  .country-get-started__cta {
    width: fit-content;
    margin-inline: auto;
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  .country-detail-hero {
    min-height: 350px;
    padding: 80px 0;
  }

  .country-employer-form {
    .country-employer-form__header {
      margin-bottom: 34px;
    }

    .info {
      border-radius: 24px;
      padding: 22px 16px;

      .badge {
        margin-bottom: 18px;
      }

      .block {
        margin-top: 22px;
      }
    }

    .panel {
      border-radius: 24px;
      padding: 22px 16px;

      .top {
        margin-bottom: 24px;
      }

      .title {
        line-height: 1.2;
      }

      .text {
        font-size: var(--fs-sm);
      }
    }

    .captcha-code {
      min-height: 56px;
      font-size: var(--fs-md);
    }

    .custom_form_submit {
      width: 100%;
    }
  }

  .country-highlights {
    .country-highlights__row + .country-highlights__row {
      margin-top: 18px;
    }

    .country-highlights__content {
      max-width: none;
    }

    .outline-secondary-badge {
      margin-bottom: 20px;
    }

    .country-highlights__item {
      font-size: var(--fs-base);
      gap: 12px;
    }

    .custom-icon-btn {
      width: 100%;
      justify-content: center;
    }

    .country-highlights__image {
      min-height: 240px;
    }

    .country-highlights__title {
      line-height: 1.12;
    }
  }

  .country-process-banner {
    .country-process-banner__panel {
      padding-block: 56px !important;
    }

    .outline-secondary-badge {
      margin-bottom: 20px;
    }

    .section-intro-title {
      line-height: 1.16;
    }

    .custom-icon-btn {
      width: 100%;
      justify-content: center;
    }
  }

  .country-get-started {
    .country-get-started__panel {
      border-radius: 22px;
    }

    .country-get-started__cta {
      width: 100%;
      justify-content: space-between;
    }
  }
}
