/* Reset & Global Values */

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  display: inline-block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
label,
input,
textarea {
  display: inline-block;
  width: fit-content;
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  border: 0;
  outline: 0;
}

textarea {
  resize: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

p {
  line-height: 1.5;
}

/* Screen Readers */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Start Styling */

@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");

:root {
  /*sub-heading at the top of the app UI*/
  --pale-violet: hsl(276, 100%, 81%);
  /*chat on the left*/
  --moderate-violet: hsl(276, 55%, 52%);
  /*chat on the right*/
  --desaturated-dark-violet: hsl(271, 15%, 43%);
  /*placeholder text*/
  --grayish-blue: hsl(206, 6%, 79%);
  /*paragraph*/
  --dark-grayish-violet: hsl(270, 7%, 64%);

  /*linear gradient*/
  --light-magenta: hsl(293, 100%, 63%);
  --light-violet: hsl(264, 100%, 61%);

  --white: hsl(0, 0%, 100%);
  /*app background*/
  --light-grayish-violet: hsl(270, 20%, 96%);
  /*submit button background*/
  --very-dark-desaturated-violet: hsl(271, 36%, 24%);
  /*radio button outline*/
  --very-light-magenta: hsl(289, 100%, 72%);

  --font-family: "Rubik", sans-serif;
  --font-size: 16px;
  --font-weight400: 400;
  --font-weight500: 500;
  --font-weight700: 700;
}

html {
  font-size: 62.5%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight400);
  color: var(--dark-grayish-violet);
  background-color: var(--light-grayish-violet);
}

.intro {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.intro__back1 {
  width: 19rem;
  height: 50rem;
  background: linear-gradient(#e942ff, #8838ff);
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  border-radius: 0 0 25rem 0;
}
.intro__back2 {
  position: absolute;
  z-index: -1;
  bottom: 0;
  right: 0;
  width: 19rem;
  height: 50rem;
  border-radius: 25rem 0 0 0;
  background-color: hsla(264, 100%, 61%, 0.04);
}

.intro__wrapper {
  display: flex;
  flex-direction: column;
  gap: 6.7rem;
  max-width: 31rem;
}

.intro__title {
  font-size: 4rem;
  text-align: center;
  font-weight: var(--font-weight500);
  color: var(--very-dark-desaturated-violet);
}
.intro__desc {
  text-align: center;
  line-height: 174%;
  margin-top: 2.4rem;
}

.mobile {
  border: 0.9rem solid var(--white);
  border-radius: 3rem;
  max-height: 50.4rem;
  max-width: 24.7rem;
  position: relative;
  background-color: var(--light-grayish-violet);
  overflow-y: hidden;
  margin: 0 auto;
  width: 30rem;
  box-shadow: 0rem 1rem 3rem rgba(0, 0, 0, 0.1);
}
.mobile__header {
  position: absolute;
  background-color: var(--white);
  min-height: 4rem;
  top: -4.5%;
  left: 50%;
  min-width: 13rem;
  border-radius: 1.5rem;
  transform: translateX(-50%);
}

.mobile__contact {
  background: linear-gradient(to left, var(--light-magenta), var(--light-violet));
  border-radius: 0.6rem;
  display: flex;
  padding: 3.2rem 1.7rem 1.2rem 1.4rem;
  justify-content: space-between;
  align-items: center;
}
.mobile__left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mobile__back {
  color: white;
  transform: scaleX(0.5);
  font-weight: var(--font-weight700);
  cursor: pointer;
}
.mobile__avatar {
  border-radius: 50%;
  width: 2.4rem;
  border: 0.1rem solid var(--white);
}
.mobile__author {
  margin-left: 0.2rem;
}
.mobile__person {
  color: var(--white);
  font-size: 1.12rem;
}
.mobile__avaliable {
  font-size: 0.8rem;
  color: var(--pale-violet);
}
.mobile__right {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  cursor: pointer;
}
.mobile__dot {
  width: 0.2rem;
  border-radius: 50%;
  height: 0.2rem;
  background-color: var(--white);
}

.mobile__main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem 0.8rem;
}
.mobile__sms {
  font-size: 0.8rem;
  max-width: 60%;
  border-radius: 1rem;
  padding: 0.7rem 0.8rem 0.5rem;
  line-height: 136%;
}
.mobile__sms--left {
  background-color: hsla(276, 55%, 52%, 0.1);
  color: var(--moderate-violet);
  border-bottom-left-radius: 0.4rem;
}
.mobile__sms--right {
  align-self: flex-end;
  color: var(--desaturated-dark-violet);
  background-color: var(--white);
  border-bottom-right-radius: 0.4rem;

  box-shadow: 0rem 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}
.mobile__sms--right-img {
  align-self: flex-end;
  max-width: 64%;
  width: 100%;
  padding: 0.8rem 0 0;
}
.mobile__wrap {
  display: flex;
  justify-content: space-between;
}
.mobile__img {
  width: 4rem;
  border-radius: 1rem;
}

.mobile__sms--left-last {
  margin-top: 0.9rem;
}

.mobile__sms--select {
  background: linear-gradient(to right, var(--light-magenta), var(--light-violet));
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 75%;
  padding: 1rem 1.7rem 1rem 0.8rem;
  border-bottom-left-radius: 0.4rem;
}
.mobile__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  cursor: pointer;
}
.mobile__radio {
  appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: var(--very-light-magenta);
  width: 1.2rem;
  height: 1.2rem;
  border: 0.1rem solid var(--very-light-magenta);
  border-radius: 50%;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.mobile__radio::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 0.8rem 0.8rem var(--very-light-magenta);
}
.mobile__radio:checked::before {
  transform: scale(1);
}
.mobile__price {
  color: var(--white);
  font-weight: var(--font-weight700);
  font-size: 1.2rem;
  margin-top: 0.16rem;
}

.mobile__footer {
  margin: 0 auto;
  padding: 0.4rem 0.8rem 1rem;
}
.mobile__input-wrapper {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 0.5rem 0.1rem;
  background: var(--white);
}
.mobile__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1.4rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--dark-grayish-violet);
}
.mobile__input::placeholder {
  color: var(--grayish-blue);
}

.mobile__send-btn {
  background: var(--very-dark-desaturated-violet);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-weight: var(--font-weight500);
  width: 2.4rem;
  height: 2.4rem;
  margin-top: -0.4rem;
}

@media (min-width: 600px) {
  .intro__wrapper {
    max-width: 50rem;
    gap: 8rem;
  }

  .intro__title {
    font-size: 4.4rem;
  }

  .intro__desc {
    font-size: 1.6rem;
  }

  .intro__back1 {
    width: 24rem;
    height: 56rem;
  }

  .intro__back2 {
    width: 22rem;
    height: 52rem;
  }
}
@media (min-width: 900px) {
  .intro__wrapper {
    max-width: 70rem;
    gap: 10rem;
  }

  .intro__title {
    font-size: 4rem;
  }

  .intro__desc {
    font-size: 1.6rem;
  }

  .intro__back1 {
    width: 30rem;
    height: 52rem;
    border-radius: 0 0 25rem 25rem;
  }

  .intro__back2 {
    width: 28rem;
    height: 50rem;
  }

  .intro__wrapper {
    flex-direction: row;
    max-width: 70%;
    align-items: center;
    justify-content: center;
    gap: 4rem;
  }
  .intro__title {
    text-align: left;
  }
  .intro__desc {
    text-align: left;
  }
}
@media (min-width: 1200px) {
  .intro__back1 {
    width: 48rem;
    height: 70rem;
    border-radius: 0 0 25rem 25rem;
    left: -6rem;
  }
  .intro__back2 {
    width: 33rem;
    height: 68rem;
    border-radius: 25rem 0 0 0;
  }
  .intro__wrapper {
    max-width: 92rem;
    gap: 12.4rem;
  }
  .intro__mobile {
    margin-left: 10.3rem;
  }
}
@media (min-width: 1800px) {
  html {
    font-size: 68.75%;
  }
  .intro__wrapper {
    max-width: 120rem;
    gap: 16rem;
  }

  .intro__title {
    font-size: 5.2rem;
  }

  .intro__desc {
    font-size: 2rem;
  }

  .intro__back1 {
    width: 55rem;
    height: 80rem;
    left: -8rem;
  }

  .intro__back2 {
    width: 42rem;
    height: 78rem;
  }
}
