:root {
  --page-bg: #f1eded;
  --card-bg: #ffffff;
  --blue: #4a90e2;
  --red: #d0021b;
  --text: #000000;
  --muted: #4a4a4a;
  --line: #b3b3b3;
  --shadow: 3px 3px 5px rgba(155, 155, 155, 0.75);
  font-family: "Source Sans 3", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
}

a {
  color: inherit;
}

.simulator-shell {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 12px 18px;
}

.lead-simulator-form {
  position: relative;
  width: min(450px, 100%);
}

.form-logo {
  width: 100%;
  height: 60px;
  margin: 0 auto;
  border-radius: 30px 30px 0 0;
  background-image: url("../img/logo-pdsnet.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 248px 37px;
}

.form-card {
  width: min(400px, calc(100vw - 24px));
  min-height: 327px;
  margin: 0 auto;
  padding: 20px 22px 28px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

h1 {
  position: relative;
  min-height: 100px;
  margin: 0 0 24px;
  padding: 24px 0 0 132px;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  text-align: left;
}

h1::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: url("../img/pds-girl.jpg") center / cover no-repeat;
}

.step[data-step="Step1-tipo_plano"] h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.18;
}

.step[data-step="Step1-tipo_plano"] h1 strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.question {
  display: block;
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

.field-block {
  margin: 0 0 18px;
}

.option-row {
  display: grid;
  justify-content: center;
  gap: 12px;
}

.option-row--three {
  grid-template-columns: repeat(3, 112px);
  gap: 10px;
  min-height: 110px;
}

.option-row--two {
  grid-template-columns: repeat(2, minmax(0, 138px));
}

.option-row--stacked {
  grid-template-columns: 1fr;
}

.option-control {
  display: block;
  cursor: pointer;
}

.option-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-face {
  display: grid;
  min-height: 110px;
  place-items: center;
  align-content: center;
  padding: 12px 10px 10px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #000000;
  background: var(--page-bg);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.05;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.option-face img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
}

.option-control input:checked + .option-face {
  background: rgba(74, 144, 226, 0.3);
  border-color: var(--blue);
  outline: none;
}

.option-control:focus-within .option-face {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.option-control:hover .option-face {
  background: rgba(179, 179, 179, 0.3);
  transform: translateY(-1px);
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  outline: none;
}

input::placeholder {
  color: #777777;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.35);
}

.combobox {
  position: relative;
}

.combobox-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.combobox-option {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #000000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.combobox-option:hover,
.combobox-option.is-active {
  background: rgba(74, 144, 226, 0.12);
}

.combobox-more {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-top: 1px solid rgba(179, 179, 179, 0.45);
  background: #ffffff;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.combobox-more:hover,
.combobox-more:focus {
  background: rgba(74, 144, 226, 0.08);
  outline: none;
}

.combobox-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.select-grid {
  display: grid;
  gap: 10px;
}

.select-grid--birth {
  grid-template-columns: 82px 1fr 98px;
}

.select-grid label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.submit-step {
  display: block;
  width: 175px;
  min-height: 50px;
  margin: 20px auto 0;
  border: 0 solid #000000;
  border-radius: 10px;
  background: var(--page-bg);
  box-shadow: var(--shadow);
  color: #000000;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.submit-step:hover,
.submit-step:focus {
  background: rgba(179, 179, 179, 0.3);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.field-error,
.form-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.form-status {
  color: var(--muted);
}

.form-status.is-error {
  color: var(--red);
}

.lead-simulator-form.is-submitting {
  pointer-events: none;
}

.submit-loader {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(241, 237, 237, 0.78);
}

.submit-loader__box {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 170px;
  padding: 22px 24px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: #000000;
  font-size: 18px;
}

.submit-loader__spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(74, 144, 226, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: submit-spin 0.8s linear infinite;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.step-thanks {
  text-align: center;
}

.step-thanks .avatar {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
}

.step-thanks h1 {
  margin-bottom: 18px;
}

.step-thanks p {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.step-thanks .muted {
  color: #9b9b9b;
  font-size: 20px;
  font-weight: 500;
}

.thanks-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 20px;
}

.thanks-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(245px, 100%);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(74, 144, 226, 0.75);
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.thanks-action:hover,
.thanks-action:focus {
  background: rgba(74, 144, 226, 0.1);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 10px;
}

.phone-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 220px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(74, 144, 226, 0.75);
  border-radius: 10px;
  color: #000000;
  text-decoration: none;
}

.phone-card img {
  width: 20px;
  height: 20px;
}

.phone-card strong,
.phone-card small {
  display: block;
  width: 120px;
  text-align: center;
}

.phone-card strong {
  font-size: 18px;
  font-weight: 800;
}

.phone-card small {
  margin-top: -5px;
  font-size: 14px;
}

.legal {
  width: min(390px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.legal a {
  text-decoration: underline;
}

.site-seal {
  display: block;
  width: 100px;
  height: 30px;
  object-fit: contain;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .simulator-shell {
    padding-top: 18px;
  }

  .form-logo {
    background-size: 220px auto;
  }

  .form-card {
    padding: 20px 16px 28px;
  }

  h1 {
    min-height: 82px;
    padding-left: 96px;
    padding-top: 14px;
    font-size: 23px;
  }

  h1::before {
    left: 0;
    width: 82px;
    height: 82px;
  }

  .question {
    font-size: 17px;
  }

  .option-row--three,
  .option-row--two {
    grid-template-columns: 1fr;
  }

  .step[data-step="Step1-tipo_plano"] .option-row--three {
    min-height: 350px;
  }

  .select-grid--birth {
    grid-template-columns: 1fr;
  }

}
