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

#global-contact-form { 
    position: fixed;
    top: 0px; right: 0px; bottom: 0px; left: 0px;
    background-color: rgba(0,0,0,0.67);
    z-index: 9999;
    display: none;
}

#contact {
    margin: 1.75rem auto;
    max-width: 500px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    border-radius: 6px;
}

#global-contact-form .title {
    margin-bottom: 0;
    line-height: 1.5;
    font-family: 'Montserrat', san-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #343a40;
	font-size: 20px;
}

#global-contact-form .description {
    margin-bottom: 0;
    line-height: 1.5;
    font-family: 'Montserrat', san-serif;
    font-weight: 500;
    color: #343a40;
	font-size: 13px;
  padding-bottom: 20px;
}

#global-contact-form .form-row {
    display: flex;
    flex-direction: row;
    margin-right: -5px;
    margin-left: -5px;
}

#global-contact-form .form-row > div {
    width: 50%; max-width: 50%; min-width: 50%;
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 1rem !important;
}

#global-contact-form .valid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #28a745;
}

#global-contact-form .body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 16px;
}

#global-contact-form .header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
}

#global-contact-form .btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}
#global-contact-form .btn-orange {
    color: #fff;
    background-color: rgba(204, 91, 48, 1);
    border-color: rgba(204, 91, 48, 1);
}

#global-contact-form .btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#global-contact-form button, select {
    text-transform: none;
}
#global-contact-form button, input {
    overflow: visible;
}
#global-contact-form button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

#global-contact-form h5:after {
    content: "";
    display: none;
    margin-top: 0px;
}

#global-contact-form .close:not(:disabled):not(.disabled) {
    cursor: pointer;
}
#global-contact-form .close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

#global-contact-form label {
	display: inline-block;
	margin-bottom: 3px;
	text-transform: uppercase;
	font-size: 10px;
	color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

#global-contact-form .invalid-feedback {
	display: none;
	width: 100%;
	margin-top: .25rem;
	font-size: 70%;
	color: #dc3545;
}

#global-contact-form .submit-success {
    display: none;
    color: green;
    line-height: 1;
    margin-bottom: .2rem;
}

#global-contact-form .submit-failure {
    display: none;
    color: red;
    line-height: 1;
    margin-bottom: .2rem;
}

#global-contact-form .submit-msg {
	display: inline-block;
	margin-bottom: 3px;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.6);
}

#global-contact-form .was-validated .form-control:valid {
    border-color: #28a745;
}

#global-contact-form .was-validated .form-control:invalid {
    border-color: red;
}

#global-contact-form .modal-header:before {
  display: none !important;
}
#global-contact-form .modal-header:after {
  display: none !important;
}


   .referral {
      background-color: rgb(245,245,245);
      font-size: 14px !important;
      font-weight: normal;
      color: rgb(12,12,12);
      text-transform: unset;
      margin: 16px -4px;
      box-sizing: border-box;
      padding: 8px;
   }
   .referral div {
      font-size: 14px !important;
      font-weight: normal;
      color: rgb(12,12,12);
      text-transform: unset;
   }
   .referral .grid {
      display: flex;
      flex-wrap: wrap;
   }
   .referral .grid .item {
      display: flex;
      flex-direction: row;
      color: black;
      align-items: center;
      justify-content: flex-start;
      width: 50%;
      margin: 2px 0px;
      
   }
   .referral .grid .item .label {
      font-size: 14px !important;
      font-weight: normal;
      text-decoration-style: dashed;
      user-select: none;
          padding: .2em .6em .3em;
   }
   .referral .grid .item label {
      font-size: 14px !important;
      font-weight: normal;
      text-decoration-style: dashed;
   }

   #global-contact-form label {
      font-size: 14px !important;
      font-weight: normal;
      color: rgb(12,12,12);
      text-transform: unset;
      cursor: pointer;      
   }

   input[type="email"], input[type="text"], input[type="tel"], textarea {
display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: auto;
   }


   input[type=checkbox], input[type=radio] {
      margin: 0px;
   }

   .form-group {
    margin-bottom: 15px;
}