@import url('./variables.css');

*,
:before,
:after {
  box-sizing: border-box;
  border: none;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg-main.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 768px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0px;
}

.container__logo {
  display: flex;
  gap: 16px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.container__logo--image-size {
  width: 40px;
}

.container__logo--title {
  font-family: var(--font-family-chakra);
  font-weight: var(--font-weight-bold);
  color: var(--white-color);
  font-size: 22px;
}

.container__logo--title span {
  color: var(--green-light-color);
}

.container__logo--subtitle {
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  color: var(--white-color);
  font-size: 14px;
}

.container__display--mobile {
  max-width: 768px;
  padding: 48px 0 0;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.main__container--text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 32px;
}

.main__text--title {
  font-family: var(--font-family-chakra);
  font-weight: var(--font-weight-bold);
  color: var(--white-color);
  font-size: 24px;
}

.main__text--title span {
  color: var(--green-light-color);
}

.main__text--text {
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  color: var(--white-color);
  font-size: 16px;
}

.container__squares {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
}

.main__square {
  padding: 16px;
  background-color: #0000003b;
  border: 2px var(--green-light-color) solid;
  border-radius: 0px 0px 40px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 360px;
}

.main__square img {
  width: 40px;
}

.main__square--text {
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  color: var(--white-color);
  font-size: 16px;
}

.section__form {
  padding: 56px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section__form--title,
.teacher-description__title {
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-bold);
  color: var(--white-color);
  font-size: 18px;
  text-align: center;
}

.section__form--field {
  background-color: var(--green-square-color);
  border: 1px var(--green-light-color) solid;
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form--title {
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  color: var(--white-color);
  font-size: 16px;
  text-align: center;
}

.form--title span {
  font-weight: var(--font-weight-bold);
}

.form__div--white-label {
  background-color: var(--white-color);
  color: var(--green-dark-color);
  font-family: var(--font-family-chakra);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px var(--green-light-color) solid;
  padding: 0px 16px;
  width: 100%;
  width: 320px;
  background-image: url('../images/field-left-corner.svg'),
    url('../images/field-right-corner.svg'), url('../images/field-semi-circle.svg');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top left, top right, bottom center;
}

.mt-4 {
  /* margin-bottom: 24px; */
  color: white;
}

.form__container-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input__label {
  color: var(--white-color);
  font-family: var(--font-family-chakra);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
}

.form__input {
  height: 40px;
  border-radius: 8px;
  border: none;
  padding: 8px;
  color: var(--black-color);
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
}

.form__input::placeholder {
  color: #bfbfbf;
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  font-size: 14px;
}

.form__button {
  background-color: var(--green-light-color);
  border-radius: 8px;
  border: none;
  padding: 16px;
  color: var(--white-color);
  font-size: 16px;
  transition: 0.45s;
}

.form__button:hover {
  background-color: var(--green-button-hover-color);
  transform: scale(1.02);
  cursor: pointer;
}

.section__teacher-description {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.container__teacher {
  display: flex;
  max-width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
  width: 360px;
  padding: 16px;
  background-color: #0000003b;
  border: 2px var(--green-light-color) solid;
  border-radius: 0px 0px 40px 0px;
}

.title__professor {
  color: var(--white-color);
  font-family: var(--font-family-roboto);
  font-size: 14px;
  text-align: left;
  width: 100%;
  background-color:red;
  padding: 16px;
  background-color: #0000003b;
  border: 2px var(--green-light-color) solid;
  /* border-radius: 0px 0px 40px 0px; */
}

.title__professor span {
  font-size: 24px;
}

.teacher-description__image {
  width: 280px;
}

.teacher-description__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.title__professor-description {
  color: var(--white-color);
  font-family: var(--font-family-roboto);
  font-size: 16px;
  text-align: justify;
  margin: 0 16px;
}

.teacher__social-media {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer {
  padding: 50px 20px;
  background-color: var(--green-footer-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.footer__container-infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.infos__title {
  color: var(--white-color);
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
}

.footer__container-infos a {
  color: var(--white-color);
  text-decoration: none;
  display: flex;
  gap: 8px;
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
}

.footer__copyright {
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-regular);
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  width: 100%;
  height: 40px;
  background-color: var(--green-footer-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
}

.footer__copyright a {
  color: var(--white-color);
}

.display-desktop {
  display: none;
}

.bg-light-green {
  --tw-bg-opacity: 1;
  background-color: rgb(76 175 80 / var(--tw-bg-opacity));
}

.p-4 {
  padding: 1rem;
}

.hover\:bg-light-green\/90:hover {
  background-color: #4caf50e6;
}

.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.form__message-error {
  color: var(--error-color);
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
  background-color: #ffebeb;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.form__message-ok {
  color: #1b5e20;
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
  background-color: #e6f4ea;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

@media (min-width: 1268px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  .container__logo--image-size {
    width: 56px;
  }

  .container__logo--title {
    font-size: 32px;
  }

  .container__logo--title span {
    color: var(--green-light-color);
  }

  .container__logo--subtitle {
    font-family: var(--font-family-roboto);
    font-weight: var(--font-weight-regular);
    color: var(--white-color);
    font-size: 16px;
  }

  .display-mobile {
    display: none;
  }

  .display-desktop {
    display: initial;
  }

  .container__display--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .main {
    max-width: 55%;
  }

  .main__container--text {
    padding: 0;
  }

  .main__text--title {
    font-size: 36px;
  }

  .main__text--text {
    font-size: 16px;
  }

  .container__squares {
    flex-direction: row;
  }

  .main__square {
    padding-left: 16px;
    gap: 12px;
  }

  .main__square--text {
    font-size: 16px;
  }

  .section__teacher-description {
    padding: 20px 0;
    width: 100%;
  }

  .professor-picture-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }


  .title__professor span {
    font-size: 20px;
  }

  .title__professor {
    font-size: 16px;
    text-align: left;
    width: 100%;
  }

  .container__teacher {
    margin-top: 24px;
    width: 100%;
  }

  .teacher-description__image {
    width: 220px;
  }

  .container__teacher--desktop {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
  }

  .title__professor {
    border: none;
    padding: 0;
  }

  .title__professor-description {
    margin: 0;

  }

  .section__form {
    padding-top: 0;
    gap: 24px;
    height: 100%;
  }

  .form {
    width: 420px
  }

  .form--title {
    font-size: 16px;
  }

  .container__display--mobile {
    align-items: center;
    justify-content: space-between;
  }

  .footer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .container__logo,
  .footer__container-infos {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 40px 0;
    width: 340px;
  }

  .container__teacher, .main__square {
    width: 340px;
  }
} 
