@font-face {
  font-family: 'AvantGardeCTT';
  src: url('./assets/fonts/AvantGardeCTT-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvantGardeCTT';
  src: url('./assets/fonts/AvantGardeCTT-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'AvantGardeCTT';
  src: url('./assets/fonts/AvantGardeCTT-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'AvantGardeCTT';
  src: url('./assets/fonts/AvantGardeCTT.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.ifyoucare-form-1,
.ifyoucare-form-1 *,
.ifyoucare-form-1 *::before,
.ifyoucare-form-1 *::after {
  box-sizing: border-box;
}

.ifyoucare-form-1 {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.ifyoucare-form-1.is-open {
  display: flex;
}

.ifyoucare-form-1__wrapper {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  padding-inline: 24px;
}

.ifyoucare-form-1__body {
  flex: 1;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding-top: 56px;
  border-radius: 30px;
  scrollbar-width: thin;
}

.ifyoucare-form-1__body::-webkit-scrollbar {
  width: 8px;
}

.ifyoucare-form-1__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.ifyoucare-form-1__main {
  width: 100%;
  margin-inline: auto;
  border-radius: 30px;
  background-color: #ffffff;
}

.ifyoucare-form-1__content {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
}

.ifyoucare-form-1__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
}

.ifyoucare-form-1__button-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: none;
  border-radius: 30px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.ifyoucare-form-1__button-close::before,
.ifyoucare-form-1__button-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 1px;
  background-color: #303030;
}

.ifyoucare-form-1__button-close::before {
  transform: rotate(-45deg);
}

.ifyoucare-form-1__button-close::after {
  transform: rotate(45deg);
}

.ifyoucare-form-1__image {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-top: -52px;
  object-fit: contain;
}

.ifyoucare-form-1__content-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin-inline: auto;
  padding: 12px 15px 20px;
}

.ifyoucare-form-1__title {
  margin: 10px 0;
  color: #303030;
  text-align: center;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.ifyoucare-form-1__subtitle {
  margin: 0 0 12px;
  color: #303030;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.ifyoucare-form-1__items,
.ifyoucare-form-1__field {
  width: 100%;
}

.ifyoucare-form-1__field + .ifyoucare-form-1__field {
  margin-top: 10px;
}

.ifyoucare-form-1__items {
  margin-bottom: 12px;
}

.ifyoucare-form-1__input {
  display: block;
  width: 100%;
  height: 45px;
  padding: 0 15px;
  border: 1px solid #eaeaea;
  border-radius: 40px;
  color: #303030;
  background: none;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.1;
}

.ifyoucare-form-1__input::placeholder {
  color: #303030;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 14px;
}

.ifyoucare-form-1__submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-bottom: 12px;
  border: none;
  border-radius: 40px;
  background: #ff647d;
  color: #ffffff;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ifyoucare-form-1__submit-button:not(.is-inactive):not(:disabled):hover {
  background: #5777b5;
}

.ifyoucare-form-1__submit-button:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.ifyoucare-form-1__submit-button.is-inactive {
  opacity: 0.55;
}

.ifyoucare-form-1__submit-button.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.ifyoucare-form-1__submit-button.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ifyoucare-spin 0.8s linear infinite;
}

@keyframes ifyoucare-spin {
  to {
    transform: rotate(360deg);
  }
}

.ifyoucare-form-1__agrees {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.ifyoucare-form-1__agree label {
  position: relative;
  display: block;
}

.ifyoucare-form-1__agree input {
  position: absolute;
  opacity: 0;
}

.ifyoucare-form-1__agree span {
  display: block;
  padding-left: 26px;
  color: #2e2a2a;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.ifyoucare-form-1__agree span::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 1px solid #ff647d;
  background: #ffffff;
}

.ifyoucare-form-1__agree span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  background-image: url('./assets/images/icon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ifyoucare-form-1__agree input:checked + span::after {
  opacity: 1;
}

.ifyoucare-form-1__agree span.is-invalid::before {
  border-width: 2px;
  border-color: #ff0000;
}

.ifyoucare-form-1__agree-text a {
  color: #5979b2;
  text-decoration: none;
}

.ifyoucare-form-1__agree-text a:hover {
  text-decoration: underline;
}

input[data-input='email'].is-invalid,
input[data-input='first_name'].is-invalid {
  border: 1px solid #ff0000;
}

.ifyoucare-form-1__field-error,
.ifyoucare-form-1__agree-error,
.ifyoucare-form-1__form-error {
  margin: 4px 0 0;
  color: #ff0000;
  font-family: 'AvantGardeCTT', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

.ifyoucare-form-1__field-error,
.ifyoucare-form-1__agree-error {
  min-height: 16px;
}

.ifyoucare-form-1__agree-error {
  padding-left: 26px;
}

.ifyoucare-form-1__form-error {
  width: 100%;
  min-height: 16px;
  margin: 0 0 12px;
}

.ifyoucare-form-1__input:focus-visible,
.ifyoucare-form-1__submit-button:focus-visible,
.ifyoucare-form-1__button-close:focus-visible,
.ifyoucare-form-1__agree-text a:focus-visible {
  outline: 2px solid #5777b5;
  outline-offset: 2px;
}

.ifyoucare-form-1__agree input:focus-visible + span::before {
  box-shadow: 0 0 0 2px rgba(87, 119, 181, 0.25);
}

.ifyoucare-form-1__input.is-invalid:focus-visible {
  border-color: #eaeaea;
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

.ifyoucare-form-1__agree input[aria-invalid='true']:focus-visible + span::before {
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.25);
}

.thankyou-screen {
  display: none;
}

.ifyoucare-form-1.is-success .first-screen {
  display: none;
}

.ifyoucare-form-1.is-success .thankyou-screen {
  display: flex;
  justify-content: center;
}

.ifyoucare-form-1.is-success .ifyoucare-form-1__subtitle {
  text-align: center;
}

.ifyoucare-form-1.is-success .ifyoucare-form-1__submit-button {
  margin-bottom: 0;
}

@media (max-width: 568px) {
  .ifyoucare-form-1 {
    padding: 0;
  }

  .ifyoucare-form-1__wrapper {
    padding: 24px 15px 15px;
  }

  .ifyoucare-form-1__body {
    max-height: calc(100vh - 12px);
    padding-top: 58px;
  }
}

@media (max-height: 800px) {
  .ifyoucare-form-1__body {
    padding-top: 48px;
  }

  .ifyoucare-form-1__image {
    max-width: 190px;
    margin-top: -40px;
  }

  .ifyoucare-form-1__content-body {
    padding-bottom: 16px;
  }
}

@media (max-height: 700px) {
  .ifyoucare-form-1__wrapper {
    padding-inline: 12px;
  }

  .ifyoucare-form-1__body {
    max-height: calc(100vh - 12px);
    padding-top: 40px;
  }

  .ifyoucare-form-1__image {
    max-width: 160px;
    margin-top: -30px;
  }

  .ifyoucare-form-1__subtitle {
    margin-bottom: 8px;
  }
}
