/*
Basic input element using psuedo classes
*/

h1 {
    font-size: 15px;
    margin-bottom: 2.5%;
}


h3.section-sub-heading {
    font-size: 20pt;
    padding-bottom: 15px;
}

.row.fields {
    padding: 0 10%;
}

.col-md-12 {
    margin: 10px 0;
}

form {
    box-shadow: 0 0 21px 2px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    text-align: center;
    padding-top: 30px;
}

input, span, label, textarea {
    border: none;
}

textarea:focus, input:focus {
    outline: 0;
}

/* Question */

input.question, textarea.question {
    font-size: 15px;
    font-weight: 300;
    border-radius: 2px;
    margin: 0;
    padding: 0px 0;
    border: none;
    width: 98%;
    background: rgba(0, 0, 0, 0);
    transition: padding-top 0.2s ease, margin-top 0.2s ease;
    overflow-x: hidden;
    /* Hack to make "rows" attribute apply in Firefox. */
}

/* Underline and Placeholder */

input.question+label, textarea.question+label {
    display: block;
    position: relative;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid darkgrey;
    -webkit-transition: width 0.4s ease;
    transition: width 0.4s ease;
    height: 0px;
}

input.question:focus+label, textarea.question:focus+label {
    width: 100%;
}

input.question:focus, input.question:valid {
    padding-top: 0px;
}

textarea.question:valid, textarea.question:focus {
    margin-top: 35px;
}

input.question:focus+label>span, input.question:valid+label>span {
    top: -40px;
    font-size: 13px;
    color: #f1592a;
}

textarea.question:focus+label>span, textarea.question:valid+label>span {
    top: -150px;
    font-size: 15px;
    color: #333;
}

input.question:valid+label, textarea.question:valid+label {
    border-color: #f1592a;
}

input.question:invalid, textarea.question:invalid {
    box-shadow: none;
}

input.question+label>span, textarea.question+label>span {
    font-weight: 300;
    margin: 0;
    position: absolute;
    color: #8F8F8F;
    letter-spacing: .5px;
    font-size: 17px;
    top: -25px;
    left: 0px;
    z-index: -1;
    -webkit-transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

input[type="submit"] {
    -webkit-transition: opacity 0.2s ease, background 0.2s ease;
    transition: opacity 0.2s ease, background 0.2s ease;
    display: block;
    opacity: 0;
    margin: 10px 0 0 0;
    padding: 10px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background: #EEE;
}

input[type="submit"]:active {
    background: #999;
}

input.question:valid~input[type="submit"], textarea.question:valid~input[type="submit"] {
    -webkit-animation: appear 1s forwards;
    animation: appear 1s forwards;
}

input.question:invalid~input[type="submit"], textarea.question:invalid~input[type="submit"] {
    display: none;
}

@-webkit-keyframes appear {
    100% {
        opacity: 1;
    }
}

@keyframes appear {
    100% {
        opacity: 1;
    }
}

.row.features {
    top: 35%;
    display: flex;
    position: relative;
    width: 132%;
    right: 10%;
}

.features-row>ol>li {
    list-style: none;
    margin: 10px 0 0 0px;
}

.row.image-feature {
    width: 80%;
}

.feature-head {
    font-size: 16pt;
    color: #f1592a;
    letter-spacing: 1.2px;
}

i.fa.fa-check {
    color: #f1592a;
    font-size: 15px;
    margin: 0 4px;
    top: 2px;
    position: relative;
}

.row.features-row {
    width: 100%;
    margin: 0 -20px;
    letter-spacing: .5px;
}

.dialog-ovelay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.50);
    z-index: 999999
}

.dialog-ovelay .dialog {
    width: 400px;
    margin: 100px auto 0;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    border-radius: 3px;
    overflow: hidden
}

.dialog-ovelay .dialog header {
    padding: 10px 8px;
    background-color: #f6f7f9;
    border-bottom: 1px solid #e5e5e5
}

.dialog-ovelay .dialog header h3 {
    font-size: 14px;
    margin: 0;
    color: #555;
    display: inline-block
}

.dialog-ovelay .dialog header .fa-close {
    float: right;
    color: #c4c5c7;
    cursor: pointer;
    transition: all .5s ease;
    padding: 0 2px;
    border-radius: 1px
}

.dialog-ovelay .dialog header .fa-close:hover {
    color: #b9b9b9
}

.dialog-ovelay .dialog header .fa-close:active {
    box-shadow: 0 0 5px #673AB7;
    color: #a2a2a2
}

.dialog-ovelay .dialog .dialog-msg {
    padding: 12px 10px
}

.dialog-ovelay .dialog .dialog-msg p {
    margin: 0;
    font-size: 15px;
    color: #333
}

.dialog-ovelay .dialog footer {
    border-top: 1px solid #e5e5e5;
    padding: 8px 10px
}

.dialog-ovelay .dialog footer .controls {
    direction: rtl
}

.dialog-ovelay .dialog footer .controls .button {
    padding: 5px 15px;
    border-radius: 3px
}

.button {
    cursor: pointer
}

.button-default {
    background-color: rgb(248, 248, 248);
    border: 1px solid rgba(204, 204, 204, 0.5);
    color: #5D5D5D;
}

.button-danger {
    background-color: #f44336;
    border: 1px solid #d32f2f;
    color: #f5f5f5
}

.link {
    padding: 5px 10px;
    cursor: pointer
}

.nav-link.btn.btn-primary {
    padding-left: 10px;
    padding-right: 10px;
}

/* The container */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #797979;
  }
  
  /* 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: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border: 1px solid #f1592a;
    border-radius: 4px;
    
  }
  
  /* On mouse-over, add a grey background color */
  .checkbox-container:hover input ~ .checkmark {
    
  }
  
  /* When the checkbox is checked, add a blue background */
  .checkbox-container input:checked ~ .checkmark {
    background-color: transparent;
  }
  
  /* 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;
    color: #f1592a;
  }
  
  /* Style the checkmark/indicator */
  .checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 13px;
    border: solid #f1592a;
    border-width: 0 1px 1px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }