:root {
  /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */
  --primary: #ff6a3e;
  --primaryLight: #ffba43;
  --secondary: #ffba43;
  --secondaryLight: #ffba43;
  --headerColor: #1a1a1a;
  --bodyTextColor: #4e4b66;
  --bodyTextColorWhite: #fafbfc;
  /* 13px - 16px */
  --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
  /* 31px - 49px */
  --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
  --bodyFontSize: 1rem;
  /* 60px - 100px top and bottom */
  --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #f7f7f7;
}

*,
*:before,
*:after {
  /* prevents padding from affecting height and width */
  box-sizing: border-box;
}

.form-header {
  margin-top: 0;
}

.cs-topper {
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  text-align: inherit;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: block;
}

.cs-title {
  font-size: var(--headerFontSize);
  font-weight: 900;
  line-height: 1.2em;
  text-align: inherit;
  max-width: 43.75rem;
  margin: 0 0 1rem 0;
  color: var(--headerColor);
  position: relative;
}

.cs-text {
  font-size: var(--bodyFontSize);
  line-height: 1.5em;
  text-align: inherit;
  width: 100%;
  max-width: 40.625rem;
  margin: 0;
  color: var(--bodyTextColor);
}

.custom-shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  fill: #285fe8;
}

.divider {
  color: #c4c8d0;
}

.submit-btn {
  margin-top: 2em;
  margin-bottom: 2em;
}

.thanks {
  margin: 0 auto;
  text-align: center;
  justify-items: center;
  display: grid;

  h3 {
    margin: 0;
    padding: 0;
  }
}

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #main {
    padding: var(--sectionPadding);
    position: relative;
    z-index: 1;
  }

  #main .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 44rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    column-gap: auto;
    /* 48px - 80px */
    row-gap: clamp(3rem, 6vw, 5rem);
    position: relative;
  }

  #main .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }

  #main .cs-topper {
    color: #767676;
  }

  #main .cs-title {
    max-width: 23ch;
    margin: 0;
  }

  #main .cs-logo {
    max-width: 100%;
    height: auto;
    display: block;
  }

  #main .cs-picture {
    width: 100%;
    /* 240px - 300px */
    height: clamp(15rem, 35vw, 18.75rem);
    margin: 0 0 1.5rem;
    border-radius: 1.5rem;
    /* clips image corners */
    overflow: hidden;
    display: block;
    position: relative;
  }

  #main .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }

  #main .cs-contact-text {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
    margin: 0 0 1.5rem;
    color: var(--bodyTextColor);
  }

  #main .cs-ul {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
  }

  #main .cs-li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.25rem;
  }

  #main .cs-li:hover .cs-icon-wrapper {
    transform: scale(1.1);
  }

  #main .cs-header {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 0.75rem;
    color: var(--headerColor);
    display: block;
  }

  #main .cs-link {
    font-size: 1rem;
    line-height: 1.5em;
    text-decoration: none;
    color: #767676;
    display: block;
    position: relative;
  }

  #main .cs-link:hover {
    text-decoration: underline;
  }

  #main .cs-icon-wrapper {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #bababa;
    display: flex;
    justify-content: center;
    align-items: center;
    /* prevents flexbox from squishing it */
    flex: none;
    transition: transform 0.3s;
  }

  #main .cs-icon {
    width: 1.5rem;
    height: auto;
    display: block;
  }

  #main .cs-form {
    width: 100%;
    /* 24px - 48px top and bottom */
    /* 16px - 32px left and right */
    padding: clamp(1.5rem, 5.18vw, 3rem) clamp(1rem, 4vw, 2rem);
    /* prevents flexbox from affecting height and width */
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  #main .cs-label {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    width: 100%;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
  }

  #main .cs-input {
    font-size: 1rem;
    width: 100%;
    height: 3.5rem;
    padding: 0;
    padding-left: 1.5rem;
    color: var(--headerColor);
    background-color: #f7f7f7;
    border-radius: 0.5rem;
    border: none;
    /* prevents padding from adding to height and width */
    box-sizing: border-box;
  }

  #main .cs-input::placeholder {
    color: #7d799c;
    opacity: 0.6;
  }

  #main .cs-textarea {
    min-height: 7.5rem;
    padding-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: inherit;
  }

  #main .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875em, 5.5vw, 3.5em);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #1a1a1a;
    border: none;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--secondary);
    border-radius: 0.25rem;
    overflow: hidden;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    transition: color 0.3s;
  }

  #main .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }

  #main .cs-button-solid:hover {
    color: #fff;
  }

  #main .cs-button-solid:hover:before {
    width: 100%;
  }

  #main .cs-submit {
    width: 100%;
    min-width: 17.6875rem;
    border-radius: 0.5rem;
  }

  #main .cs-submit:hover {
    cursor: pointer;
  }

  #main .cs-graphic {
    display: none;
  }

  #main .cs-graphic1 {
    width: 13rem;
    height: auto;
    position: absolute;
    left: -7.5rem;
    top: 8.625rem;
  }

  #main .cs-graphic2 {
    width: 10rem;
    height: auto;
    position: absolute;
    right: -9.75rem;
    top: 5rem;
    transform: rotate(25deg);
  }
}

.prices {
  width: 350px;
  text-align: justify;
  margin-bottom: 2rem;

  tr {
    line-height: 20px;

    td:first-child {
      font-weight: bold;
    }

    td:nth-child(2) {
      font-style: italic;
      font-size: 14px;
      color: rgba(0, 0, 0, 0.5);
    }
  }
}

.right-column-bottom {
  ul {
    padding-left: 1rem;
  }

  .times {
    width: 200px;
    .aligned {
      padding-left: 10px;
    }

    .highlight {
      font-weight: bold;
      color: var(--primary);
    }
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #main .cs-container {
    max-width: 80rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #main .cs-contact-group {
    width: 50%;
    max-width: 39.375rem;
  }

  #main .cs-form {
    width: 46%;
    max-width: 36.125rem;
  }

  #main .cs-submit {
    width: auto;
  }
}

/* Large Desktop - 1500px */
@media only screen and (min-width: 93.75rem) {
  #main .cs-graphic {
    display: block;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  max-width: 1024px;
  margin: 1.5rem auto;
  gap: 2.5rem;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-direction: column;
}

.icon-wrapper {
  background-color: #1463ff52;
  padding: 0.75rem;
  border-radius: 50%;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-title {
  height: 3rem;
  margin-top: auto;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .feature-title {
    height: 0;
    margin-top: 0;
  }

  .section-header .grid-container {
    gap: 0px;
  }
}

.feature-description {
  margin-top: 0.25rem;
  color: #6b7280;
}

.pad-top {
  padding-top: 20px;
}

.border-top {
  border-top: 1px solid #c4c8d0;
  width: 100%;
}

.section-header {
  margin-top: -2em;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;

  .center-content {
    text-align: center;
  }
}

.footer {
  background-color: #1463ff;
  position: absolute;

  .grid-container {
    align-items: center;
  }

  .align-text {
    display: inline-flex;
    align-items: center;

    a {
      height: 28px;
    }

    img {
      margin-left: 5px;
      margin-right: 5px;
    }

    .footer-text {
      color: white;
      font-weight: 500;
    }
  }
}
