/**
 * CTA Block styles
 */

/* Common CTA Block styles
--------------------------------------------- */

.cta {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  background-color: #e8f5e9;
  border-top: 12px solid #499955;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 8px 8px -6px rgba(0, 0, 0, 0.2);
}

.cta .cta-text {
  text-align: center;
}

.cta .cta-text h1 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 300;
  color: #205528;
}

.cta .cta-text h1 .subheading {
  display: block;
  margin-top: 0.35rem;
  font-size: 24px;
  font-weight: 700;
  color: #15391a;
}

.cta .cta-form {
  width: 100%;
  margin-top: 1.75rem;
}

.cta .cta-insurance-type,
.cta .cta-state,
.cta .cta-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 3px;
  font-size: 16px;
  font-weight: normal;
  line-height: 20px;
  color: #666;
}

.cta .cta-insurance-type,
.cta .cta-state {
  display: block;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
  line-height: 22px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-position: right 0.65rem top 50%;
  background-repeat: no-repeat;
  background-size: 15px auto;
  border: 1px solid #ccc;
}

.cta .cta-submit,
.cta .cta-submit:disabled {
  font-size: 16px;
  background-color: #358e42;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.cta .cta-submit:hover {
  background-color: #4aa958;
}

/* Tablet and up */

@media (min-width: 768px) {
  .cta {
    margin-left: 0;
    margin-right: 0;
    padding: 2.25rem 2rem 2.25rem 2rem;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 5px;
  }

  .cta .cta-text h1 {
    font-size: 22px;
  }

  .cta .cta-text h1.bold {
    font-size: 26px;
  }

  .cta .cta-text h1 .subheading {
    font-size: 26px;
  }

  .cta .cta-form {
    display: grid;
    grid-template-columns: auto 30% 21%;
    column-gap: 1rem;
  }

  .cta .cta-insurance-type,
  .cta .cta-state {
    margin-bottom: 0;
  }

  .cta .cta-submit {
    width: auto;
  }
}

/* Narrow desktop */

@media (min-width: 1023px) and (max-width: 1139px) {
  .cta .cta-form {
    grid-template-columns: auto 30% 24%;
  }
}

/* No Selectors CTA styles
--------------------------------------------- */

.cta-no-selectors {
  padding-bottom: 2.5rem;
}

.cta-no-selectors .cta-form {
  display: block;
}

.cta-no-selectors .cta-insurance-type {
  display: none;
}

.cta-no-selectors .cta-submit {
  margin: 0 auto;
}

/* Admin block editor styles
--------------------------------------------- */

.acf-block-component .cta-block-component-title .acf-label label {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 400;
  color: #1e1e1e;
}

.acf-block-component .cta-block-component-title .acf-label label:before {
  display: inline-block;
  width: 24px;
  height: auto;
  margin-right: 15px;
  vertical-align: -4px;
  font-family: "dashicons";
  content: "\f484";
}

.acf-block-preview .cta-text h1 {
  margin-top: 0;
  font-size: 24px !important;
}

.acf-block-preview .cta-insurance-type:disabled,
.acf-block-preview .cta-state:disabled {
  border: 1px solid #cccccc !important;
  color: #666 !important;
  opacity: 1 !important;
}

.acf-block-preview .cta-submit:disabled {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #fff !important;
  background: #368e42 !important;
}
