/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.cmm-mp--form .invalid-feedback {
  width: 100%;
  margin-top: 0;
  font-size: 13px;
  color: #ffffff;
  background-color: #ff2b2b;
  padding: 5px;
  font-weight: normal;
  display: none;
  text-align: left;
}

.cmm-mp--form {
  background-color: transparent;
  padding: 0;
  position: relative;
}

.send-letter__description {
  margin-bottom: 1.25rem;
}

.send-letter__description_titles {
  margin-bottom: 10px;
}

.cmm-mp-title {
  font-size: 32px !important;
  font-weight: bold;
  margin-bottom: 15px;
}

.cmm-mp--form form .row [class*="col-"] {
  margin-bottom: 10px;
}

.cmm-mp--form form .row input,
.cmm-mp--form form .row textarea {
  font-size: 16px;
  background: #ffffff;
  padding: .5rem .75rem;
  border: 1px solid #ffffff;
  border-radius: 7px;
  color: #000000;
}

.send-letter__agreement_input {
  padding: 10px !important;
}

.cmm-mp--form form .row input:focus,
.cmm-mp--form form .row textarea:focus {
  border: 1px solid #FCDB3D;
}

.send-letter__to-premier {
  width: 100%;
  max-height: 270px;
  overflow: auto;
  background: #ffffff;
  padding: 1.75rem;
  margin: 1.25rem 0 1rem;
  border: 1px solid #ffffff;
  border-radius: 7px;
  color: #000000;
}

.send-letter__to-premier p {
  font-size: 16px;
}

.cmm-mp--form form .row [class*="col-"].submit-wrap {
  margin: 15px 0;
}

.cmm-mp--form .cmm-mp-footer .footer-copy {
  text-align: center;
}

.cmm-mp--form.cmm-mp-form-error .cmm-mp-form-error-wrap p {
  text-align: center;
  margin-bottom: 0;
}

.cmm-mp--form .btn {
  width: 100%;
  background: #FCDB3D;
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none !important;
  width: fit-content;
  min-width: 180px;
  padding: 13px 25px !important;
  margin: 0;
  font-size: 15px;
  border-radius: 7px;
  transition: ease-in .4s;
  -webkit-transition: ease-in .4s;
  -moz-transition: ease-in .4s;
  -ms-transition: ease-in .4s;
  -o-transition: ease-in .4s;
}

.cmm-mp--form .btn:hover {
  background: #36BFB9 !important;
  color: #000000 !important;
  border: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(54, 191, 185, .25);
}

.cmm-mp--form .btn:hover,
.cmm-mp--form a:hover {
  text-decoration: none;
}

.cmm-mp--form .secondary-btn {
  color: #FCDB3D;
  background: #000000;
  border: 2px solid #000000;
}

.cmm-mp--form .secondary-btn:hover {
  color: #000000;
  background: transparent;
  border: 2px solid #000000;
}

.cmm-mp--form .pointer-none {
  pointer-events: none;
}

.cmm-mp-return-message {
  text-align: center;
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.cmm-mp-return-message:empty {
  padding: 0;
  margin: 0;
}

.cmm-mp-return-message.success {
  font-size: .9rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  background: #1d9500;
  color: #ffffff;
  margin-top: 10px;
}

.cmm-mp-return-message.error {
  font-size: .9rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  background: #bb0000;
  color: #ffffff;
  margin-top: 10px;
}

.mp-name-wrap,
.mp-email-wrap {
  display: none;
}

.cmm-mp--form a.disabled {
  pointer-events: none;
  opacity: 0.5;
  color: #ffffff;
}

.loading-container {
  position: relative;
}

.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 13px;
  right: 10px;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}

@keyframes l20-1{
  0% {
    -webkit-clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%)
  }

  12.5% {
    -webkit-clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%)
  }

  25% {
    -webkit-clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%)
  }

  50% {
    -webkit-clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%)
  }

  62.5% {
    -webkit-clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%)
  }

  75% {
    -webkit-clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%)
  }

  100% {
    -webkit-clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%)
  }
}

@keyframes l20-2{ 
  0% {
    transform: scaleY(1) rotate(0deg)
  }

  49.99% {
    transform: scaleY(1) rotate(135deg)
  }

  50% {
    transform: scaleY(-1) rotate(0deg)
  }

  100% {
    transform: scaleY(-1) rotate(-135deg)
  }
}

.letter-loader-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  top: 0;
  left: 0;
  z-index: 9;
}

.letter-loader {
  width: 60px;
  aspect-ratio: 1;
  display: flex;
  color: #36BFB9;
  border: 4px solid;
  box-sizing: border-box;
  border-radius: 50%;
  background: radial-gradient(circle 5px, currentColor 95%, rgba(0, 0, 0, 0)), linear-gradient(currentColor 50%, rgba(0, 0, 0, 0) 0) 50%/4px 60% no-repeat;
  animation: dloader 2s infinite linear;
}

.letter-loader:before {
  content: "";
  flex: 1;
  background:linear-gradient(currentColor 50%, rgba(0, 0, 0, 0) 0) 50%/4px 80% no-repeat;
  animation: inherit;
}

@keyframes dloader {
  100% {
    transform: rotate(1turn)
  }
}

.letter-loader-wrapper p {
  color: #36BFB9;
}

.mp-letter {
  word-break: break-word;
}

.send-letter__letter-subject {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 15px !important;
}

.mp-letter:focus {
  outline: unset;
}

.header-copy {
  margin-top: 30px;
}

.send-letter__agreement_input {
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border: 1px solid #000000;
  margin: 0;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  border-radius: 5px;
  background: #ffffff;
}

.send-letter__agreement_input:checked::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #36BFB9;
  /* transform: scale(0); */
  transition: transform 120ms ease;
  border-radius: 3px;
  transform: scale(1);
}

.send-letter__agreement_input:checked {
  border: 1px solid #36BFB9;
  background-color: transparent;
}

.send-letter__consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  margin-bottom: 10px;
}

.send-letter__consent-text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

@media only screen and (max-width: 575px) {
  .send-letter__to-premier {
    padding: 1.25rem;
  }

  .send-letter__consent-text {
    font-size: 15px;
  }
}