.custom-form-section {
  max-width: var(--max-section-width);
  margin: 0 auto;
}

.custom-form-container {
  width: 100%;
  background-color: #fff;
  min-height: 320px;
  max-width: var(--max-section-width);
  margin: 10px auto 40px auto;
  border-radius: 12px;
  padding: 20px 60px 20px 68px;
  overflow: hidden;
  position: relative;
}

.form h2 {
    margin: 10px 0 10px 0;
    font-size: 24px;
    line-height: 31px;
    color: #000;
    font-weight: 700;   
}

.form h2:before {
    content: '|';
    color: #1DBA42;
    position: relative;
    font-weight: 700;
    margin: 0 12px 0 -20px;
    font-size: 23px;
    top: -1px;
    font-weight: 700;
}


/** text input fields **/
.text-input {
    margin: 20px 0 10px 0;
}

.text-input label {
    margin: 10px 0 10px 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #000;   
}

.text-input input[type=text] {
    border: 1px solid #C7C7D4;
    border-radius: 4px;
    width: 30%;
    padding: 6px;
    font-size: 16px;
    font-family: 'DM Sans', Arial, sans-serif;
}    

.text-input input[type=text]:active {
    border: 1px solid #000;
}

.text-input input[type=text]:focus {
    border: 1px solid #000;
}

.text-input input[type=datetime-local] {
    margin: 10px 0;
    border: 1px solid #C7C7D4;
    border-radius: 4px;
    width: 30%;
    padding: 6px;
    font-size: 16px;
    font-family: 'DM Sans', Arial, sans-serif;
}



/** checkboxes **/

.checkbox-label {
    margin: 10px 0 0 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #000;   
}

/* The container */
.checkbox-container {
  display: block;
  position: relative;
  padding: 0 0 0 30px;
  margin: 20px 0 12px 0;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #C7C7C7;
    border-radius: 4px;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: #CFF584;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    background-color: #0D471C;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #CFF584;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    color: #CFF584;
}

.description-icon {
    color: #0D471C;
}

/** markup **/

.markup {
    margin: 20px 0 30px 0;
}
.markup h2 {
    margin: 10px 0 10px 0;
    font-size: 24px;
    line-height: 31px;
    color: #000;
    font-weight: 700;   
}

.markup h2:before {
    content: '|';
    color: #1DBA42;
    position: relative;
    font-weight: 700;
    margin: 0 12px 0 -20px;
    font-size: 23px;
    top: -1px;
    font-weight: 700;
}

/** select **/

.select {
    margin: 20px 0 30px 0;
}
.select h2 {
    margin: 10px 0 10px 0;
    font-size: 24px;
    line-height: 31px;
    color: #000;
    font-weight: 700;   
}

select {
    border: 1px solid #C7C7D4;
    border-radius: 4px;
    padding: 2px 10px 2px 4px;
    margin: 12px 0 0 0;
}

select:focus-visible {
    outline: 1px solid #000000;
    border: none;
}


/** textarea **/

.textarea {
    margin: 20px 0 20px 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
    width: 80%;
    border: 1px solid #C7C7D4;
    border-radius: 4px;
    padding: 6px;
    font-size: 16px;
    font-family: 'DM Sans', Arial, sans-serif;

}

textarea:focus-visible {
    outline: 1px solid #000000;
    border: none;
}

.textarea label {
    margin: 10px 0 10px 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #000;   
}

/** radio **/

.radio-label {
    margin: 10px 0 10px 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #000;   
}

/* The container */
.radio-container {
  display: block;
  position: relative;
  padding: 0 0 0 30px;
  margin: 20px 0 10px 0;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.radio-dot {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #C7C7C7;
    border-radius: 9px;
}

/* On mouse-over, add a grey background color */
.radio-container:hover input ~ .radio-dot {
    background-color: #CFF584;
}

/* When the checkbox is checked, add a blue background */
.radio-container input:checked ~ .radio-dot {
    background-color: #0D471C;
}

/* Create the checkmark/indicator (hidden when not checked) */
.radio-dot:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.radio-container input:checked ~ .radio-dot:after {
    display: block;
}

/* Style the checkmark/indicator */
.radio-container .radio-dot:after {
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #CFF584;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    color: #CFF584;
}


/** Submit button **/
.submit-btn input[type=submit] {
    background-color: #0D471C;
    border: 1px solid #0D471C;
    color: #CFF584;
    padding: 16px 32px;
    margin: 0;
    border-radius: 36px;
    text-align: center;
    min-width: 100px;
    transition: background-color 0.5s;
}

.submit-btn input[type=submit]:hover {
    background-color: #000;
    border: 1px solid #000;
    padding: 16px 32px;
    margin: 0;
    border-radius: 36px;
    text-align: center;
    min-width: 100px;
    transition: background-color 0.5s;
}

.modal-background {
  background: #000;
  width: 100%;
  height: 0px;
  display: none;
  z-index: 1;
  position: absolute;
  opacity:0;
  transition:opacity 1s linear;
  top: 0;
  left: 0;
}

.modal-background.active {
  display: block;
  opacity:0.6;
  transition:opacity 5s linear;
}

.modal-window.active {
  display:block;
  opacity:1;
  transition:opacity 5s linear;
}


.modal-window {
  width: 100%;
  height: 0px;
  display: none;
  z-index: 2;
  position: absolute;
  opacity:0;
  transition:opacity 0s linear;
}

.modal-content {
    width: 80%;
    max-width: 1050px;
    min-height: 295px;
    background: #fff;
    box-shadow: 0 3px 6px #00000019;
    border-radius: 12px;
    position: absolute;
    margin:0 auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.modal-content h2:before {
    content: '|';
    color: #1DBA42;
    position: relative;
    font-weight: 700;
    margin: 0 12px 0 -20px;
    font-size: 23px;
    top: -1px;
    font-weight: 700;
}

.modal-close-btn {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 30000000000;
    /*
    color: #0D471C;
    display: block;
    font-size: 31px;
    font-weight: 400;
    border: 1px solid #0d471c;
    width: 22px;
    padding: 0px 0px 2px 2px;
    border-radius: 4px;
    position: absolute;
    top: 9px;
    right: 9px;
    */
}

.modal-close-btn:hover {
    cursor: pointer;
}

.cta-container {
    width: 100%;
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
}

@media screen and (max-width: 768px) and (min-height: 481px) {
    .text-input input[type=text] {
        width: 95%;
        max-width: 350px;
    }

    .text-input input[type=datetime-local] {
        width: 95%;
        max-width: 350px;
    }

    textarea {
        width: 100%;
    }

}


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

    .checkboxes {
        column-count: 1 !important;
    }

    .text-input input[type=text] {
        width: 95%;
        padding: 6px;
    }

    .text-input input[type=datetime-local] {
        width: 95%;
    }

    textarea {
        width: 100%;
    }

    .modal-content {
        padding: 60px 60px 60px 56px !important;
    }

    .cta-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .header-cta-2 {
        margin: 30px 0 14px 0;
    }
}
