/* ===============================
   ATMS Certification CTA Section
================================ */

.atms-certification-cta {
  position: relative;
  width: 100%;
  min-height: 867px;
  background: #035695;
  overflow: hidden;
  font-family: "Geist", Arial, sans-serif;
}

.atms-certification-cta *,
.atms-certification-cta *::before,
.atms-certification-cta *::after {
  box-sizing: border-box;
}

.atms-certification-cta-bg {
  position: absolute;
  inset: 0;
  background-image: var(--cta-bg);
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat;

  transform: scale(1);
  filter: brightness(1);

  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s ease;

  will-change: transform;
  z-index: 1;
}

.atms-certification-cta:hover .atms-certification-cta-bg {
  transform: scale(1.20);
  filter: brightness(1.04);
} 

.atms-certification-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 39, 70, 0.72) 0%,
    rgba(0, 55, 95, 0.42) 42%,
    rgba(0, 0, 0, 0.06) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.atms-certification-cta-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1184px;
  min-height: 867px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.atms-certification-cta-content {
  width: 100%;
  max-width: 785px;
}

.atms-certification-cta-content h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 39px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0;
  max-width: 785px;
  white-space: nowrap;
}

.atms-certification-cta-content p {
  margin: 0 0 64px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 33px;
  max-width: 785px;
  white-space: nowrap;
}

/* ===============================
   Form
================================ */

.atms-certification-form {
  width: 100%;
  max-width: 572px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.atms-form-field {
  width: 100%;
}

.atms-form-field input,
.atms-form-field select,
.atms-form-phone input {
  width: 100%;
  height: 55px;
  min-height: 55px;
  max-height: 55px;
  border: 0;
  outline: none;
  border-radius: 20px !important;
  background-color: #ffffff;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 55px;
  padding: 0 29px;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.atms-form-field input::placeholder,
.atms-form-phone input::placeholder {
  color: #5e5e5e;
  opacity: 1;
}

/* Certification select arrow only */
.atms-form-field select {
  cursor: pointer;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, #5e5e5e 50%),
    linear-gradient(135deg, #5e5e5e 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 24px,
    calc(100% - 16px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* ===============================
   Phone Row
================================ */

.atms-form-phone-row {
  width: 100%;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.atms-form-code {
  position: relative;
  width: 120px;
  height: 55px;
  z-index: 20;
}

.atms-form-phone {
  width: 100%;
}

.atms-form-phone input {
  width: 100%;
}

/* ===============================
   Custom Country Code Dropdown
================================ */

.atms-country-dropdown {
  position: relative;
  width: 120px;
  height: 55px;
  font-family: "Geist", Arial, sans-serif;
}

.atms-country-toggle {
  position: relative;
  width: 120px;
  height: 55px;
  border: 0 !important;
  outline: none !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  color: #5e5e5e !important;
  font-family: "Geist", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 0 34px 0 24px !important;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  box-shadow: none !important;
  text-decoration: none !important;
}

.atms-country-selected {
  display: block;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

.atms-country-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #5e5e5e;
  border-bottom: 2px solid #5e5e5e;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 250ms ease;
  pointer-events: none;
}

.atms-country-dropdown.is-open .atms-country-arrow {
  transform: translateY(-35%) rotate(-135deg);
}

.atms-country-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 230px;
  max-height: 220px;
  overflow-y: auto;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 8px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;

  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.atms-country-dropdown.is-open .atms-country-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.atms-country-menu button {
  width: 100%;
  min-height: 38px;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #5e5e5e !important;
  font-family: "Geist", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  border-radius: 10px;
  padding: 9px 12px !important;
  cursor: pointer;
  box-shadow: none !important;

  display: flex;
  align-items: center;
}

.atms-country-menu button:hover,
.atms-country-menu button.is-selected {
  background: #035695 !important;
  color: #ffffff !important;
}

.atms-country-menu::-webkit-scrollbar {
  width: 6px;
}

.atms-country-menu::-webkit-scrollbar-track {
  background: transparent;
}

.atms-country-menu::-webkit-scrollbar-thumb {
  background: rgba(94, 94, 94, 0.35);
  border-radius: 20px;
}

/* ===============================
   Submit Button
================================ */

.atms-certification-submit {
  width: 93px !important;
  height: 50px !important;
  min-width: 93px !important;
  min-height: 50px !important;

  border: 0 !important;
  outline: none !important;
  border-radius: 10px !important;

  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;

  font-family: "Geist", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  padding: 0 !important;
  margin: 0;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: none !important;
  text-decoration: none !important;

  transition:
    background 350ms ease,
    color 350ms ease,
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.atms-certification-submit:hover,
.atms-certification-submit:focus {
  background: #ffe331 !important;
  color: #1f2b3a !important;
  transform: translateY(-2px);
}

/* ===============================
   Success / Error Message
================================ */

.atms-form-message {
  display: none;
  max-width: 572px;
  margin-top: -6px;
  color: #ffffff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.atms-form-message.is-success,
.atms-form-message.is-error {
  display: block;
}

.atms-form-message.is-success {
  color: #ffffff;
}

.atms-form-message.is-error {
  color: #ffe331;
}

.atms-certification-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===============================
   Laptop
================================ */

@media (max-width: 1366px) {
  .atms-certification-cta {
    min-height: 720px;
  }

  .atms-certification-cta-container {
    max-width: 980px;
    min-height: 720px;
  }

  .atms-certification-cta-content {
    max-width: 785px;
  }

  .atms-certification-form {
    max-width: 500px;
  }

  .atms-certification-cta-content h2 {
    font-size: 34px;
    line-height: 42px;
  }

  .atms-certification-cta-content p {
    font-size: 17px;
    line-height: 29px;
    margin-bottom: 48px;
  }
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  .atms-certification-cta {
    min-height: 680px;
  }

  .atms-certification-cta-container {
    max-width: 720px;
    min-height: 680px;
    padding: 0 24px;
  }

  .atms-certification-cta-content {
    max-width: 100%;
  }

  .atms-certification-form {
    max-width: 520px;
  }

  .atms-certification-cta-content h2 {
    font-size: 32px;
    line-height: 40px;
    white-space: normal;
  }

  .atms-certification-cta-content p {
    font-size: 16px;
    line-height: 27px;
    margin-bottom: 42px;
    white-space: normal;
  }
}

/* ===============================
   Mobile
================================ */

@media (max-width: 767px) {
  .atms-certification-cta {
    min-height: auto;
  }

  .atms-certification-cta-bg {
    background-position: center right;
  }

  .atms-certification-cta::after {
    background: linear-gradient(
      90deg,
      rgba(0, 39, 70, 0.82) 0%,
      rgba(0, 39, 70, 0.66) 58%,
      rgba(0, 39, 70, 0.32) 100%
    );
  }

  .atms-certification-cta-container {
    min-height: auto;
    padding: 80px 24px 90px;
  }

  .atms-certification-cta-content,
  .atms-certification-form {
    max-width: 100%;
  }

  .atms-certification-cta-content h2 {
    font-size: 30px;
    line-height: 38px;
    white-space: normal;
  }

  .atms-certification-cta-content p {
    font-size: 15px;
    line-height: 25px;
    margin-bottom: 36px;
    white-space: normal;
  }

  .atms-certification-form {
    gap: 16px;
  }

  .atms-form-field input,
  .atms-form-field select,
  .atms-form-phone input {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    border-radius: 20px !important;
    font-size: 15px;
    line-height: 52px;
    padding: 0 20px;
  }

  .atms-form-phone-row {
    grid-template-columns: 108px 1fr;
    gap: 12px;
  }

  .atms-form-code,
  .atms-country-dropdown {
    width: 108px;
    height: 52px;
  }

  .atms-country-toggle {
    width: 108px;
    height: 52px;
    border-radius: 20px !important;
    font-size: 15px;
    padding: 0 32px 0 18px !important;
  }

  .atms-country-selected {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }

  .atms-country-arrow {
    right: 18px;
  }

  .atms-country-menu {
    width: 210px;
    max-height: 200px;
  }

  .atms-country-menu button {
    min-height: 36px;
    font-size: 14px;
  }

  .atms-certification-submit {
    width: 90px !important;
    height: 48px !important;
    min-width: 90px !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    font-size: 13px;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-certification-cta-container {
    padding: 70px 18px 76px;
  }

  .atms-certification-cta-content h2 {
    font-size: 27px;
    line-height: 34px;
    white-space: normal;
  }

  .atms-certification-cta-content p {
    font-size: 14px;
    line-height: 24px;
    white-space: normal;
  }

  .atms-form-phone-row {
    grid-template-columns: 104px 1fr;
    gap: 10px;
  }

  .atms-form-code,
  .atms-country-dropdown {
    width: 104px;
    height: 52px;
  }

  .atms-country-toggle {
    width: 104px;
    height: 52px;
    font-size: 14px;
    padding: 0 30px 0 16px !important;
  }

  .atms-country-selected {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .atms-country-arrow {
    right: 17px;
  }

  .atms-country-menu {
    width: 200px;
    max-height: 190px;
  }

  .atms-certification-submit {
    width: 90px !important;
    height: 48px !important;
    min-width: 90px !important;
    min-height: 48px !important;
  }
}

/* ===============================
   CTA Program Select2 Styling
================================ */

.atms-program-field .select2-container {
  width: 100% !important;
  height: 55px !important;
}

.atms-program-field .select2-container .select2-selection--single {
  width: 100% !important;
  height: 55px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
}

.atms-program-field .select2-selection__rendered {
  color: #5e5e5e !important;
  font-family: "Geist", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 55px !important;
  padding-left: 29px !important;
  padding-right: 48px !important;
}

.atms-program-field .select2-selection__placeholder {
  color: #5e5e5e !important;
}

.atms-program-field .select2-selection__arrow {
  height: 55px !important;
  right: 18px !important;
}

.select2-dropdown {
  border: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18) !important;
  font-family: "Geist", Arial, sans-serif !important;
}

.select2-search--dropdown {
  padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
  height: 42px !important;
  border: 1px solid rgba(94, 94, 94, 0.25) !important;
  border-radius: 12px !important;
  outline: none !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #5e5e5e !important;
}

.select2-results__options {
  max-height: 240px !important;
}

.select2-results__option {
  padding: 10px 14px !important;
  color: #5e5e5e !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

.select2-results__option--highlighted {
  background: #035695 !important;
  color: #ffffff !important;
}

.select2-results__option--selected {
  background: #ffe331 !important;
  color: #5e5e5e !important;
}

/* Mobile */
@media (max-width: 767px) {
  .atms-program-field .select2-container,
  .atms-program-field .select2-container .select2-selection--single {
    height: 52px !important;
  }

  .atms-program-field .select2-selection__rendered {
    font-size: 15px !important;
    line-height: 52px !important;
    padding-left: 20px !important;
  }

  .atms-program-field .select2-selection__arrow {
    height: 52px !important;
  }
}