/* Variables */
:root {
  --primary-color: #174f9e;
  --secondary-color: #134767;
  --text-color: #333;
  --text-light: #787878;
  --error-color: crimson;
  --success-color: lightblue;
  --border-color: #ccc;
  --bg-color: #fff;

  --transition-speed: 0.3s;
  --border-radius: 5px;
  --input-padding: 1rem;
}

/* Form Elements - Base Styles */
button.woocommerce-Button.button,
input[type="submit"] {
  font-size: 1em;
  display: block;
  border: none;
  outline: 0;
  cursor: pointer;
  color: var(--bg-color);
  background: var(--primary-color);
  font-weight: bold;
  height: 3em;
  line-height: 3em;
  width: 100%;
  padding: 0 2.5em 0 0.8em;
  transition: var(--transition-speed);
  margin: 3rem 0;
  border-radius: var(--border-radius);
  letter-spacing: 0.12rem;
}

input[type="submit"]:hover {
  background: var(--secondary-color);
}

/* Button Wrap Styles */
.button_wrap {
  color: var(--bg-color);
  position: relative;
  line-height: 2.8em;
  transition: 0.5s;
  margin: 0 auto;
}

.button_wrap::after,
.button_wrap::before {
  transition: var(--transition-speed);
  position: absolute;
  top: 2px;
  bottom: 0;
  margin: auto;
  font-family: "Material Icons";
}

.button_wrap::after {
  content: "\e0be";
  right: 44%;
}

.button_wrap::before {
  content: "\e154";
  right: 42.2%;
}

.button_wrap:hover::after {
  right: 41%;
}

.button_wrap:hover::before {
  right: 39.2%;
}

/* Floating Label Styles */
.floating-label {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  z-index: 1500;
}

.floating-label-field {
  color: rgba(44, 62, 80, 0.75);
  border-width: 0;
  z-index: 2000;
}

.floating-label,
.floating-label-field {
  font: inherit;
  line-height: 1;
  display: block;
  width: 100%;
  transition: transform 0.25s, opacity 0.25s, padding 0.25s ease-in-out;
}

.floating-label-field--s3 {
  padding: var(--input-padding);
  transition: border-color 0.55s ease-in-out;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: transparent;
}

.floating-label-field--s3:not(textarea) {
  max-height: 4em;
}

.floating-label-field--s3::placeholder {
  color: transparent;
}

/* Form Container Styles */
div#cform {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

div.cf {
  background: var(--bg-color);
  padding: 3%;
  margin: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 5px 5px 19px #e3e3e3, -5px -5px 19px var(--bg-color);
}

/* Form Headers */
.cf h5 {
  margin: 2.5rem 0 1rem 0;
  color: var(--primary-color);
}

.cf h5:after {
  content: "";
  background: var(--primary-color);
  height: 5px;
  width: 10rem;
  display: block;
  margin-top: 0.75rem;
}

.cf h6 {
  margin: 2rem 0 0.25rem 1.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  background: var(--text-color);
  color: var(--bg-color);
  border-radius: var(--border-radius);
  min-width: 11rem;
  display: inline-block;
}

/* Form Controls - Radio & Checkbox */
.control {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  margin: 1rem 2rem 15px 0;
  cursor: pointer;
  font-size: 18px;
}

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background: #e6e6e6;
}

/* Custom Radio & Checkbox Styles */
/* .wpcf7-checkbox input[type="checkbox"] + span:before,
.wpcf7-radio input[type="radio"] + span:before {
  display: block;
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  top: 2px;
  left: 0;
  border: 2px solid var(--text-color);
}

.wpcf7-checkbox input[type="checkbox"] + span:after,
.wpcf7-radio input[type="radio"] + span:after {
  display: block;
  position: absolute;
  content: "\e876";
  font-family: "Material Icons";
  height: 30px;
  width: 30px;
  top: -3px;
  left: 1px;
  visibility: hidden;
  font-size: 24px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: var(--error-color);
}

/* Response Output Styles */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--bg-color);
  background: tomato;
  padding: 1rem;
  color: var(--bg-color);
  text-align: center;
  font-size: 83%;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--bg-color);
  background: var(--success-color);
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
}
*/

/* Media Queries */
@media screen and (max-width: 768px) {
  input[type="submit"] {
    padding: 0;
  }

  .button_wrap::after,
  .button_wrap::before {
    display: none;
  }
}
