@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;500;600;700&display=swap');

html {
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0 auto;
  font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI';
  font-size: 1rem;
}

header {
  text-align: -webkit-center;
  padding: 20px 20px 40px 20px;
  background-color: #F7F7F7;
}

.logo img {
  width: 10rem;
  margin-right: 8px;

}

.header-top {
  max-width: 70rem;
}

form {

  padding: 0;
  place-self: center;
  border-radius: 10px;
  width: 100%;
  margin: 0 auto;
  max-width: 50rem;

  position: relative;
}

.step {
  display: none;
  flex-direction: column;
  gap: 15px;
  animation: fade 0.4s ease-in-out;
}

.step.active {
  display: flex;
}




.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.option-button {
  width: 100%;
  max-width: 25rem;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-button:hover {
  background: #f37019;
  color: white;
  border-color: #f37019;
}


.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 180px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 20px;
}

.option-card-active,
.option-card:hover {
  border-color: #f37019;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  fill: #f37019;
}

.option-card span {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 28px 48px;
  max-width: 820px;
  margin: 0 auto 24px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 500;
  color: #1e1e1e;
  user-select: none
}

.accept-sms .check-item {
  text-align: left;
}

.check-item span {
  font-size: 1rem;
}

.check-item input {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  background: #fff;
  transition: .2s
}

.check-item input:checked {
  background: #f37019;
  border-color: #f37019
}

.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 9px;
  height: 16px;
  border: 3px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg)
}

.step h2 {
  font-size: 24px;
}

.rating-item {
  margin-top: 10px;
}

.option-card-title {
  min-height: 45px;
}

input {
  font-size: 16px;
  width: 23rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
}

.form-buttons {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  /* space between buttons */
}

.form-button {
  box-sizing: border-box;
  padding: 15px;
  font-size: 1rem;
  background-color: #f37019;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-end;
  width: 50%;
  text-transform: uppercase;
}

.form-button.form-button-disabled {
  background-color: #f37019;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none !important;
  cursor: not-allowed;
  opacity: .8;
}

a.form-button {
  text-decoration: none;
}

.first-step .form-button,
.thank-you-message .form-button {
  width: 100%;
}

.form-button.back {
  box-sizing: border-box;
  padding: 15px;
  background-color: #F2F3F4;
  border: none;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-end;
  width: 50%;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.progress-bar {
  margin: 0 auto;
  display: flex;
  gap: 6px;
  width: 25rem;
  justify-content: center;
  margin-bottom: 0px;
  place-self: center;
}

.progress-bar .bar {
  flex: 1;
  height: 6px;
  background: #ccc;
  border-radius: 1px;
  transition: background 0.3s ease;
}

.thank-you {
  margin: 0 auto;
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 10px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.progress-bar .bar.active {
  background: #f37019;
}

.form-section {
  background-color: #F7F7F7;
  padding: 0 5% 55px 5%;
}

.form-section-inner {
  background-color: #fff;
  box-sizing: border-box;
  max-width: 800px;
  margin: auto;
  border-radius: 24px;
  padding: 44px;
}

.intro-message {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 24px;
  color: #1e1e1e;
  font-size: 1.05rem;
  line-height: 1.5;
}

.intro-message p {
  margin: 0;
}

.intro-message p + p {
  margin-top: 6px;
}

.form-note {
  min-width: 0;
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}

.form-note.second-row {
  margin-top: 1.2rem;
}

.floating-input,
.floating-input2,
.floating-input-one,
.floating-input-phone {
  flex: 1 1 auto;
  min-width: 0;
}

.floating-input input {
  border: 1px solid #beb8b8;
  border-radius: 5px;
  padding: 24px 10px 6px;
  font-size: 1.2rem;
  width: 23rem;
  background-color: white;
  font-family: sans-serif;
}

.floating-input {
  position: relative;
}

.floating-input label {
  position: absolute;
  left: 10px;
  top: 0.9rem;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
}

.floating-input input:focus+label,
.floating-input input:not(:placeholder-shown)+label {
  top: 5px;
  font-size: 12px;
  color: #555;
}

.floating-input input:focus {
  outline: none;
  border-color: #ff6b00;
}

.floating-input2 input {
  border: 1px solid #beb8b8;
  border-radius: 5px;
  padding: 24px 10px 6px;
  font-size: 1.2rem;
  width: 23rem;
  background-color: white;
  font-family: sans-serif;
}

.floating-input2 {
  position: relative;
}

.floating-input2 label {
  position: absolute;
  left: 10px;
  top: 0.9rem;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
}

.floating-input2 input:focus+label,
.floating-input2 input:not(:placeholder-shown)+label {
  top: 5px;
  font-size: 12px;
  color: #555;
}

.floating-input2 input:focus {
  outline: none;
  border-color: #ff6b00;
}


.security-text {
  display: flex;
  text-align: center;
  font-size: 0.9rem;
  gap: 5px;
  place-self: center;
  font-weight: 500;
  margin-top: 20px;
  justify-content: center;
}

.floating-input input.error {
  color: red;
  border: 2px solid red;
}





.floating-input-one input {
  border: 1px solid #beb8b8;
  border-radius: 5px;
  padding: 24px 10px 6px;
  font-size: 1.2rem;
  max-width: 100%;
  width: 48.6rem;
  background-color: white;
  font-family: sans-serif;
}

.floating-input-one {
  position: relative;
  box-sizing: border-box;
}

.floating-input-one label {
  position: absolute;
  left: 10px;
  top: 0.9rem;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
}

.floating-input-one input:focus+label,
.floating-input-one input:not(:placeholder-shown)+label {
  top: 5px;
  font-size: 12px;
  color: #555;
}

.floating-input-one input:focus {
  outline: none;
  border-color: #ff6b00;
}






.floating-input-phone input {
  border: 1px solid #beb8b8;
  border-radius: 5px;
  padding: 24px 10px 6px;
  font-size: 12px;
  width: 44.3rem;
  background-color: white;
  font-family: sans-serif;
}

.floating-input-phone {
  position: relative;
}

.floating-input-phone label {
  position: absolute;
  left: 3.5rem;
  top: 5px;
  color: #999;
  font-size: 12px;
  pointer-events: none;
  transition: 0.2s ease all;
}

.floating-input-phone input:focus+label,
.floating-input-phone input:not(:placeholder-shown)+label {
  top: 5px;
  font-size: 12px;
  color: #555;
}

.floating-input-phone input:focus {
  outline: none;
  border-color: #ff6b00;
}

.form-note>.floating-input,
.form-note>.floating-input2,
.form-note>.floating-input-phone {
  flex: 1 1 0;
  /* each child takes equal width */
  min-width: 0;
  /* allows shrinking properly */
}

.form-note input[type="text"],
.form-note input[type="tel"],
.floating-input input,
.floating-input2 input,
.floating-input-one input,
.floating-input-phone input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}


.email-suggestions {
  list-style: none;
  margin: 0px;
  padding: 0;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  background-color: white;
  position: absolute;
  z-index: 1000;
  overflow-y: scroll;
  width: 100%;
  border-radius: 5px;
  font-size: 1.1rem;
  border: 1px solid #beb8b8;
}

.email-suggestions li {
  padding: 10px;
  cursor: pointer;
}

.email-suggestions li:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}


.error-msg {
  color: red;
  display: flex;
  font-size: 1.1rem;
  gap: 5px;
  padding-top: 10px;
}

input.error {
  border-color: red !important;
}


.phone-wrapper {
  position: relative;
}

.phone-prefix {
  position: absolute;
  top: 1.7rem;
  left: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.phone-prefix img {
  border-radius: 2px;
  width: 2rem;
}

.phone-prefix .prefix {
  font-size: 1.2rem;
  padding-top: 1.1rem;
  padding-left: 0.9rem;
  color: #000;
}

#phoneNumber {
  padding-left: 5rem !important;
  font-size: 1.2rem;
}



.thank-you-message {
  text-align: center;
  /* padding: 3rem 1rem; */
  /* border-radius: 12px;
  background-color: #f6f6f6;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); */
}

.thank-you-message h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.thank-you-message p {
  font-size: 16px;
  color: #666;
}

.thank-you-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

/* Loading state for primary buttons */

.form-button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.form-button.is-loading::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnspin .8s linear infinite;
}

@keyframes btnspin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media screen and (max-width: 768px) {
  .step h2 {
    font-size: 22px;
  }

  .form-note {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .form-section {
    padding: 5%;
  }

  .form-section-inner {
    background-color: #fff;
    box-sizing: border-box;
    max-width: 800px;
    margin: auto;
    border-radius: 24px;
    padding: 40px 20px;
  }

  .progress-bar {
    width: 100%;
  }

  form {
    width: 100%;
    padding: 0px;
  }

  .floating-input input,
  .floating-input2 input,
  .floating-input-one input {
    width: 97%;
    padding: 7% 0% 2% 3%;
  }

  .email-suggestions {
    width: 100%;
  }

  .floating-input-phone input {
    width: 72%;
  }

  .security-text {
    display: block;
  }

  .phone-prefix img {
    width: 100%;
  }

  .phone-prefix .prefix {
    padding-top: 45%;
    padding-left: 49%;
  }

  .phone-prefix {
    top: 27px;
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI';
    left: 8px;
  }

  #phoneNumber {
    padding-left: 77px !important;
  }

  .checks-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 4%;
  }

  .button-group {
    display: flex;
    gap: 12px 4%;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
  }

  h2 {
    font-size: 1.5em;
  }

  .option-card {
    width: 48%;
    padding: 3px;
  }

  .check-item {
    display: flex;
    align-items: center;
    gap: 12px 4%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    color: #1e1e1e;
    user-select: none;
  }

  .check-item input {
    appearance: none;
    /* remove default OS style */
    -webkit-appearance: none;
    /* Safari/WebKit */
    -moz-appearance: none;
    /* Firefox */
    min-width: 20px;
    width: 20px;
    height: 20px;
  }

  .check-item input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 8px;
    height: 10px;
    border: 3px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
  }

}
