* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100vw;
}

hr {
  border-color: rgba(0, 0, 0, 0.15);
  border-width: 1px;
}

input {
  outline: none;
  padding: 8px 16px;
  font-size: 16px;
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

button {
  border: none;
  background-color: #16a34a;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: 300ms;
}

button:hover {
  background-color: #12823c;
}

#error-message {
  color: red;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: none;
}

.backimage {
  z-index: -2;
  min-height: 120vh;
  width: 100vw;
  background-image: url(../imgs/background.webp);
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.backimage .gradient {
  width: 100%;
  min-height: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5149425287356322) 27%,
    rgba(0, 0, 0, 0) 100%
  );
}

.heroWrapper {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  padding: 64px 16px;
  gap: 24px;
}

.heroWrapper > * {
  max-width: 1200px;
  margin: 0 auto;
}

.heroWrapper .branding {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  text-align: left;
  color: white;
  font-weight: 800;
  line-height: 32px;
  gap: 16px;
  position: relative;
}

.branding > p {
  text-shadow: 0px 3px 3px rgb(0, 0, 0);
}

@media screen and (max-width: 768px) {
  .heroWrapper .branding {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 28px;
    text-align: left;
    color: white;
    font-weight: 800;
    line-height: 32px;
    gap: 8px;
    position: relative;
  }
}

.textCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  color: white;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 24px;
  backdrop-filter: blur(4px);
}

.textCard > p {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #16a34a;
}

.textCard > p:nth-child(2) {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: white;
}

.formContainer {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: fit-content;
  padding-bottom: 24px;
}

.formContainer > form {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.formContainer > form > div {
  width: 100%;
}

.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #16a34a;
  font-weight: 600;
  background-color: rgba(0, 255, 21, 0.2);
  padding: 2px 8px;
  width: fit-content !important;
  margin: 0 auto;
  border-radius: 8px;
}

.secure > div {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
}

/* FOOTER */
footer {
  background-color: white;
  padding: 24px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

footer .divisory {
  position: absolute;
  top: 0;
  z-index: -1;
}

footer .divisory > div:nth-child(1) {
  width: 150vw;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: -40px;
  left: -50px;
  rotate: -4.7deg;
}

footer .divisory > div:nth-child(2) {
  width: 150vw;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: -80px;
  left: -50px;
  rotate: -9.25deg;
}

.footerMenu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
}

.footerMenu > menu > ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footerMenu > menu > ul > li > a {
  text-decoration: none;
  color: black;
}

@media screen and (max-width: 768px) {
  .footerMenu {
    gap: 16px;
  }
  .footerMenu > img {
    width: 120px;
    height: 120px;
  }
}

.disclosures {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 12px;
}

footer > :last-child {
  text-align: center;
}

.topBar {
  height: 6px;
  background-color: #dadada;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

#progress {
  transition: 300ms ease-in-out;
}

.topBar > div {
  background-color: #16a34a;
  height: 100%;
}

.consent {
  font-size: 12px;
  opacity: 0.75;
}

/* Basic modal styling */
#modal {
  z-index: 3;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 632px;
  height: 600px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Backdrop styling */
#backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.thanksContainer {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: fit-content;
  padding-bottom: 24px;
  position: relative;
}

.professionals-list {
  display: flex;
  position: relative;
  flex-direction: column;
  width: 100vw;
  padding: 0 8px;
}

.professional {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px;
  max-width: 100vw !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.professional > div > img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.professional > div {
  display: flex;
  width: 100%;
  padding: 12px;
  gap: 32px;
}

.professional > div > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.professional > div > div > div {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.multiline-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  font-size: 20px;
  color: #ffd700; /* Gold color for stars */
}

.stars::before {
  content: '★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(
    90deg,
    #ffd700 calc(var(--rating) / 5 * 100%),
    #e0e0e0 calc(var(--rating) / 5 * 100%)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
