/* Form popup */

body {
  position: relative;
}

.form-popup-wrap {
  overflow: hidden;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0,0,0,0);
  transition: all 0.5s;
}

.popup-close {
  position: fixed;
  top: 0;
  right: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0;
  height: 40px;
  background: #000;
  cursor: pointer;
  transition: right 0.5s;
}

.popup-close svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.form-popup {
  overflow-y: auto;
  position: fixed;
  top: 0;
  bottom: 0;
  right: -450px;
  width: 0;
  background: #000;
  transition: right 0.5s;
}

.popup-close:hover svg {
  fill: #c9952b;
}

.form-popup-wrap.opened {
  visibility: visible;
  background: rgba(0,0,0,0.5);
}

.form-popup-wrap.opened .form-popup {
  width: 340px;
  right: -20px;
}

.form-popup-wrap.opened .popup-close {
  right: 20px;
  width: 40px;
  z-index: 10;
}

.form-popup-inner {
  width: 320px;
  padding: 50px 20px;
}

.form-popup-inner h3 {
  font-size: 24px;
  color: #c9952b;
  margin: 0 0 26px;
  letter-spacing: 0px;
}

.form-popup-inner a {
  color: #c9952b;
}

.form-popup-inner a:hover {
  color: #fff;
}

.form-popup-inner form .custom-radio-group .group-title {
  margin: 0 0 15px;
  color: #fff;
  font-size: 18px;
}

/* Custom Radio button */
.custom-radio-btn {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #fff;
}

.custom-radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-radio-btn .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

.custom-radio-btn:hover input ~ .checkmark {
  background-color: #ccc;
}

.custom-radio-btn input:checked ~ .checkmark {
  background-color: #c9952b;
}

.custom-radio-btn:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-radio-btn input:checked ~ .checkmark:after {
  display: block;
}

.custom-radio-btn .checkmark:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
}

/* Custom Radio Square button */
.custom-radio-sq-group {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.custom-radio-sq-group .group-title {
  width: 100%;
  padding: 0 10px;
  margin: 0 0 10px;
  color: #fff;
}

.custom-radio-sq-btn {
  position: relative;
  width: 50%;
  padding: 0 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.custom-radio-sq-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  cursor: pointer;
}

.custom-radio-sq-btn .checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 10px;
  color: #fff;
  font-size: 16px;
  border: 1px solid #fff;
  border-radius: 2px;
  background-color: #000;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-radio-sq-btn:hover .checkmark {
  border-color: #c9952b;
}

.custom-radio-sq-btn input:checked ~ .checkmark {
  background-color: #c9952b;
  border-color: #c9952b;
}

/* Form fields */
.form-popup-inner form .input-label {
  padding: 0 0 6px;
  font-size: 16px;
  color: #fff;
}

.form-popup-inner form .input-label.with-tooltip {
  display: flex;
  justify-content: space-between;
}

.form-popup-inner form .input-label .form-tooltip {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 16px;
  width: 16px;
  height: 16px;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 16px;
  background: #fff;
  color: #000;
  border-radius: 50px;
  border: none;
}

.form-popup-inner form input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  margin: 0 0 20px;
  padding: 8px 10px;
  font-size: 15px;
}

.form-popup-inner form textarea {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 15px;
}

.form-popup-inner form input.hidden {
  display: none;
}

.form-popup-inner form  .custom-select {
  width: 100%;
  margin: 0 0 20px;
}

.form-popup-inner form  .custom-select .select-selected {
  padding: 14px 16px;
}

.form-popup-inner form  .custom-select .select-selected:after {
  right: 10px;
  top: 23px;
}

.form-popup-inner form  .custom-select .select-selected.select-arrow-active:after {
  top: 16px;
}

.form-popup-inner form .select-items div,
.form-popup-inner form .select-selected {
  color: #111;
}

.form-popup-inner .agreement-checkbox:after {
  content: "*";
  color: #fff;
}

.form-popup-inner form button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background: #c9952b;
  border: 2px solid #c9952b;
  font-size: 20px;
  color: #fff;
  text-transform: capitalize;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.form-popup-inner form button:hover {
  background: #000;
  color: #c9952b;
}

.form-popup-inner .bottom-note {
  padding: 20px 0 0;
  color: #fff;
}

@media only screen and (min-width:430px) {
  .form-popup-wrap.opened .popup-close {
    top: 16px;
    right: 15px;
    width: 40px;
  }
}

/* Custom checkbox */
.form-popup-inner form .custom-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin: 25px 0;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #fff;
}

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

/* Create a custom checkbox */
.form-popup-inner form .custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.form-popup-inner form .custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.form-popup-inner form .custom-checkbox input:checked ~ .checkmark {
  background-color: #c9952b;
}

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

/* Show the checkmark when checked */
.form-popup-inner form .custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.form-popup-inner form .custom-checkbox .checkmark:after {
  content: "";
  display: none;
  position: absolute;
  left: 8px;
  top: 4px;
  width: 9px;
  height: 14px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}