* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  background-color: #eee;
}
body {
  font-family: "Poppins", sans-serif;
}
a {
  text-decoration: none;
}
.container {
  max-width: 80%;
  margin: 0 auto;
}

/* Global styles end */
#preloader {
  background-color: rgb(245, 247, 246);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
header {
  width: 100%;
  top: 0;
  position: sticky;
  background: #fff;
  -webkit-box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}
.nav {
  padding: 1rem 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.nav-logo a img {
  height: 25px;
}
.nav-phone {
  padding: 0.8rem 1rem;
  background-color: #00bafc;
  border-radius: 5px;
  cursor: pointer;
}
.nav-phone span {
  color: #fff;
}
.nav-phone span i {
  margin-right: 4px;
}

/* Header styles end */
#hero {
  width: 100%;
  margin-bottom: 60px;
}
#hero .container {
  height: 500px;
  padding: 8rem 0 0 8rem;
  background-color: #fff;
  border-radius: 0.7rem;
  background: url("../images/bg-header.png") no-repeat right -5px bottom 0 #fff;
  background-size: 600px auto;
}
.hero-content {
  width: 450px;
}
.hero-title {
  font-size: 4rem;
  word-spacing: 0;
  line-height: 70px;
}
.hero-title span {
  display: block;
  text-align: right;
  color: #00bafc;
}
/* Hero styles end */
#form .container {
  border-radius: 0.7rem;
  background: #fff;
  padding: 4rem 8rem;
  -webkit-box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
}
form {
  display: flex;
  justify-content: space-between;
  align-items: top;
}
form label {
  font-size: 1.1rem;
}
form select,
form input,
form button {
  padding: 4px 8px 6px 8px;
  height: 30px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}
.form-left,
.form-right {
  width: 450px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.classes-about {
  display: flex;
  gap: 20px;
}
.class-subjects {
  display: flex;
  gap: 20px;
}
.class-subject,
.class-subject1 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.box-class {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.class-dates {
  display: flex;
  gap: 20px;
}
.class-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
/* form left styles end */
.classes-about {
  display: flex;
}
.class-about {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.form-send-blocks {
  display: flex;
  gap: 20px;
}
.form-send-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.texts {
  display: flex;
  align-items: center;
  gap: 5px;
}
#tekshirdim {
  height: 20px;
  width: 20px;
}
.texts button {
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background-color: #00bafc;
  border: none;
  border-radius: 5px;
}

@media screen and (max-width: 1440px) {
  .container {
    max-width: calc(100% - 20%);
  }
  #hero .container {
    padding: 8rem 5rem;
  }
  #form .container {
    padding: 3rem 5rem;
  }
}
@media screen and (max-width: 1345px) {
  #form .container {
    padding: 6rem 5rem;
  }
  .form-left,
  .form-right {
    width: 400px;
  }
}
@media screen and (max-width: 1300px) {
  #form .container {
    padding: 4rem 5rem;
  }
  .form-left,
  .form-right {
    width: 400px;
  }
}
@media screen and (max-width: 1254px) {
  #hero .container {
    background-size: 500px;
  }
  .form-left,
  .form-right {
    width: 390px;
  }
}
@media screen and (max-width: 1240px) {
  .form-left,
  .form-right {
    width: 380px;
  }
}
@media screen and (max-width: 1187px) {
  .form-left,
  .form-right {
    width: 360px;
  }
}
@media screen and (max-width: 1110px) {
  .form-left,
  .form-right {
    width: 330px;
  }
}
@media screen and (max-width: 1024px) {
  #hero .container {
    padding: 5rem 4rem;
  }
  #form .container {
    background-size: 450px;
    padding: 4rem 2rem !important;
    height: auto;
  }
  .form-left,
  .form-right {
    width: 590px;
  }
  .hero-content {
    max-width: 300px;
  }
  .hero-title {
    font-size: 3rem;
    line-height: 50px;
  }
  form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  #tekshirdim {
    width: 10%;
  }
}

@media screen and (max-width: 768px) {
  #hero .container,
  #form .container {
    padding: 6rem 3rem;
  }
  .form-left,
  .form-right {
    width: 490px;
  }
  #hero .container {
    height: 430px;
    background-size: 400px;
    background-position: bottom 1rem right 0;
  }
  .texts,
  .form-send-blocks,
  .classes-about,
  .class-subjects {
    display: flex;
    flex-direction: column;
  }
  .class-dates {
    display: flex;
    flex-direction: row;
  }
  .classes-about {
    display: flex;
    flex-direction: row;
  }
  .class-subjects {
    display: flex;
    flex-direction: row;
  }
  .form-send-blocks {
    display: flex;
    flex-direction: row;
  }
  .texts {
    display: flex;
    flex-direction: row;
  }
}
@media screen and (max-width: 768px) {
  #hero .container {
    background-size: 390px auto;
    background-position: bottom 1rem right 0;
    padding: 3rem 2rem;
  }
}
@media screen and (max-width: 700px) {
  .form-left,
  .form-right {
    width: 440px;
  }
}
@media screen and (max-width: 600px) {
  .form-left,
  .form-right {
    width: 400px;
  }
}
@media screen and (max-width: 540px) {
  .form-left,
  .form-right {
    width: 340px;
  }
}
@media screen and (max-width: 433px) {
  #hero .container,
  #form .container {
    padding: 2.5rem 2rem;
    max-width: calc(100% - 10%);
  }
  .texts,
  .form-send-blocks,
  .classes-about,
  .class-subjects {
    display: flex;
    flex-direction: column;
  }
  .form-send-blocks {
    display: flex;
    flex-direction: row;
  }

  .texts {
    display: flex;
    flex-direction: row;
  }
  #hero .container {
    padding: 0 20px;
    background-size: 320px auto;
    background-position: bottom 1rem right 0;
    height: 400px;
  }
  .hero-content {
    max-width: 280px;
    padding-top: 2.5rem;
  }
  .hero-title {
    font-size: 2.5rem;
    line-height: 40px;
  }

  body {
    padding-bottom: 30px;
  }
}
@media screen and (max-width: 400px) {
  .form-left,
  .form-right {
    width: 280px;
  }
  #date {
    width: 130px;
  }
}
@media screen and (max-width: 375px) {
  #hero .container,
  #form .container {
    padding: 2rem 1rem;
  }
  #hero .container {
    height: 370px;
    background-size: 300px auto;
  }
  form select,
  form input,
  form button,
  #tekshirdim {
    padding: 3px 7px 5px 7px;
    height: 40px;
    font-family: inherit;
    font-size: 1.2rem;
    width: 100%;
  }
  #tekshirdim {
    width: 30px;
    height: 30px;
  }
}
@media screen and (max-width: 327px) {
  .form-left,
  .form-right {
    width: 230px;
  }
  #date,
  #time {
    width: 105px;
  }
  #hero .container {
    background-size: 280px;
    height: 340px;
  }
  .hero-content {
    max-width: 250px;
  }
  .hero-title {
    line-height: 35px;
    font-size: 2rem;
  }
}
