/**
 * DDK CTA block styles.
 *
 * Colors.
 */
:root {
  --black: #000000;
  --blue: #003f69;
  --green: #a8d06d;
  --sky: #8bcdff;
  --teal: #045781;
  --white: #ffffff;
}

/**
 * Common.
 */
body.ddk-leader-top {
  padding-top: 110px;
}
body.ddk-leader-bottom {
  padding-bottom: 110px;
}
.ddk-block-cta {
  background-color: var(--white);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2rem;
}
.ddk-block-cta a.ddk-button {
  background-color: var(--teal);
  border-radius: 0.75rem;
  color: var(--white);
  display: block;
  padding: 1.5rem 2rem;
}
.ddk-block-cta a.ddk-button:hover {
  background-color: var(--blue);
  color: var(--white);
}
.ddk-block-cta .ddk-x {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  height: 14px;
  margin-top: -8px;
  width: 14px;
}
.ddk-block-cta h2 {
  color: #1d5668;
  font-size: 30px;
}
.ddk-block-cta h3 {
  color: var(--black);
  font-size: 16px;
  margin: 1rem auto 2rem 0;
  padding-bottom: 1rem;
}
.ddk-block-cta .clear-both {
  clear: both;
}

/**
 * Box & leader.
 */
.ddk-block-cta-box,
.ddk-block-cta-leader {
  display: none;
}
.ddk-block-cta-box.ddk-blue,
.ddk-block-cta-leader.ddk-blue {
  background-color: var(--sky);
}
.ddk-block-cta-box.ddk-green,
.ddk-block-cta-leader.ddk-green {
  background-color: var(--green);
}
.ddk-block-cta-box.ddk-white,
.ddk-block-cta-leader.ddk-white {
  background-color: var(--white);
}

/**
 * Box.
 */
.ddk-block-cta-box {
  /* max-width: 360px; Testing */
}
.ddk-block-cta-box a.ddk-button {
  margin: 1rem auto;
  max-width: 50%;
  text-align: center;
}
.ddk-block-cta-box h2 {
  font-size: 24px;
  margin: 0;
  text-align: center;
}
.ddk-block-cta-box.ddk-left {
  left: 0;
  position: fixed;
  top: 50%;
  width: 360px;
  z-index: 100;
}
.ddk-block-cta-box.ddk-right {
  right: 0;
  position: fixed;
  top: 50%;
  width: 360px;
  z-index: 100;
}
.ddk-block-cta-box.ddk-left .ddk-x,
.ddk-block-cta-box.ddk-right .ddk-x {
  margin-top: 0;
  right: 8px;
}
.ddk-block-cta-box.ddk-below-fold {
  top: 101%;
}

/**
 * Leader.
 */
.ddk-block-cta-content {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
}
.ddk-block-cta-leader h2 {
  margin: 0;
  width: 100%;
}
.ddk-block-cta-leader.ddk-bottom,
.ddk-block-cta-leader.ddk-top {
  position: fixed;
  width: 100%;
  z-index: 100;
}
.ddk-block-cta-leader.ddk-bottom {
  bottom: 0;
}
.ddk-block-cta-leader.ddk-top {
  top: 0;
}
@media (min-width: 351px) {
  .ddk-block-cta-leader a.ddk-button {
    margin: 0.5rem auto 0 auto;
  }
}
@media (min-width: 641px) {
}
@media (min-width: 821px) {
  .ddk-block-cta-leader h2 {
    float: left;
    /* max-width: 65%; */
  }
  .ddk-block-cta-leader a.ddk-button {
    margin-right: auto;
    margin-top: -2rem;
  }
}
@media (min-width: 1025px) {
  .ddk-block-cta-leader h2 {
    /* max-width: 70%; */
  }
}
@media (min-width: 1201px) {
  .ddk-block-cta-content {
    display: flex;
    align-items: center;
    flex-direction: row;
    position: relative;
  }
  .ddk-block-cta-leader h2 {
    /* max-width: 75%; */
    flex-basis: 60%;
  }
}
@media (min-width: 1401px) {
  .ddk-block-cta-leader h2 {
    /* max-width: 80%; */
  }
}

/**
 * Promo.
 */
.ddk-block-cta-promo {
  /* max-width: 885px; Testing */
  padding: 8%;
}
.ddk-block-cta-promo a.ddk-button {
  display: inline-block;
}
.ddk-block-cta-promo .callout {
  padding: 5rem;
  width: 60%;
}
.ddk-block-cta-promo.ddk-blue .callout {
  background-color: var(--sky);
}
.ddk-block-cta-promo.ddk-green .callout {
  background-color: var(--green);
}
.ddk-block-cta-promo.ddk-white .callout {
  background-color: var(--white);
}
.ddk-block-cta-promo.ddk-left .callout {
  float: left;
}
.ddk-block-cta-promo.ddk-right .callout {
  float: right;
}
