/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
  --light-blue: #eaf5fa;
  --pink: #ce0060;
  --light-grey: rgba(216, 212, 215, 0.45);
  --grey: #7a6f6c;
  --box-overlay-pink: rgba(204, 15, 97, 0.6);
}

.pka-lead-form-container-wrapper {
  background: var(--light-blue);
  padding: 80px 10rem;
  position: relative;
  /* height: 26rem; */
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.pka-lead-form-container {
  background: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 1248px;
  width: 100%;
}

.pka-lead-form-inner-wrapper {
  padding: 3rem;
  display: flex;
  flex: 2;
  flex-direction: column;
}

/* Container for image with pink box */
.image-with-box {
  position: relative;
  flex: 1;
}

/* Image */
.image-with-box img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* Pink floating container */
.floating-container {
  background: var(--box-overlay-pink);
  width: 50%;
  aspect-ratio: 1/1;
  position: absolute;
  left: 0;
  bottom: 0;
  margin-bottom: -25%;
  margin-left: -25%;
  bottom: 0;
}

/* Radio button group */
.radio-wrapper {
  position: relative;
  display: block;
  padding-left: 35px;
  margin-bottom: 12px;
}

/* Hover custom radio button */
.radio-wrapper input[type="radio"] ~ .radio-checkbox:hover,
.radio-wrapper input[type="checkbox"] ~ .radio-checkbox:hover {
  background-color: var(--grey);
  cursor: pointer;
}

/* Hide browser default radio button */
.pka-radio-input,
input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create new checkbox for radio */
.radio-checkbox {
  position: absolute;
  width: 21px;
  height: 21px;
  background-color: var(--light-grey);
  top: 0;
  left: 0;
}

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

/* Radio buttom custom svg "checked" icon */
.pka-radio-input,
input[type="radio"]:checked ~ .radio-checkbox,
input[type="checkbox"]:checked ~ .radio-checkbox {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16.148' height='16.148' viewBox='0 0 16.148 16.148'%3E%3Cg id='X' transform='translate(-301.146 -499.146)'%3E%3Cline id='Line_3' data-name='Line 3' x1='15.441' y2='15.441' transform='translate(301.5 499.5)' fill='none' stroke='%23cc0f61' stroke-width='1'/%3E%3Cline id='Line_4' data-name='Line 4' x2='15.441' y2='15.441' transform='translate(301.5 499.5)' fill='none' stroke='%23cc0f61' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
}

.pka-lead-form-slide {
  padding: 1rem 0;
}

/* Hide all forms with name slide-2 and above */
#lead-form .pka-lead-form-slide:not(.first-slide) {
  display: none;
}

#lead-form {
  transition: 0.5s ease;
}

.pka-lead-form-button {
  cursor: pointer;
  padding: 18px 40px 18px 40px;
}

.lead-form-back-button {
  display: none;
  color: var(--pink);
  background: none;
  padding: 0;
  text-align: left;
}

.lead-form-back-button {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 229.76 391.17'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23ce0060; stroke-width: 0px; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cpath class='cls-1' d='M198.16,0c12.8,3.25,20.06,13.55,27.8,22.77,5.82,6.92,4.6,17.71-1.21,24.8-1.21,1.47-2.55,2.84-3.9,4.19-46.84,46.85-93.68,93.7-140.54,140.52-1.06,1.06-2.4,1.85-3.61,2.77-.1.56-.19,1.13-.29,1.69,1.38.91,2.97,1.61,4.12,2.75,46.97,46.9,93.87,93.87,140.85,140.76,6.31,6.3,9.61,13.39,7.26,22.37-2.11,8.08-19.52,25.61-27.55,27.75-7,1.86-13.37.46-19.03-4.05-1.19-.95-2.3-2.01-3.38-3.09-56.86-56.83-113.71-113.67-170.55-170.51-8.62-8.63-10.48-18.43-5.07-27.62,1.33-2.27,3.19-4.29,5.07-6.17C64.93,122.07,121.8,65.25,178.58,8.34c4.09-4.1,8.82-6.71,14.23-8.34h5.35Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  padding-left: 1rem;
}

.preferred-contact-method {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 12rem;
}
.contact-information {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.contact-information input,
.contact-information textarea {
  background-color: var(--light-grey) !important;
  padding: 0.7rem;
  border: none;
  width: 100%;
  border-radius: 0 !important;
  resize: vertical;
}

.contact-information input::placeholder,
.contact-information textarea::placeholder {
  color: var(--grey) !important;
}

.contact-information-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0rem;
}

.link-and-button-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.link-and-button-wrapper button {
  max-width: 12rem;
}

#pka-form-success-message {
  display: none;
  margin: 2rem 0;
}

#pka-lead-form-wrapper {
  display: none;
}

/* Show red border when there are errors in the fields */
input:invalid,
textarea:invalid {
  outline: 1px solid var(--pink) !important;
}

/* Hide image on phone */
@media only screen and (max-width: 900px) {
  .pka-lead-form-container-wrapper {
    padding: 0;
    background-color: #fff;
  }

  .image-with-box {
    padding: 0 0 10% 10%;
  }

  .pka-lead-form-inner-wrapper {
    background: var(--light-blue);
  }

  .contact-information-row {
    flex-direction: column;
  }
  .contact-information input,
  .contact-information textarea {
    background-color: #fff !important;
    border: 1px solid var(--grey) !important;
  }
  .pka-lead-form-container {
    flex-direction: column;
  }

  .radio-checkbox {
    background-color: #fff;
    border: 1px solid var(--grey);
  }
}

#pka-lead-form-input-fields {
  margin-bottom: 1rem;
}

.pka-lead-form-button {
  --button_bevel_color: var(--awb-color4);
  --button_bevel_color_hover: var(--awb-color4);
  --button_accent_color: var(--awb-color1);
  --button_border_color: var(--awb-color1);
  --button_accent_hover_color: var(--awb-color1);
  --button_border_hover_color: var(--awb-color1);
  --button_border_width-top: 0px;
  --button_border_width-right: 0px;
  --button_border_width-bottom: 0px;
  --button_border_width-left: 0px;
  --button-border-radius-top-left: 0;
  --button-border-radius-top-right: 0;
  --button-border-radius-bottom-right: 0;
  --button-border-radius-bottom-left: 0;
  --button_gradient_top_color: var(--awb-color7);
  --button_gradient_bottom_color: var(--awb-color7);
  --button_gradient_top_color_hover: hsla(
    var(--awb-color7-h),
    var(--awb-color7-s),
    calc(var(--awb-color7-l) - 10%),
    var(--awb-color7-a)
  );
  --button_gradient_bottom_color_hover: hsla(
    var(--awb-color7-h),
    var(--awb-color7-s),
    calc(var(--awb-color7-l) - 10%),
    var(--awb-color7-a)
  );
  --button_padding-top: 18px;
  --button_padding-right: 40px;
  --button_padding-bottom: 18px;
  --button_padding-left: 40px;
  border: none;
}
