/*-- -------------------------- -->
<---           Contact           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #contact {
    padding: var(--sectionPadding);
    background-color: var(--primaryDark);
    scroll-margin-top: 6rem;
    position: relative;
    overflow: hidden;
  }
  #contact .cs-container {
    width: 100%;
    max-width: 72rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
  }
  #contact .cs-content {
    display: flex;
    flex-direction: column;
  }
  #contact .cs-title {
    color: #fff;
  }
  #contact .cs-title em {
    color: var(--secondary);
  }
  #contact .cs-text {
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.75);
  }

  /* Form -- outlined, transparent panel rather than a filled card, so it
     sits directly on the section's own green rather than a contrasting
     block. */
  #contact .cs-form {
    width: 100%;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  #contact .cs-label {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: relative;
  }
  #contact .cs-label span em {
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    color: rgba(255, 255, 255, 0.55);
  }
  #contact .cs-input,
  #contact .cs-textarea {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    padding: 0 0 0.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    color: #fff;
  }
  #contact .cs-textarea {
    resize: vertical;
    min-height: 3rem;
  }
  #contact .cs-label-name {
    position: relative;
  }
  #contact .cs-input-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    line-height: 1.5rem;
    text-align: center;
    color: rgba(28, 26, 22, 0.55);
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.375rem;
    position: absolute;
    top: 0;
    right: 0;
  }
  #contact .cs-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }
  #contact .cs-radio-option {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  #contact .cs-radio-option input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--secondary);
  }
  #contact .cs-submit {
    width: 100%;
    margin-top: 0.5rem;
    background-color: var(--secondary);
    color: var(--navy);
  }
  #contact .cs-submit:before {
    background: var(--secondaryDark);
  }
  #contact .cs-form-note {
    font-family: var(--bodyFont);
    font-size: 0.8125rem;
    line-height: 1.5em;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #contact .cs-form-success {
    font-family: var(--bodyFont);
    font-size: 0.9375rem;
    line-height: 1.5em;
    margin: 0;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 0.5rem;
    display: none;
  }
  #contact .cs-form.cs-submitted .cs-form-fields {
    display: none;
  }
  #contact .cs-form.cs-submitted .cs-form-success {
    display: block;
  }

  /* Paper-cutout accents. */
  #contact .cs-shape-a,
  #contact .cs-shape-b,
  #contact .cs-shape-c {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat;
    background-size: 120px 120px;
    background-blend-mode: overlay;
    filter: url(#cs-paint-edge);
  }
  #contact .cs-shape-a {
    width: clamp(5rem, 11vw, 7rem);
    height: clamp(5rem, 11vw, 7rem);
    background-color: var(--accentBlue);
    background-image: var(--cs-paint-grain);
    border-radius: 50%;
    bottom: -1.5rem;
    left: 4%;
    opacity: 0.55;
  }
  #contact .cs-shape-b {
    width: clamp(4rem, 9vw, 6rem);
    height: clamp(4rem, 9vw, 6rem);
    background-color: var(--accentRed);
    background-image: var(--cs-paint-grain);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 6%;
    left: 14%;
    opacity: 0.5;
  }
  #contact .cs-shape-c {
    width: clamp(4.5rem, 10vw, 6.5rem);
    height: clamp(4.5rem, 10vw, 6.5rem);
    background-color: var(--secondary);
    background-image: var(--cs-paint-grain);
    border-radius: 1.25rem;
    bottom: 14%;
    left: 32%;
    opacity: 0.4;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #contact .cs-radio-group {
    gap: 1.75rem;
  }
}

/* Desktop - 64rem */
@media only screen and (min-width: 64rem) {
  #contact .cs-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
  }
  #contact .cs-content {
    flex: none;
    max-width: 24rem;
  }
  #contact .cs-form-wrap {
    flex: none;
    width: 28rem;
    max-width: 28rem;
  }
}
