/* Page layout */
.header-interior .header-image {
    flex: 0 0 36%;
}
.header-interior .content-container {
  flex: 0 0 58%;
}




.line-it-up {
  background: #fff linear-gradient(to top, #F5F5F7, #fff);
  color: #4b4f54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 0 10px 40px;
  margin-top: -75px;
  @media screen and (max-width: 768px) {
    margin-top: 0;
  }
  p {
    margin: 0;
    color: inherit;
  }

   ~ .mod-half-video-image.normal .image-col:after {
    background: transparent;
  }

  .style2 {
    text-align: center;
  }

  .intro {
    max-width: 41rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.625;
    a {
      color: #3C5997;
      text-decoration: underline;
      font-weight: 600;
      &:hover {
        color: #00afd7;
      }
    }
  }

  .note {
    text-align: center;
    font-size: 14px;
    margin: 0em 0 1em;
  }

  @media (min-width: 768px) {
    .page-title {
      font-size: 3rem;
    }
  }

  /* Step sections */

.steps-head {
  display: flex;
  gap: 25px;
  align-items: center;
  svg {
    vertical-align: middle;
  }
}

@media (max-width: 768px) {
  .steps-head {
    flex-direction: column;
    gap: 12px;
    > svg {
      transform: rotate(90deg);
    }
  }
}

  .step {
    width: 100%;
    max-width: 72rem;
  }

  .step-title {
    color: #1b4873;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    text-align: center;

  }

  #status {
    display: none;
  }

  .step-text {
    font-size: 18px;
    line-height: 22px;
    max-width: 750px;
    text-wrap: balance;
    margin-bottom: 0;
    text-align: center;

    span {
      color: #00afd7;
      font-weight: bold;
      font-size: 20px;
    }
  }

  @media (min-width: 768px) {
    .step-title {
      font-size: 1.5rem;
      text-align: left;
    }

    .step-text {
      font-size: 1.125rem;
      text-align: left;
    }
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  @media (min-width: 640px) {
    .cards-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem;
    }
  }

  @media (min-width: 1024px) {
    .cards-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }

  /* Bet card */

  .bet-card {
    width: 100%;
    height: 100%;
    min-height: 150px;
    cursor: grab;
    position: relative;
    perspective: 1200px;
    transition: opacity 0.4s ease;
  }

  @media (min-width: 640px) {
    .bet-card {
      /* min-height: 225px; */
    }
  }

  .card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    transition: transform 0.5s;
    transform-style: preserve-3d;
  }

  .bet-card.is-flipped .card-flip-inner {
    transform: rotateY(180deg);
  }

  .card-face {
    position: relative;
    grid-area: 1 / 1;
    width: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-front {
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 40px 1rem 1rem;
    box-shadow: 0 0 20px 0 rgba(107, 107, 107, 0.2);
    transition: box-shadow 0.3s;
    background-image: linear-gradient( to bottom, var(--color-ada) 24px, transparent 24px);
  }

  .card-front:hover {
    box-shadow: 0 0 20px 0 rgba(107, 107, 107, 0.4);
  }

  .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  @media (min-width: 640px) {
    .card-header {
      flex-direction: column;
      gap: 0;
    }
  }

  .card-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.5rem;
  }

  @media (min-width: 640px) {
    .card-icon {
      /* width: 2.25rem; */
      /* height: 2.25rem; */
      /* margin-bottom: 0.5rem; */
    }
  }

  .card-title {
    font-weight: 700;
    color: var(--color-ada);
    font-size: 17px;
    text-align: left;
    flex: 1;
    line-height: 1.25;
  }

  @media (min-width: 640px) {
    .card-title {
      text-align: center;
    }
  }

  .card-label {
    font-size: 10px;
    font-weight: 700;
    color: #4B4F54;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.5rem;
    width: 100%;
    text-align: left;
  }

  .card-front-text {
    font-size: 10px;
    line-height: 1.4;
    margin-top: 2px;
    flex: 1;
    color: #4b4f54;
    width: 100%;
    text-align: left;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  @media (min-width: 640px) {
    .card-label,
    .card-front-text {
      text-align: center;
    }

    .card-front-text {
      font-size: 0.75rem;
    }
  }

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.75rem;
  }

  .card-info {
    width: 18px;
    height: 18px;
  }

  .flip-btn {
    font-size: 10px;
    font-weight: 700;
    color: #00afd7;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: color 0.15s;
    min-width: 40px;
    text-align: right;
  }

  .flip-btn:hover {
    color: #007aab;
  }

  .card-back {
    transform: rotateY(180deg);
    background: var(--color-ada);
    color: #fff;
    justify-content: center;
    padding: 0.5rem 0.5rem 2rem;
  }

  @media (min-width: 640px) {
    .card-back {
      padding: 1rem 1rem 2rem;
    }
  }

  .insight-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
  }

  .insight-text {
    font-size: 13px;
    height: 3.5rem;
    line-height: 1.375;
    display: flex;
    align-items: flex-start;
    padding-bottom: 1rem;
  }

  @media (min-width: 640px) {
    .insight-label {
      font-size: 10px;
    }

    .insight-text {
      font-size: 15px;
      height: auto;
    }
  }

  .flip-close-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    position: absolute;
    bottom: 15px;
  }

  .flip-close-btn:hover {
    opacity: 0.75;
  }

  /* Placed card (rank slot summary) */

  .placed-checkmark {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    border-radius: 9999px;
    background: #7ac74f;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icon-sm {
    width: 12px;
    height: 12px;
  }

  .placed-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0.5rem;
  }

  .placed-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
  }

  .placed-text {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.375;
  }

  @media (min-width: 640px) {
    .placed-title {
      font-size: 17px;
    }

    .placed-text {
      font-size: 0.75rem;
    }
  }

  .placed-face {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* background: #1b4873; */
    color: #f5f5f7;
    padding: 1rem;
  }

  .placed-face.is-visible {
    opacity: 1;
    transform: scale(1);
  }

  /* Info tooltip */

  .card-info-wrap {
    position: relative;
    display: inline-flex;
    cursor: help;
  }

  .card-tooltip {
    position: absolute;
    bottom: 130%;
    left: 0;
    width: 160px;
    background: #1b4873;
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 200;
  }

  .card-info-wrap:hover .card-tooltip,
  .card-info-wrap:focus .card-tooltip,
  .card-info-wrap:focus-within .card-tooltip {
    opacity: 1;
  }

  /* Rank drop slots */

  .drop-slot {
    width: 100%;
    min-height: 150px;
    position: relative;
    border: 1px dashed color-mix(in srgb, var(--bg-ada) 75%, #000);
    border-radius: 1rem;
    box-shadow: 0 0 20px 0 rgba(107, 107, 107, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    background-color: var(--bg-ada, var(--bg));
    color: #fff;
  }

  @media (min-width: 640px) {
    .drop-slot {
      min-height: 200px;
    }
  }

  .drop-slot.slot-filled {
    border-style: solid;
    align-items: stretch;
    justify-content: stretch;
    background-color: var(--bg-ada);
  }

  .drop-slot.slot-hover-valid {
    outline: 3px solid #1b4873;
  }

  .drop-slot.slot-hover-invalid {
    outline: 3px solid #c0392b;
  }

  .risk-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    color: #00afd7;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  @media (min-width: 640px) {
    .risk-legend {
      margin-top: 0.75rem;
    }
  }

  .risk-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .risk-arrow {
    height: 12px;
  }

  .risk-arrow-left {
    transform: rotate(180deg);
  }

  /* Status + reset */

  .status {
    color: #1b4873;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .reset-btn {
    padding: 0.5rem 1rem;
    background: #1b4873;
    color: #fff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .reset-btn:hover {
    background: #274770;
  }

  /* Interaction states shared with the drag/flip/keyboard behavior in game.js */

  .bet-card.is-placed {
    cursor: default;
  }

  .bet-card.card-placed {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
  }

  .bet-card.ui-draggable-dragging {
    z-index: 50;
  }

  .bet-card:focus-visible,
  .drop-slot:focus-visible,
  .flip-btn:focus-visible,
  .flip-close-btn:focus-visible,
  .card-info-wrap:focus-visible,
  .reset-btn:focus-visible {
    outline: 3px solid #00afd7;
    outline-offset: 3px;
  }

  .bet-card.is-kb-selected .card-front {
    outline: 3px solid #1b4873;
    outline-offset: -3px;
  }

  .mod-callout {
    margin: 0 0 50px;
    .wrap {
      max-width: 790px;
    }
    .style4 {
      color: #fff;
       text-wrap: balance;
       margin-top: 0.5em;
       margin-bottom: 0.75em;
    }
    .style6 {
      font-size: 1.2em;
      text-transform: uppercase;
      color: #4DADD3;
      margin-bottom: 26px;
    }
    .btn {
      margin-top: 20px;
    }
  }
  ::backdrop {
    background: #fff;
    opacity: 0.9;
  }
}

#success-message {
  img {
    width: 164px;
    height: 164px;
  }
  h3 {
    span {
      display: block;
      text-wrap: balance;
    }
  }
}

#final-step-dialog {
  border: none;
  border-radius: 20px;
  max-width: 845px;
  padding: 0;
  box-shadow: 0 0 50px 0 rgba(0,0,0,0.25);
  .gform_heading {
    padding: 45px 45px min(15vw, 120px);
    background-image: url('data:image/svg+xml,<svg width="845" height="164" viewBox="0 0 845 164" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M845 164C837.752 157.992 830.426 152.071 823.049 146.214C806.8 133.722 788.81 123.164 769.717 114.594C680.007 75.269 570.582 74.8913 473.053 82.7644C425.909 86.733 379.171 93.7576 332.592 101.317C280.557 109.521 228.277 118.591 175.304 119.114C127.82 119.538 77.6143 109.968 41.4494 80.5211C14.103 58.1471 0.995228 29.6834 0.0549788 0H0V164H845Z" fill="white"/></svg>'), linear-gradient(159deg, #01ACD8 -13.85%, #1B4873 117.64%);
    background-size: 100% auto, auto;
    background-repeat: no-repeat;
    background-position: bottom;
  }
  .gform_title {
    font-family: "Butler", Georgia, Times, serif;
    color: #fff;
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 0.25em;
  }
  .gform_description {
    font-size: 22px;
    line-height: 1.4;
    color: #fff;
    max-width: 650px;
  }
  form {
    padding: 0 45px 35px;
    margin-top: -1px;
    background: white;;
  }
  .gfield--type-consent {
    legend {
      display: none;
    }
    .ginput_container {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }
    input[type=checkbox] {
      accent-color: #1b4873;
      margin: 2px 0 0;
    }
    label {
      font-size: 14px;
      line-height: 18px;
    }
  }
  .gform_wrapper .gform_heading {
    display: none;
  }
  .gfield--type-submit {
    grid-area: 5 / 7 / 5 / 5 !important;
    text-align: right;
    @media (max-width: 540px) {
      grid-area: auto !important;
      text-align: left;
    }
  }
  .gfield--type-html {
    /* display: flex; */
    /* align-items: center; */
    /* gap: 0.5ch; */
    a {
      color: #1b4873;
      text-decoration: underline;
      font-weight: 600;
      &:hover {
        color: #00afd7
      }
    }
  }
  .gform_validation_errors h2 {
    font-size: 1.3rem;
    text-wrap: balance;
  }
  .gform_confirmation_wrapper {
    padding-bottom: 40px;
  }
  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    &:hover {
      color: #00afd7;
    }
  }
  @media (max-width: 640px) {
    .gform_heading {
      padding: 30px 30px 15vw;
    }
    form {
      padding: 0 20px 30px;
    }
    .gform_title {
      font-size: 44px;
    }
    .gform_description {
      font-size: 16px;
    }
  }
}

#final-step-dialog .after-submit {
  display: none;
}
#final-step-dialog:has(.gform_confirmation_message) {
  .before-submit {
    display: none;
  }
  .after-submit {
    display: block;
  }
}