@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Outfit:wght@100..900&display=swap');

html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  overflow-x: hidden !important;
}

a:hover {
  color: #000000;
}

#section-ads {
  padding: 30px 0;
}

:root {
  --primary-color: #DE2429;
  --secondary-color: #404857;
  --black: #000;
  --placeholder: #999;
  --white: #fff;
  --progress-bg: #FAFAFF;
}

/* icons mui */
.material-symbols-sharp {
  color: var(--secondary-color);
  font-size: 40px;
  margin-inline: 5px 18px;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.page-wrapper {
  display: flex;
  flex-direction: column;
}

.main,
.x-form {
  flex: 1;
}


/* Navigation */
.main-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 35px 0;
  min-height: 100px;
}

.logo {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
}

.wizard-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: auto
}

.logo-text {
  margin-left: 0.5rem;
  font-size: 1.25rem;
  color: #333;
  font-weight: bold;
}

.step-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-item {
  display: flex;
  align-items: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border: 2px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
}

.step-circle.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.step-label {
  margin-left: 8px;
  font-weight: bold;
  color: var(--primary-color);
}

.step-item {
  position: relative;
  text-align: center;
}

.step-label {
  display: none;
  font-weight: bold;
  color: var(--primary-color);
}

/* mostra o titulo do step quando está no passo (ou seja ativo) */
.step-item.active .step-label {
  display: block;
}

.step-circle.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}


/* progress bar */
.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--progress-bg);
}

.progress-bar-fill {
  height: 10px;
  background: var(--primary-color);
  transition: width .3s ease;
  width: 0;
}

.progress-bar-fill-ty {
  width: 100%;
}

/* back button */
.back-button {
  opacity: 0;
  margin: 50px auto 0 100px;
  display: flex;
  gap: 6px;
  cursor: pointer;
  width: fit-content;
}


.back-button-text {
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
}

.back-button-text:hover {
  color: var(--primary-color);
  font-weight: 700;
}

/* Form */
.form-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 65vh;
}

.form-title {
  text-align: center;
  font-size: 36px;
  font-style: normal;
  text-wrap: balance;
  font-weight: 500;
  line-height: 40px;
  color: var(--primary-color);
}

.form-subtitle {
  margin: 0;
  text-align: center;
  color: var(--secondary-color);
  font-size: 20px;
  font-style: normal;
  font-weight: 200;
  line-height: 40px;
}

.form-question {
  display: block;
  margin: 1.5rem 0 0.75rem;
  font-weight: bold;
}

.answers {
  max-width: 720px;
  display: grid;
  grid-gap: 1rem;
  margin: 35px auto 0;
}


.answer {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.25);
  padding: 3px 16px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}


.answer-label {
  flex: 1;
  color: var(--secondary-color);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.answer input {
  position: absolute;
  opacity: 0;
}

.answer:hover,
.answer:has(input:checked) {
  border: 3px solid var(--primary-color);
}


.answer:not(:has(input:checked)):hover {
  border: 3px solid var(--primary-color);
}


/* botao do formulario */
.button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-button {
  display: inline-block;
  margin-top: 35px;
  padding: 15px 75px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 5px 5px 0px 0px #D1D5E0;
}

.form-button:hover {
  box-shadow: none;
  transform: translateY(5px);
}

.form-button span {
  color: var(--white);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.form-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.form-button:hover,
.form-button:focus {
  color: #fff;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* para o step do contacto */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-container {
  display: flex;
  align-items: center;
  border: 3px solid var(--secondary-color);
  border-radius: 30px !important;
  padding: 8px 16px;
  transition: border-color .2s, box-shadow .2s;
}

.input-container:hover,
.input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* icon mais pequeno no conctacto */
.input-icon {
  font-size: 32px;
  font-weight: 500;
  margin-right: 10px;
  color: var(--placeholder);
}

.input-container input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 17px;
  font-weight: 300;
}

.input-container input::placeholder {
  color: var(--placeholder);
}


/* mensagens de erro */
.error {
  display: block;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 300;
  text-align: center;
}

#name-error,
#phone-error,
#email-error,
#codigo_postal-error {
  display: block;
  color: var(--primary-color);
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
}

label.error {
  display: block;
  width: 100%;
  text-align: center;
  margin: 10px auto 5px;
  color: var(--primary-color);
}

input.error {
  display: inline-block;
  width: auto;
  text-align: left;
  margin: 0;
  color: var(--black);
}

#nome-error,
#telefone-error {
  margin: 0;
}

/*Term animation */
.termContainer {
  width: 100%;
  font-size: 16px;
  color: #1E1E1E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 10px -20px;
  padding: 20px;
}

.terms-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.termContainer a {
  color: #1E1E1E;
  font-weight: 700;
}

.termContainer input {
  display: none;
}

.termContainer a:hover {
  color: var(--primary-color) !important;
}

.termContainer svg {
  overflow: visible;
  max-height: 15px;
  max-width: 15px;
  margin-right: 5px;
  margin-top: 1px;
  vertical-align: baseline;
  translate: 0 2px;
}

/* #term {
  position: absolute;
  opacity: 0;
  cursor: pointer;
} */

.path {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
  stroke-dasharray: 241 9999999;
  stroke-dashoffset: 0;
}

.termContainer input:checked~svg .path {
  stroke: var(--primary-color);
  stroke-dasharray: 70.5096664428711 9999999;
  stroke-dashoffset: -262.2723388671875;
}


/* css do agradecimento */
.agradecimento-header {
  text-align: center;
  margin-top: 40px;
}

.agradecimento-header h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 36px;
  font-weight: 500;
}

.suggestions-card {
  --max-width: 650px;
  --padding: 1rem;
  width: min(var(--max-width), 100% - (2 * var(--padding)));
  margin: 2rem auto;
  padding: 32px 100px;
  border: 3px solid var(--primary-color);
  border-radius: 1.5rem;
}

.suggestions-card h2 {
  text-align: center;
  text-wrap: balance;
  color: var(--secondary-color);
  font-size: 25px;
  font-weight: 500;
}

.suggestions-grid {
  /* display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 2rem;
  margin: 2rem auto; */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-inline: 24px;
  margin-top: 50px;
}

.suggestion-block {
  width: 48%;
}

.suggestions-list {
  list-style: none;
  padding: 0;
  margin: 30px;
  column-count: 2;
  column-gap: 2rem;
}

.suggestions-list li {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 400;
  text-align: left;
  font-size: 16px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: var(--DarkRed, #DE2429);
  text-decoration-thickness: 25%;
  text-underline-offset: 10%;
}


/* pop up com mensagem de agradecimento */
.over {
  transition: filter .3s ease;
}

.overlay-view {
  filter: blur(6px);
}

.popup {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  position: relative;
  border-radius: 30px;
  background: #FBFBFB;
  padding: 80px;
  text-align: center;
  width: 650px;
  height: 387px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.popup-content h3 {
  color: var(--primary-color);
  text-align: center;
  font-size: 40px;
  font-weight: 500;
}

.popup-content p {
  color: var(--secondary-color);
  text-align: center;
  font-size: 25px;
  font-weight: 400;
  line-height: 27px;
  text-wrap: balance;
}

.popup-content span {
  color: var(--secondary-color);
  font-weight: 500;
}

.popup-content .close-popup {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.modal-footer {
  justify-content: center !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
}

.politica-button {
  margin: 0 !important;
  box-shadow: none !important;
}

#section-ads a {
  text-align: center;
}


@media (max-width: 1200px) {
  .logo {
    position: static;
    margin-bottom: -8px;
    margin-top: 20px;
  }

  .main-nav {
    flex-direction: column;
    padding: 20px 0;
  }
}

@media (max-width: 768px) {
  .form-title {
    font-size: 28px;
    line-height: 30px;
  }
}

@media (max-width: 600px) {
  .logo {
    position: unset;
    transform: none;
    margin: 0;
  }

  .logo-img {
    height: 45px;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
  }

  .step-nav {
    gap: 0;
  }

  .step-circle {
    display: none;
  }

  .step-circle.active {
    display: flex;
  }

  .answers {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .back-button {
    margin: 50px auto 0 35px
  }

  .material-symbols-sharp {
    font-size: 36px;
    margin-inline: 3px 10px;
  }

  .answer-label {
    font-size: 15px;
    text-wrap: balance;
    line-height: 1.2;
  }

  .form-subtitle {
    line-height: 20px;
    font-size: 18px;
  }

  .answers {
    margin: 27px auto 0;
  }

  .form-container {
    margin: 0;
  }

  .suggestions-card {
    padding: 10px 68px
  }

  .suggestions-card h2 {
    font-size: 22px;
  }

  .suggestions-list li {
    font-size: 14px;
    text-decoration-thickness: 19%;
    text-underline-offset: 15%;
  }
}

@media (max-width: 480px) {
  .step-circle {
    width: 32px;
    height: 30px;
  }

  .step-item {
    font-size: 15px
  }

  .logo-img {
    height: 38px;
  }

  .form-title {
    font-size: 22px;
    line-height: 25px;
  }

  .form-subtitle {
    font-size: 16px;
    line-height: 24px;
    text-wrap: balance;
  }

  .form-button {
    margin-top: 20px;
  }

  .input-container {
    padding: 3px 16px;
  }

  .input-container input {
    font-size: 16px;
  }

  .label.error,
  error {
    margin: 0;
  }


  .popup-content p {
    font-size: 18px;
  }

  .termContainer span {
    font-size: 14px;
  }

  .suggestions-card {
    padding: 10px 0;
  }
}

@media (max-width: 400px) {
  .main-nav {
    flex-direction: column;
    padding: 20px 0;
    gap: 15px
  }

  .step-circle {
    width: 25px;
    height: 25px;
  }

  .back-button {
    margin: 25px auto 0 35px;
  }

  .form-subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  .material-symbols-sharp {
    font-size: 32px;
  }

  .popup-content {
    padding: 0;
  }

  .termContainer {
    padding-block: 10px 15px;
  }
}