/* || RESET */

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea {
  font: inherit;
}

/* || VARIABLES */
:root {
  /* FONTS */
  --FF: "Inter", sans-serif;
  --FS: clamp(1rem, 2.2vh, 1.5rem);

  /* COLOURS */
  --BGCOLOUR: #fff;
  --BODY-BGCOLOUR: #f1faee;
  --FONT-COLOUR-PRIMARY: #e63946;
  --FONT-COLOUR-SECONDARY: #000;
}

/* || UTILITY CLASSES */
.offscreen {
  position: absolute;
  left: -10000px;
}

.nowrap {
  white-space: nowrap;
}

.center {
  text-align: center;
}

/* || GENERAL STYLES */

html {
  text-rendering: optimizeLegibility;
  font-family: var(--FF);
  font-size: var(--FS);
  scroll-behavior: smooth;
  background-color: var(--BGCOLOUR);
}

body {
  /* background-color: var(--BODY-BGCOLOUR); */
  color: var(--FONT-COLOUR);
  min-height: 100vh;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
  /* border-style: none; */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  border-color: #fff;
}

select:focus {
  background-image: linear-gradient(45deg, #e63746e6 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, #e63746e6 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position: calc(100% - 15px) 1em, calc(100% - 20px) 1em,
    calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
  border-color: #e63746e6;
  outline: 0;
}

/* || BLOCKS */

.container {
  /* TODO
  Configure padding of different sizes
  based on media types (see AirBnb) */
}

.header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-flow: row nowrap;
  padding: 0.25rem 40px 0.25rem 40px;
}

.header__brand {
  display: flex;
  margin-right: auto;
  align-items: center;
}

.header__brand a {
  text-decoration: none;
  color: var(--FONT-COLOUR-PRIMARY);
}

.header__nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 2rem;
}

.header__nav li:not(:last-child) {
  padding-right: 2rem;
}

.header__nav a {
  text-decoration: none;
  text-align: center;
  color: inherit;

  text-decoration: underline 0.15em rgb(230, 57, 70, 0);
  transition: text-decoration-color 300ms;
}

.header__nav a:hover,
.header__nav a:focus {
  color: var(--FONT-COLOUR-PRIMARY);
  text-decoration: underline;
  text-decoration-color: rgb(230, 57, 70, 1);
}

.header__btn {
  display: inline-block;
  padding: 10px 30px;
  text-align: center;
  vertical-align: middle;
  border-radius: 5px;
  border-style: none;
  background-color: hsl(355, 78%, 56%);
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: color 100ms;
}

.header__btn:hover,
.header__btn:focus {
  background-color: hsl(355, 78%, 56%, 0.9);
}

.container-header {
  background-color: var(--BODY-BGCOLOUR);
  height: 100vh;
  position: relative;
}

.header__img {
  position: absolute;
  bottom: 0;
}

/* HERO */

.container-hero {
  width: 70%;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  margin-top: 5rem;
}

.hero__h2 {
  font-size: 2.5rem;
  font-weight: 900;
  padding: 1rem 0;
}

.hero__p {
  color: #585858;
  font-size: 1rem;
  padding: 1rem 0 1.5rem 0;
}

.hero__form {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  gap: 1rem;
}

.hero__input {
  /* width: 100%; */
  flex-grow: 2;
  height: 3rem;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  padding-left: 15px;
  border-radius: 5px;
  text-overflow: ellipsis;
}

.hero__input:focus {
  outline: none !important;
  /* border:1px solid red; */
  box-shadow: 0 0 10px rgba(230, 55, 70, 0.25);
}

.hero__button {
  flex-grow: 1/3;
}

.hero__error {
  display: none;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.2rem;
  border-radius: 5px;
  /* background-color: #FFF; */
  width: 100%;
  color: red;
  background-color: #fce4e4;
  border: 1px solid #fcc2c3;
}

.response-card {
  padding: 1rem;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  height: 4.4rem;
  margin-top: 2rem;
  position: relative;
}

.response-card ul {
  display: flex;
  flex-flow: row wrap;
  list-style-type: none;
  align-items: center;
}

.response-card-right {
  margin-left: auto;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 2rem;
}

.response__button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  border-style: none;
  background-color: #1d3557;
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: color 100ms;
}


.response__button--clicked{
  transition: background-color 0.5s ease;
  background-color: #72a727;
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  border-style: none;
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: color 100ms;
}

/* END HERO */

/* MAIN PRICING */

.container-pricing {
  padding: 0px 40px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem;
}

.plan-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
}

.plan-header {
  background: linear-gradient(to right, hsla(355, 78%, 56%, 0.8), #e63946);
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  vertical-align: middle;
  color: #fff;
  border-radius: 5px;
}

.plan-header h3 {
  padding: 1rem;
}

.plan-header p {
  padding: 0 1rem 1rem 1rem;
  font-size: 3rem;
}

.plan-header p span {
  font-size: 1rem;
}

.plan-header img {
  width: 100%;
}

.plan-list {
  list-style-type: none;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  vertical-align: middle;
}

.plan-list li {
  margin: 0.8rem;
  color: #585858;
}

.plan-list li button {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 5px;
  border-style: none;
  /* background-color: hsl(355, 78%, 56%); */
  background: linear-gradient(to right, hsla(355, 78%, 56%, 0.8), #e63946);
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: color 100ms;
}

.fa-circle-check {
  color: #e63946;
}

/* END MAIN PRICING */

.container-main {
  padding: 2rem 40px 4rem 40px;
}

/* STATS */

.container-stats {
  background-color: #1d3557;
  padding: 1rem 40px;
  color: #fff;
}

.stats-subtitle {
  font-size: 0.8rem;
  padding: 0.8rem 0 0.4rem 0;
  text-align: center;
}

.stats-content {
  padding: 1rem 1rem 1.5rem 1rem;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-evenly;
}

.stat h3 {
  font-size: 2rem;
  font-weight: 900;
  padding-bottom: 0.5rem;
}

.stat p {
  font-size: 0.8rem;
}
/*
.stat {
  display: flex;
  flex-flow: column nowrap;
} */

/* END STATS */

/* REPORT CARD */

.report-container {
  margin: 3rem 40px;
}

.report-card {
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-flow: row nowrap;
}

.report-card-header {
  border-radius: 20px;
  max-width: 300px;
  background-color: #1d3557;
  color: #fff;
  padding: 3rem;
}

.report-card-contact {
  width: 100%;
}

.report-card-contact ul {
  display: flex;
  flex-flow: column nowrap;
  border-radius: 20px;
  gap: 2rem;
  padding: 4rem;
  vertical-align: middle;
  list-style-type: none;
}

.report-card-contact label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #3c3c3c;
}

.report-card-contact input {
  width: 100%;
  height: 3rem;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  padding-left: 15px;
  border-radius: 5px;
  text-overflow: ellipsis;
}

.report-card-contact textarea {
  width: 100%;
  height: 3rem;
  padding-top: 1rem;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  padding-left: 15px;
  border-radius: 5px;
  text-overflow: ellipsis;
}

.report-card-contact input:focus,
.report-card-contact textarea:focus {
  outline: none !important;
  /* border:1px solid red; */
  box-shadow: 0 0 10px rgba(230, 55, 70, 0.25);
}

.report-card-contact select {
  width: 100%;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  border-radius: 5px;
  display: inline-block;
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;
}

.report-card-header h4 {
  font-size: 2.5rem;
  font-weight: 900;
  padding-bottom: 2rem;
}

.report-card-header p {
  color: whitesmoke;
  font-size: 1rem;
  padding: 1rem 0 1.5rem 0;
}

.report-card-contact button {
  display: inline-block;
  width: 100%;
  padding: 10px 25px;
  border-radius: 5px;
  border-style: none;
  background-color: #1d3557;
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: color 100ms;
  height: 3rem;
}

/* END REPORT */

/* FOOTER */

.footer {
  background-color: #e63946;
  padding: 1.5rem 20px;
  font-size: 0.8rem;
  color: #fff;
  bottom: 0;
}

.footer__ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  align-items: center;
  list-style-type: none;
}

.footer__ul .footer-left {
  display: flex;
  margin-right: auto;
}

.footer__ul .footer-right {
  display: flex;
}

.footer__ul li:not(last-child) {
  padding-right: 1rem;
}

.footer__ul li a {
  text-decoration: none;
  color: inherit;
}

/* END FOOTER */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .header {
    padding: 0.25rem 24px 0.25rem 24px;
  }

  .header__nav ul {
    gap: 1rem;
  }

  .header__nav li:not(:last-child) {
    padding-right: 0rem;
  }

  .footer__ul {
    flex-flow: row nowrap;
  }

  .footer__ul .footer-left {
    margin-right: none;
    display: inline-block;
    overflow-wrap: break-word;
  }

  .footer__ul .footer-right {
    display: inline-block;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .header {
    padding: 0.25rem 40px 0.25rem 40px;
  }
}

@media only screen and (max-width: 768px) {
  .report-card-header {
    max-width: 100%;
  }

  .report-card {
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-flow: row wrap;
  }

  .hero__form {
    flex-flow: column wrap;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .report-card-header {
    max-width: 300px;
  }
}

@media only screen and (max-width: 992px) {
  .response-card {
    height: 10rem;
  }

  .response-card ul {
    display: flex;
    flex-flow: column wrap;
    list-style-type: none;
    vertical-align: middle;
    gap: 1rem;
  }

  .response-card-right {
    margin-left: 0;
    display: flex;
    flex-flow: column wrap;
    /* align-items: center; */
    vertical-align: middle;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .report-card-header {
    max-width: 500px;
  }
}
