/*  Webform Start */

p {
  margin-bottom: 0px;
}

.form-header-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  margin: 0px;
}

.webform-section-title {
  color: #515861;
  text-align: left;
  font-family: agenda, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  position: relative;
  align-self: stretch;
}

.form-checkbox {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

label {
  color: #515861;
  text-align: left;
  font-family: agenda, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: 400;
  position: relative;
  flex: 1;
}

/* ===== */

.register-form-wrapper,
.register-form-wrapper * {
  box-sizing: border-box;
}

.bg-p-45 {
  background: #fef3ef;
  padding: 45px;
}

.register-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.register-form-wrapper a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.register-form-wrapper a:hover {
  color: #C94808;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.register-form-wrapper sup {
  font-size: 50%; /* or whatever size you want */
  vertical-align: super;
}

@media (max-width: 767px) {
  .register-form-wrapper {
    margin-bottom: 40px;
  }
}

.form-select {
  background: #ffffff;
  border-radius: 8px;
  border-style: solid;
  border-color:  #515861;
  border-width: 1px;
  padding: 12px 12px 12px 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  max-height: 44px;
  position: relative;
  text-wrap-mode: nowrap;

  @media (min-width: 768px) {
    min-width: 240px;
  }
}


.form-select:hover, .form-select:active, .form-select:focus,
.form-select:focus-visible, .form-select:focus-within {
  background: #ffffff;
  border:1px solid #F16B50;
}

.webform-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;

  .form-item {
    width: 100%;

    input, select {
      width: 100%;
    }
  }

  section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    align-self: stretch;
    flex: 1 0 0;
    position: relative;
    gap: 16px;

    .form-item {
      width: 100%;

      input, select {
        width: 100%;
      }
    }
  }

}

@media(min-width: 768px) {
  .webform-section-wrapper {
    flex-direction: row;
  }
}

.input, .form-text, .form-email {
  background: var(--white, #ffffff);
  border-radius: 8px;
  border-style: solid;
  border-color: var(--steel, #515861);
  border-width: 1px;
  padding: var(--var-sds-size-space-300, 12px)
    var(--var-sds-size-space-400, 16px) var(--var-sds-size-space-300, 12px)
    var(--var-sds-size-space-400, 16px);
  display: flex;
  flex-direction: row;
  gap: 0px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;

  @media (min-width:768px) {
    min-width: 240px;
  }
}


/* Drop Down */

select,
::picker(select) {
  appearance: base-select;
}

select {
  flex: 1;
  padding: 10px;
}

select::picker-icon {
  color: #fff;
  transition: 0.4s rotate;
  width: 24px;
  height: 24px;
  background-image: url(../../images/icons/select-down.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  content: '';
}

select:open::picker-icon {
  rotate: 180deg;
}

::picker(select) {
  border: none;
}
option {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  padding: 10px;
  transition: 0.4s;
  border-width: 0px 1px 0px 1px;
  border-color:#F16B50;
  border-style: solid;
  width: 77vw;

  @media (min-width: 426px) {
    width: 83vw;
  }

  @media (min-width: 575px) {
    width: 83vw;
  }

  @media (min-width: 576px) {
    width: 87vw;
  }

  @media (min-width: 768px) {
    width: 43vw;
  }

  @media (min-width: 768px) {
    max-width: 510px;

  }
}

option:first-of-type {
  display: none;
}

option:nth-child(2) {
  border-radius: 8px 8px 0 0;
  border-width: 1px 1px 0px 1px;
}

option:last-of-type {
  border-radius: 0 0 8px 8px;
  border-width: 0px 1px 1px 1px;
}

option:not(option:last-of-type) {
  border-bottom: none;
}

option {
  text-wrap: auto;
}

.option-item {
  color: #1D2D3A;
  font-family: agenda, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-wrap: auto;
}

option:hover {
  background: #fff;
}

option:checked {
  font-weight: bold;
}

::picker(select) {
  opacity: 0;
  transition: all 0.4s allow-discrete;
}
::picker(select):popover-open {
  opacity: 1;
}

option:not(:checked)::checkmark {
  content: url(../../images/icons/radio-unchecked.svg);
  visibility: visible;
}

option:hover:not(:checked)::checkmark {
  content: url(../../images/icons/radio-hover.svg);
  visibility: visible;
}

option::checkmark {
  content: url(../../images/icons/radio-checked.svg);
  visibility: visible;
  height: 20px;
}

/* Checkbox */

/* Hide the native checkbox */
.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

/* Style the custom icon */
.checkbox-wrapper .checkbox-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../../images/icons/checkbox-unchecked.svg'); /* default state */
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  transition: background-image 0.2s ease;
}

/* Checked state */
.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-icon {
  background-image: url('../../images/icons/checkbox-checked.svg');
}

/* Hover state (only when not checked) */
.checkbox-wrapper:hover input[type="checkbox"]:not(:checked) + .checkbox-icon {
  background-image: url('../../images/icons/checkbox-hover.svg');
}

.form-wrapper {
  width: 100%;
  display: flex;

  .form-wrapper {
    display: flex;
    flex-direction: column;
  }
}

.webform-submission-form {
  margin: 40px auto;
  display: flex;
  flex-direction: column;
}

.webform-confirmation {
  background-color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 40px;
  /* align-items: center; */
  gap: 24px;
  align-self: stretch;

  @media (min-width: 769px) {
    gap: 60px;
    padding: 80px;
    text-align: left;
  }

  .webform-confirmation__message {
    h2 {

      @media (max-width: 768px) {
        font-size: 38px;
        line-height: normal;
        color: #1D2D3A;
      }
    }
  }

}

.webform-confirmation__message,
.webform-confirmation__back {
  margin: 0px !important;
  text-align: left;
  color: #515861;
}

.webform-confirmation__back {

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  a {
    color: #515861;
    text-decoration: none;
  }
}


.bg-background {
  background-color: #fef3ef;
}

.p-45 {
  padding: 24px;
  @media(min-width:48.1rem) {
    padding: 45px;
  }
}

.p-80 {
  padding: 16px;

  @media(min-width:48.1rem) {
    padding: 80px;
  }
}

.color-text {
  color: #535459;
}

.color-steel {
  color: var(--color-steel, #515861);
}

.color-coral {
  color: var(--color-red, #C94808);
}

.font-agenda {
  font-family: agenda, -apple-system, Roboto, Helvetica, sans-serif;
}

.text-md {
  font-size: 20px;
  line-height: 22px;
}

.text-sm {
  font-size: 16px;
  line-height: 20px;
}

.font-normal {
  font-weight: 400;
}

.font-bold {
  font-weight: 700;
}

.form-type-textfield,
.form-type-email {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ionis-form-radios-other {
  display: flex;
  flex-direction: column;
  gap: 24px;

  &>label {
    color: #515861;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
  }

  #edit-want-a-call-radios {
    display: contents;

    &>div:first-child{
      order: 3;
      margin: 0px;
    }

    &>div:last-child{
      order: 1;
      margin: 0px;
    }
  }

  .webform-radios-other-input {
    order: 2;

    label {
      display: flex;
      font-size: 20px;
      color: #515861;
    }

    input {
      display: flex;
      height: 44px;
      min-width: 240px;
      padding: 12px 16px;
      align-items: center;
      align-self: stretch;
      display: flex;
      min-width: 240px;
      border-radius: 8px;
      border: 1px solid #515861;
      background: #FFF;
      margin-top: 8px;
    }

  }

  .form-item-want-a-call-radios {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 0px;
    align-items: end;

    input {
      display: flex;
      width: 20px;
      height: 20px;
      appearance: none;
      background-image: url(../../images/icons/radio-unchecked.svg);
      background-size: contain;
      background-repeat: no-repeat;
      cursor: pointer;
      border-width: initial;
      border-style: none;
      border-color: initial;
      border-image: initial;
      outline: none;
      transition: background-image 0.3s;

      &:checked {
        background-image: url(../../images/icons/radio-checked.svg);
      }
    }
  }


}

.webinar_container {
  display: flex;
  flex-direction: column;
  gap: 40px;

  .webinar_sign_for {
    margin-top: 16px;

    legend {
      margin-bottom: 24px !important;

      span {
        font-size: 20px;
        line-height: 22px;
        font-weight: 700;
        color: #515861;
      }
    }

    input {
      width: 20px;
      height: 20px;
      appearance: none;
      background-image: url(../../images/icons/radio-unchecked.svg);
      background-size: contain;
      background-repeat: no-repeat;
      cursor: pointer;
      border-width: initial;
      border-style: none;
      border-color: initial;
      border-image: initial;
      outline: none;
      transition: background-image 0.3s;
      &:checked {
        background-image: url(../../images/icons/radio-checked.svg);
      }
    }

    #edit-which-webinar-would-you-like-to-sign-up-for {
      display: flex;
      flex-direction: column;
      gap: 24px;

      &>div {
        margin-top: 0px;
        margin-bottom: 0px;
      }

      label {
        color: #1D2D3A;
        margin-left: 13px;
        font-weight: 700 !important;
        font-size: 20px;
        position: relative;
        top: -4px;

        @media (min-width: 376px) {
          margin-left: 1rem;
          top: -4px;
        }
      }

      .description {
        color: #1D2D3A;
        margin-left: 37px !important;
        line-height: normal;
        margin-top: 0px;
        font-size: 20px;
        line-height: 22px;
        margin-top: -9px !important;

        @media (min-width: 376px) {
          margin-left: 40px !important;
          margin-top: -7px !important;
        }

      }
    }


  }
}


div.form-item-are-you-or-your-loved-one-currently-treating-with-other {

  margin-top: 0px;
  margin-bottom: 0px;

  select#edit-are-you-or-your-loved-one-currently-treating-with-other {

    width: 75vw;
    @media (min-width: 550px) {
      width: 420px;
    }

    option {
      width: 75vw;
      @media (min-width: 550px) {
        width: 420px;
      }

      &:nth-child(2) {
        margin-top: 8px;
      }

      &:last-child {
        margin-bottom: 8px;
      }
    }
  }
}


#edit-which-webinar-would-you-like-to-sign-up-for--wrapper {
  ul {

    list-style-type: disc;
    margin-left: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;

    li::marker {
      color: var(--color-coral);
    }
  }
}

#edit-which-webinar-would-you-like-to-sign-up-for--wrapper ul li span {
  font-size: 16px; /* or your desired small size */
}


/* Webform End */
