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

.gone {
  display: none;
}

.show {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0%;
  right: 0%;
  bottom: 0%;
  top: 0%;
  /* left: 20%;
  right: 20%;
  bottom: 5%;
  top: 5%; */
  background-color: white;
  border: solid 2px gray;
  border-radius: 15px;
  min-height: 40rem;
  padding-top: 125px;
  padding-bottom: 125px;
  padding-left: clamp(25px, 5vw, 100px);
  padding-right: clamp(25px, 5vw, 100px);
  z-index: 200002;
}

.input-box {
  width: 100%;
}
.input-boxes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

#submitorder.cs-button-solid {
  width: 100%;
}

.modal {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal h2 {
  color: #000 !important;
}

.exit-button {
  position: absolute;
  top: -6px;
  right: 4px;
  width: 50px;
  height: 60px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 0.85;
  -webkit-appearance: none;
  -webkit-touch-callout: none;
}

.darken {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 200001;
}

.pswp__icn {
  fill: #000;
  color: #4f4f4f;
}

.ordermodal-button {
  align-self: end;
  display: flex;
  gap: 16px;
}

/* Mobile - 360px */

@media only screen and (min-width: 0em) {
  :root {
    /* 13px - 16px */
    --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
    /* 31px - 49px */
    --headerFontSize: clamp(1.9375rem, 4.5vw, 3.0625rem);
    --bodyFontSize: 1rem;
    /* 60px - 100px top and bottom */
    --sectionPadding: clamp(3.75em, 7.82vw, 6.25em) 1rem;
  }
  #cs-contact {
    padding: var(--sectionPadding);
    padding-top: 0px;
    margin-bottom: 80px;
  }

  #cs-contact .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 50rem;
    margin: auto;
    margin-top: 5rem;
  }
  #cs-contact .cs-content {
    width: 100%;
  }
  #cs-contact .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--primary);
    /* 8px - 12px */
    margin-bottom: clamp(0.5rem, 1.4vw, 0.75rem);
    display: block;
  }
  #cs-contact .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: left;
    max-width: 50rem;
    margin: 0 auto 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  #cs-contact .cs-title2 {

    font-weight: 900;
    line-height: 1.2em;
    text-align: left;
    max-width: 50rem;
    margin: 0 auto 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  
  #cs-contact .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: left;
    width: 100%;
    /* 404px - 522px */
    max-width: clamp(25.25rem, 30vw, 32.625rem);
    margin: 0 auto 0 0;
    /* 40px - 48px */
    margin-bottom: clamp(2.5rem, 6.3vw, 3rem);
    color: var(--bodyTextColor);
  }
  #cs-contact #cs-form {
    margin-bottom: 2.5rem;
  }

  #cs-contact #cs-form label, #orderform label {
    font-size: 1rem;
    line-height: 1.5em;
    font-weight: 700;
    /* 12px - 20px */
    color: var(--headerColor);
  }
  #cs-contact #cs-form label {
    /* 12px - 20px */
    margin-bottom: clamp(0.75rem, 1.3em, 1.25rem);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
  }
  #cs-contact #cs-form .cs-label-message {
    /* 32px - 48px */
    margin-bottom: clamp(2rem, 6.3vw, 3rem);
  }
  #cs-contact #cs-form input,
  #cs-contact #cs-form textarea,
  #orderform input, #orderform textarea {
    font-size: 1rem;
    width: 100%;
    height: 4rem;
    margin-top: 0.25rem;
    padding-left: 1.25rem;
    border: 1px solid #B4B2C7;
    border-radius: 0.5rem;
    /* prevents border & padding from affecting height */
    box-sizing: border-box;
    transition: border .3s;
  }
  #cs-contact #cs-form input:hover,
  #cs-contact #cs-form textarea:hover {
    border: 1px solid var(--primary);
  }
  #cs-contact #cs-form textarea,
  #orderform textarea {
    font-family: inherit;
    padding-top: 1.25rem;
    min-height: 7.5rem;
  }
  #cs-contact #cs-form .cs-button-solid {
    width: 100%;
  }
  #cs-contact .cs-button-solid {
    font-size: 1rem;
    line-height: 3.5rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: auto;
    color: #1a1a1a;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: #edb305;
    border: none;
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;

  }
  #cs-contact .cs-button-solid:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--primary);
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width .3s;

  }
  #cs-contact .cs-button-solid:hover {
    color: var(--bodyTextColorWhite);
    cursor: pointer;
  }
  #cs-contact .cs-button-solid:hover:before {
    width: 100%;
  }
  #cs-contact .cs-right-section {
    position: relative; 
    /* 24px - 40px top & bottom */
    /* 20px - 40px left & right */
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem);
    border-radius: 0.5rem;
    /* cuts off corners on img tag */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  #cs-contact .cs-right-section2 {
    position: relative; 
    /* 24px - 40px top & bottom */
    /* 20px - 40px left & right */
    border-radius: 0.5rem;
    /* cuts off corners on img tag */
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0rem;
    padding-top: 1rem;
  }
  #cs-contact .row {
    display: flex;
    flex-direction: column;
  }
  #cs-contact .cs-right-section img {
    width: 350px;
  }
  #cs-contact .cs-right-section2 img {
    width: 275px;
    height: 183px;
  }

  #cs-contact .cs-header {
    /* 16px - 20px */
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.2em;
    font-weight: 700;
    color: var(--bodyTextColorWhite);
    display: block;
  }
  #cs-contact .cs-link {
    /* 16px - 20px */
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.2em;
    text-decoration: none;
    margin-bottom: 1.25rem;
    color: var(--primary);
    display: block;
    position: relative;
  }
  #cs-contact .cs-link:before {
    /* Animated underline */
    content: '';
    width: 0%;
    height: 2px;
    /* current color of the parent */
    background: currentColor;
    opacity: 1;
    position: absolute;
    display: block;
    bottom: -0.125rem;
    left: 0;
    transition: width .3s;
  }
  #cs-contact .cs-link:hover:before {
    width: 100%;
  }
  #cs-contact .cs-link:last-of-type {
    margin-bottom: 0;
  }
  #cs-contact .cs-block {
    /* sends second address line to the bottom on its own line */
    display: block;
  }
  #cs-contact .cs-bg-picture {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform .6s;
  }
  #cs-contact .cs-bg-picture:before {
    /* background color overlay */
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    top: 0;
    left: 0;
    z-index: 1;
  }
  #cs-contact .cs-bg-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* Makes img tag act as a background image */
    object-fit: cover;
  }

  .input-boxes {
    flex-direction: column;
  }
}
/* Tablet - 700px */
@media only screen and (min-width: 43.75em) {
  .show {
    left: 5%;
    right: 5%;
    bottom: 0%;
    top: 0%;
  }
  #cs-contact .cs-right-section img {
    width: 500px;
  }
  #cs-contact .cs-right-section2 img {
    /* width: 500px; */
  }

  #cs-contact #cs-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #cs-contact #cs-form label {
    width: 48%;
  }
  #cs-contact #cs-form .cs-label-message {
    width: 100%;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64em) {

  .show {
    left: 20%;
    right: 20%;
    bottom: 0%;
    top: 0%;
  }
  #cs-contact .cs-container {
    max-width: 80rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 5rem;
  }
  #cs-contact #cs-form {
    max-width: 39.375rem;
  }
  #cs-contact #cs-form label {
    width: 100%;
  }
  #cs-contact .cs-right-section {
    /* changes to 578px at 1300px wide */
    height: 36.875rem;
    width: 40%;
    max-width: 33.875rem;
    /* prevents flexbox from squishing it */
    flex: none;
  }
  #cs-contact .cs-right-section2 {
    /* changes to 578px at 1300px wide */
    /* prevents flexbox from squishing it */
  }

  #cs-contact .row {
    display: flex;
    flex-direction: row;
  }
  #cs-contact .cs-right-section:hover .cs-bg-picture {
    transform: scale(1.1);
  }
  #cs-contact .cs-block {
    /* goes back to inline so it stays "in line" with the rest of the text */
    display: inline-block;
  }
}
/* Small Desktop - 1300px */
@media only screen and (min-width: 81.25em) {
  .show {
    left: 20%;
    right: 20%;
    bottom: 5%;
    top: 5%;
  }
  #cs-contact #cs-form {
    column-gap: 0rem;
  }
  #cs-contact #cs-form label {
    width: 48%;
    max-width: 19.0625rem;
  }
  #cs-contact #cs-form .cs-label-message {
    max-width: 100%;
  }
  #cs-contact .cs-right-section {

  }
  .input-boxes {
    flex-direction: row;
    }
  #cs-contact .cs-right-section2 {
    padding-top: 0rem;
    }
  }
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #cs-contact .cs-text,
  body.dark-mode #cs-contact .cs-title {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-contact .cs-title2 {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-contact #cs-form label,
  body.dark-mode #cs-contact #cs-form input,
  body.dark-mode #cs-contact #cs-form textarea {
    background-color: transparent;
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #cs-contact #cs-form label::placeholder,
  body.dark-mode #cs-contact #cs-form input::placeholder,
  body.dark-mode #cs-contact #cs-form textarea::placeholder {
    /* lighten up the color of the text by 40%*/
    filter: brightness(1.4);
  }
  body.dark-mode #cs-contact .cs-bg-picture {
    background-color: #000;
  }
  body.dark-mode #cs-contact .cs-bg-picture img {
    /* lets parent background-color bleed through and darken it */
    opacity: .5;
  }
}
.cs-padding {
  padding-top: 10px;
}
