/* DOCUMENT STYLES */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
}

/* TYPOGRAPHY STYLES */

p, a, span, h1, h2, h3, img, label {
  margin: 0;
  padding: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #ffffff;
  text-align: center;
}

h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 41px;
  color: #9eefe1;
  text-align: center;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: #371447;
  text-align: left;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.18px;
}

p > a {
  font-weight: 600;
  color: #0071c4;
  text-decoration: none;
}

p.disclaimer {
  margin: 0px 0px 40px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #2a2a2a;
  letter-spacing: -0.17px;
}

p.disclaimer > a {
  font-weight: 600;
  color: #0071c4;
  text-decoration: none;
}

p.disclaimer > strong {
  font-weight: 600;
}

p.legal {
  font-size: 16px;
  line-height: 19px;
  color: #2a2a2a;
  letter-spacing: -0.2px;
  flex-direction: column;
}

p.legal > a {
  font-weight: 600;
  color: #0071c4;
  text-decoration: none;
}

/* COMPONENT STYLES */

label {
  display: block;
  padding: 20px 0px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #2a2a2a;
}

input, select {
  display: block;
  background-color: #F9F9F9;
  width: 100%;
  outline: none;
  border: none;
  border-bottom: 1px solid #8391AF;
  padding: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #2a2a2a;
}

input:focus, select:focus {
  border-bottom-color: #0071c4;
  border-bottom-width: 2px;
  margin-bottom: -1px;
  background-color: #F2F2F2;
}

input:hover, select:hover {
  background-color: #F2F2F2;
}

/* CUSTOM SELECT STYLES */

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.customSelect {
  position: relative;
}

.customSelect::after {
  position: absolute;
  content: "";
  right: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  scale: 0.5;
  border-style: solid;
  border-width: 4px 4px 0px 0px;
  transform: rotate(135deg);
  color: #0071C4;
  pointer-events: none;
}

/* CUSTOM CHECKBOX STYLES */

.checkboxSection {
  display: flex;
  flex-direction: row;
  column-gap: 20px;
}

label.checkboxContainer {
  display: block;
  position: relative;
  padding-left: 20px;
  cursor: pointer;
  width: max-content;
  height: max-content;
}

label.checkboxContainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #F9F9F9;
  border: 1px solid #8391AF;
}

label.checkboxContainer:hover input ~ .checkmark {
  background-color: #F2F2F2;
}

label.checkboxContainer input:checked ~ .checkmark {
  background-color: #F9F9F9;
}

label.checkboxContainer input:focus ~ .checkmark {
  box-shadow: 0px 0px 1px 1px rgba(3,123,255,0.50);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  box-sizing: content-box;
}

label.checkboxContainer input:checked ~ .checkmark:after {
  display: block;
}

label.checkboxContainer .checkmark:after {
  left: 7px;
  top: 1.5px;
  transform: rotate(45deg);
  height: 12px;
  width: 4px;
  border-bottom: 4px solid #0071c4;
  border-right: 4px solid #0071c4;
}

.ctaButton {
  display: inline-block;
  width: 100%;
  margin-top: 25px;
  border: 0px;
  border-radius: 4px;
  padding: 10px 24px;
  background-color: #954293;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ctaButton:disabled {
  background-color: #DF9DDE;
  cursor :not-allowed; 
}

/* BRAND STYLES */

.brand {
  height: 94px;
  display: flex;
}

.brand-logo {
  width: 95px;
  height: 54px;
  align-self: center;
}

.banner-confirmation {
  width: 100%;
  height: auto;
}

/* HEADER STYLES */

header {
  background-color: #4B1D60;
}

header > section {
  padding: 71px 0px 66px;
}

/* MAIN SECTION STYLES */

main {
  padding: 71px 0px 58px;
}

/* FOOTER STYLES */

footer {
  background-color: #f2f2f2;
  box-shadow: 0 50vh 0 50vh #f2f2f2;
  padding: 72px 0px 80px;
}

/* LEGAL SECTION STYLES */

.legal-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
}

.legal-links {
  padding-top: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 20px;
  justify-content: center;
}

/* LAYOUT & GRID STYLES */

section {
  margin: auto;
  max-width: 328px;
}

.grid {  
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
}

.col100 {
  grid-column-start: 1;
  grid-column-end: 5;
}

.col50_left {
  grid-column-start: 1;
  grid-column-end: 5;
}

.col50_right {
  grid-column-start: 1;
  grid-column-end: 5;
}

.confirmationContent {
  row-gap: 40px;
}

.conf_body_left {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row: 2;
  display: flex;
  justify-content: center;
}

.conf_body_right {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CUSTOM STYLES */

.body-icon {
  width: 100%;
  max-width: 217px;
  height: auto;
}

/* INTAKE FORM & VALIDATION STYLES */

.hidden {
  display: none;
}

.fieldError {
  border-bottom-color: #FA5050;
}

.fieldError:focus {
  border-bottom-color: #FA5050;
}

.fieldErrorText {
  display: block;
  height: 12px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 12px;
  color: #FA5050;
}

/* SMALL DEVICE STYLES */

@media only screen and (max-width: 349px) {

  section {
    padding: 0px 16px;
  }

}

/* MEDIUM DEVICE STYLES */

@media only screen and (min-width: 600px) {

  .ctaButton {
    width: auto;
  }
  
  h1 {
    font-size: 24px;
    font-weight: 400;
    line-height: 35px;
    color: #ffffff;
    text-align: center;
  }
  
  h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 45px;
    color: #9eefe1;
    text-align: center;
  }

  h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: #371447;
    text-align: left;
  }

  header > section {
    padding: 71px 0px 66px;
  }

  main {
    padding: 71px 0px 58px;
  }
  
  footer {
    padding: 72px 0px 80px;
  }

  .legal-section {
    flex-direction: column;
    row-gap: 20px;
  }

  .legal-links {
    flex-direction: row;
    row-gap: 20px;
    padding: 0;
  }

  section {
    max-width: 552px;
    padding: 0;
  }

  .grid {  
    display: grid;
    grid-template-columns: repeat(8, 48px);
    gap: 0px 24px;
    align-content: center;
  }

  .col100 {
    grid-column-start: 1;
    grid-column-end: 9;
  }

  .col50_left {
    grid-column-start: 1;
    grid-column-end: 5;
  }

  .col50_right {
    grid-column-start: 5;
    grid-column-end: 9;
  }

  .conf_body_left {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row: 1;
  }

  .conf_body_right {
    grid-column-start: 4;
    grid-column-end: 9;
    grid-row: 1;
  }

}

/* LARGE DEVICE STYLES */

@media only screen and (min-width: 1400px) {

  h1 {
    font-size: 24px;
    font-weight: 400;
    line-height: 35px;
    color: #ffffff;
    text-align: center;
  }
  
  h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 50px;
    color: #9eefe1;
    text-align: center;
  }

  h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: #371447;
    text-align: left;
  }

  header > section {
    padding: 71px 0px 66px;
  }

  main {
    padding: 71px 0px 80px;
  }
  
  footer {
    padding: 77px 0px 55px;
  }

  .legal-section {
    flex-direction: row;
    justify-content: space-between;
  }

  section {
    max-width: 1132px;
  }

  .grid {  
    display: grid;
    grid-template-columns: repeat(12, 76px);
    gap: 0px 20px;
    align-content: center;
  }

  .col100 {
    grid-column-start: 3;
    grid-column-end: 11;
  }

  .col50_left {
    grid-column-start: 3;
    grid-column-end: 7;
    padding-bottom: 12px;
  }

  .col50_right {
    grid-column-start: 7;
    grid-column-end: 11;
    padding-bottom: 12px;
  }

  .conf_body_left {
    grid-column-start: 3;
    grid-column-end: 6;
    grid-row: 1;
  }

  .conf_body_right {
    grid-column-start: 6;
    grid-column-end: 11;
    grid-row: 1;
  }

}

/* INTERSTITIAL / MODAL STYLES  */

#modalCanvas {
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: none;
  animation-name: animateModal;
  animation-duration: 0.3s
}

@keyframes animateModal {
  from {opacity:0}
  to {opacity:1}
}

#modalWindow {
  background-color: rgba(255, 255, 255, 1);
  position: relative;
  max-width: 556px;
  height: max-content;
  margin: 120px 0;
  padding: 30px;
}

#modalDismissIcon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#modalDismissIcon:before, #modalDismissIcon:after {
  position: absolute;
  left: 7px;
  top: -3px;
  content: '';
  height: 22px;
  width: 2.25px;
  border-radius: 20px;
  background-color: #954293;
}

#modalDismissIcon:before {
  transform: rotate(45deg);
}

#modalDismissIcon:after {
  transform: rotate(-45deg);
}

h3.modalTitle {
  margin: 0;
  padding-bottom: 15px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: #650360;
  letter-spacing: normal;
}

p.modalSubtitle {
  margin: 0;
  padding-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #2a2a2a;
  letter-spacing: normal;
}

p.modalMessage {
  margin: 0;
  padding-bottom: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #2a2a2a;
  letter-spacing: normal;
}

a.modalButton {
  box-sizing: border-box;
  display: inline-block;
  border: none;
  border-radius: 24px;
  padding: 0px 25px;
  height: 40px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

a.modalButtonContinue {
  background: #954293;
  color: #ffffff;
}

a.modalButtonBack {
  background: #fee6ff;
  color: #954293;
}

.modalControls {
  display: flex;
  flex-direction: row;
  margin: 10px 0;
  column-gap: 40px;
}

@media (max-width: 640px) {
  #modalWindow {
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px 15px 15px 15px;
  }

  a.modalButton {
    height: 45px;
    line-height: 45px;
  }

  .modalControls {
    flex-direction: column;
    row-gap: 20px;
  }

}