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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
}

.w-100 {
  width: 100%;
}

p#entry {
  font-size: 18px;
  margin: 2rem 0;
  padding: 0 1rem;
  line-height: 1.2;
}

header#header {
  background-image: url(../img/narconon-tree-top-bg-w-gradient.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-style: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
  border-radius: 0px;
  width: 100%;
  height: 241px;
  display: flex;
  justify-content: center;
  align-items: center;
}

header img {
  display: block;
  margin: 0 auto;
}

header .border {
  border-top: 1px solid #ffffff;
  margin: .5rem;
}

header h1 {
  color: rgb(255, 255, 255);
  font-family: Oswald;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  line-height: 1;
  margin: 0;
  padding: 1rem 0 0 0;
}

input, select, textarea {
  font-family: "Inter", sans-serif;
  border-radius: 4px;
  border: 1px solid #b8bdc9;  
  color: #2c3345;
  font-size: 1rem;
  min-height: 2.5rem;
  padding-left: 1rem;
}

input[type="radio"] {
  width: 3rem;
}

input[type="checkbox"] {
  height: 1.3rem;
  width: 1.3rem;
  min-height: unset;
}

textarea {
  padding-top: 1rem;
}

input::placeholder, select::placeholder, textarea::placeholder {
  font-family: "Inter", sans-serif;
}

input:hover, select:hover, textarea:hover {
  border-width: 1px;
  border-color: rgba(46, 105, 255, .5);
  box-shadow: 0 0 0 2px rgba(46, 105, 255, .25);
  outline: 0;
  outline-offset: 0;
}

input:focus, select:focus {
  border-width: 1px;
  border-color: #2e69ff;
  box-shadow: 0 0 0 3px rgba(46, 105, 255, .25);
  outline: 0;
  outline-offset: 0;
}

select {
  appearance: none;
  padding: 0 1.875em 0 .625em;
  background-image: url(../svg/option-arrow.svg);
  background-position: right 10px bottom 50%;
  background-size: .625em;
  background-repeat: no-repeat;
}

section#body {
  color: #555555;
  margin: 0 auto 72px auto;
  max-width: 740px;
}

form#main {
  border-radius: 3px;
  box-shadow: 0px 1px 4px 0px rgb(87 100 126 / 21%);
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 17px;
  padding-top: 1.5rem;
}

form ul {
  margin: 0;
  padding: 0 .5rem;
  list-style: none;
}

form ul li {
  border-radius: 3px;
  padding: 12px 10px;
  margin: 5px;
  transition: background-color .15s;
}

form ul li:focus-within {
  background-color: #f1f5ff;
}

form label {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  flex-grow: 1;
  max-width: 100%;
  width: 100%;
}

form label.form-label-top {
  color: #555;
  display: block;
  font-weight: 600;
  margin-left: 2px;
  margin-bottom: 14px;
}

form .sub-label {
  color: #57647e;
  font-size: .75rem;
  margin-top: 11px;
  min-height: 13px;
}

.form-required {
  color: #dc2626;
}

.button-wrapper {
  display: flex;
  justify-content: center;
}

button.submit-button {
  background: linear-gradient(#9cb82e, #c6cc24) !important;
  border-radius: 6px;
  color: #fff;
  min-width: 180px;
  font-size: 18px;
  font-weight: bold;
  height: 50px;
  font-family: "Roboto", sans-serif;
  border: 1px solid #5a8200;
  cursor: pointer;
}

.flex {
  display: flex;
}

.flex .column {
  flex-direction: column;
}

.flex.justify-between {
  justify-content: space-between;
}

.flex.align-items-center {
  align-items: center;
}

.flex .grow-1 {
  flex-grow: 1;
}

.gap-5 {
  gap: 2.5rem;
}

.gap-4 {
  gap: 2rem;
}

.gap-3 {
  gap: 1.5rem;
}

.mr-5 {
  margin-right: .5rem;
}

.mr-10 {
  margin-right: 1rem;
}

.ml-5 {
  margin-left: .5rem;
}

.ml-10 {
  margin-left: 1rem;
}

.cta-text {
  color: #7d7d7d;
  font-size: 20px;
  margin: 0 4rem;
  max-width: 740px;
  text-align: center;
}

footer#footer {
  background-image: url(../img/narconon-tree-bg-bottom.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-style: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
  border-radius: 0px;
  width: 100%;
  height: 111px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer#footer div {
  color: #fff;
  max-width: 740px;
  text-align:center;
}

.d-none {
  display: none;
}

.d-none.active {
  display: block;
}

.d-none.hidden {
  display: none;
}

.open.success-message-container, 
.open.failure-message-container {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.success-message-container,
.failure-message-container {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    display: none;
    height: 100%;
    width: 100%;
    z-index: 100;
    opacity: 0;
    visibility: hidden;    
    color: #fff;
    background-color: #ffffffcc;
}

.success-message-background, 
.failure-message-background {
    opacity: 0.5;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
}

.success-message-block, 
.failure-message-block {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 840px;
    z-index: 1000;
    padding: 24px;
    color: #333333;
}

.success-message-container .message, 
.failure-message-container .message {
  background: linear-gradient(#9cb82e, #c6cc24) !important;
  font-family: "Roboto", sans-serif;
  border: 1px solid #5a8200;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: .5rem;
}

.success-message-container .message hr, 
.failure-message-container .message hr {
    margin: 1rem 1rem 1rem 0;
}

.success-message-container .message div, 
.failure-message-container .message div {
    display: flex;
    justify-content: space-between;
}

.success-message-container .message div h3,
.failure-message-container .message div h3 {
    color: #fff !important;
    font-size: 1.4rem;
    margin: 0;
}

.success-message-close, 
.failure-message-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    height: 18px;
    width: 18px;
    padding: 0;
    z-index: 10;
}

#phone {
  width: 100%;
}


#header-content {
  padding: 1rem;
}

#bottom-logo {
  display: flex;
  justify-content: center;
}

#bottom-logo img {
  margin: 4rem 0 1.5rem 0;
  width: 200px;
}
#flexbox-group label {
  font-weight: 400;
  padding-left: 1rem;
  margin: .2rem 0;
}
#flexbox-group span {
  flex-basis: 50%;
}

@media (min-width: 576px) {
  #header-content {
    padding: 0;
  }
  #header-content > img {
    width: 450px;
  }
  header h1 {
    line-height: 36px;
    font-size: 60px;
    padding: 1.5rem 0 0 0;
  }
  p#entry {
    padding: 0 2rem;
    text-align: justify;
    line-height: 1.4;
  }
  form ul {
    padding: 0 38px;
  }
  .flex .sm-column {
    flex-direction: column;
  }
  .flex .sm-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {

}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {

}

@media (min-width: 1400px) {

}