@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');

* {
  font-family: 'Kumbh Sans', sans-serif;
  color: var(--very-dark-desaturated-blue);
  box-sizing: border-box;
}

:root {
  --very-dark-desaturated-blue: hsl(238, 29%, 16%);
  --soft-red: hsl(14, 88%, 65%);
  --soft-violet: hsl(273, 75%, 66%);
  --soft-blue: hsl(240, 73%, 65%);
  --bg-gradient: linear-gradient(var(--soft-violet), var(--soft-blue));
}

body {
  margin: 0;
  padding: 0;
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-flow: column;
  justify-content: center;
  font-size: 15px;
}

main {
  background-color: white;
  max-width: 1110px;
  height: 500px;
  border-radius: 20px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: -5px 30px 30px 5px hsla(238, 29%, 16%, 0.25);
}

main > * {
  width: 50%;
}

.qas {
  height: 100%;
  padding: 50px 0 50px 30px;
  margin-right: 100px;
  overflow: hidden;
}

.qas .list {
  max-height: 330px;
  overflow-y: auto;
}

h1 {
  font-size: 30px;
}

.qa p {
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  font-size: 13px;
}

h2 {
  margin: 0;
}

.qa label {
  font-size: 14px;
  display: flex;
  margin: 12px 0;
  padding-right: 15px;
  font-weight: normal;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

hr {
  border: none;
  border-bottom: 1px solid hsla(238, 29%, 16%, .2);
}

label i {
  content: url(../images/icon-arrow-down.svg);
  transition: all linear 0.3s;
  width: 12px;
}

input[type=checkbox] {
  display: none;
}

.qa label:hover, input:checked + h2>label {
  font-weight: 700;
}

input:checked ~ p {
  width: fit-content;
  height: fit-content;
  margin: 0 0 20px;
  overflow: auto;
}

input:checked + h2>label i {
  transform: rotateX(180deg);
  transition: linear 0.3s;
}

.bg {
  height: 100%;
  max-width: 50%;
  margin-right: 50px;
  background-image: url(../images/bg-pattern-desktop.svg);
  background-repeat: no-repeat;
  background-size: auto 960px;
  background-position: right 62%;
}

.illustration {
  background: url(../images/illustration-woman-online-desktop.svg);
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  background-size: 120% auto;
  background-position: right 50%;
}

.box {
  content: url(../images/illustration-box-desktop.svg);
  position: relative;
  top: 200px;
  left: -97px;
  display: none;
}

@media only screen and (min-width: 1000px) {
  main {
    width: 960px;
  }

  .box {
    display: block;
  }
}

@media only screen and (max-width: 999px) {
  body {
    display: block;
    padding-top: 10px;
  }
  main {
    max-width: 350px;
    padding: 20px;
    flex-flow: column;
    max-width: 350px;
    height: auto;
    margin-top: 110px;
  }

  main > * {
    width: 100%;
  }

  .qas {
    overflow: visible;
    margin: unset;
    padding: 10px 0;
    min-height: 350px;
  }

  .qa label {
    font-size: 15px;
    padding: unset;
  }

  .qa p {
    font-size: 14px;
  }

  .qas .list {
    width: auto;
    max-height: fit-content;
  }

  .bg {
    margin: unset;
    max-width: unset;
    width: 100%;
    height: 104px;
    background: url(../images/bg-pattern-mobile.svg);
    background-repeat: no-repeat;
    background-size: auto auto;
    background-position: 50% 0px;
  }

  .illustration {
    width: 100%;
    height: 180px;
    background: url(../images/illustration-woman-online-mobile.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
    position: relative;
    top: -100px;
  }

  h1 {
    text-align: center;
  }
}
