/* =====================================================
   VANNS SPICES CONTACT PAGE
   Load after style.css and nav.css
   ===================================================== */

.contact-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 45% 55%;
  background: #f7f2ea;
}

.contact-hero-copy {
  align-self: center;
  padding: 95px 1vw 85px 7vw;
}

.contact-kicker {
  display: block;
  color: var(--rust);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 22px;
}

/*
.contact-kicker::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--olive);
  margin-top: 17px;
}
*/

.contact-hero h1 {
  color: var(--ink);
  font-size: clamp(4rem, 5vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0 0 24px;
}

.contact-script {
  color: var(--rust);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  font-style: italic;
  line-height: 1;
  margin-bottom: 35px;
}

.contact-hero p {
  max-width: 550px;
  color: #444b40;
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
}

.contact-hero-art {
  min-height: 610px;
  background:
    linear-gradient(
      90deg,
      #f7f2ea 0%,
      rgba(247, 242, 234, .88) 5%,
      rgba(247, 242, 234, 0) 18%
    ),
    url('../img/c-hero.jpg') center / cover no-repeat;

  background-image:
    linear-gradient(
      90deg,
      #f7f2ea 0%,
      rgba(247, 242, 234, .88) 5%,
      rgba(247, 242, 234, 0) 18%
    ),
    image-set(
      url('../img/c-hero.webp') type('image/webp'),
      url('../img/c-hero.jpg') type('image/jpeg')
    );
}

.contact-content {
  background: var(--paper);
  padding: 95px 0 115px;
}

.contact-shell {
  max-width: 1390px;
  padding-left: 5vw;
  padding-right: 5vw;
}

.contact-info {
  padding: 8px 48px 0 0;
}

.contact-info > h2,
.contact-form-card > h2 {
  color: var(--ink);
  font-size: clamp(2.6rem, 3.7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 34px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon,
.shipping-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
}

.contact-icon i,
.shipping-icon i {
  font-size: 20px;
}

.contact-icon-green {
  background: var(--dark);
}

.contact-icon-rust {
  background: var(--rust);
}

.contact-icon-gold {
  background: #cf912b;
}

.contact-info h3,
.shipping-note h3 {
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 7px;
}

.contact-info address,
.contact-info p,
.shipping-note p {
  color: #545a50;
  font-size: 15px;
  font-style: normal;
  line-height: 1.65;
  margin: 0;
}

.contact-info a {
  color: var(--ink);
  font-weight: 700;
}

.contact-info a:hover {
  color: var(--rust);
}

.contact-info p span {
  color: #666b62;
  font-size: 14px;
}

.shipping-note {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 17px;
  background: #f3eee5;
  border: 1px solid #aeb6a6;
  margin-top: 30px;
  padding: 18px;
}

.shipping-icon {
  width: 40px;
  height: 40px;
  background: var(--olive);
}

.directions-link {
  width: fit-content;
  min-height: 48px;
  border: 1px solid #85917d;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 29px;
  padding: 0 25px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.contact-form-card {
  background: #fff;
  border: 1px solid #ece6dd;
  box-shadow: 0 12px 34px rgba(55, 45, 34, .1);
  padding: clamp(38px, 5vw, 66px);
}

.contact-form-card > h2 {
  margin-bottom: 13px;
}

.contact-form-card > p {
  color: #5d6259;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 36px;
}

.contact-form-card .form-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-form-card .form-label span {
  color: var(--rust);
}

.contact-form-card .form-label small {
  color: #676c64;
  font-size: 13px;
  font-weight: 400;
}

.contact-form-card .form-control {
  min-height: 51px;
  background: #fff;
  border: 1px solid #cfc9bf;
  border-radius: 0;
  color: var(--ink);
  padding: 12px 14px;
}

.contact-form-card textarea.form-control {
  min-height: 185px;
  resize: vertical;
}

.contact-form-card .form-control:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(86, 119, 40, .12);
}

.contact-submit,
.partner-band-button {
  min-height: 50px;
  background: var(--olive);
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.contact-submit:hover,
.partner-band-button:hover {
  background: #486720;
}

.partner-band {
  background: #f3eee5;
  border-top: 1px solid var(--line);
  padding: 58px 0;
}

.partner-shell {
  max-width: 1390px;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  padding-left: 5vw;
  padding-right: 5vw;
}

.partner-intro {
  padding-right: 42px;
}

.partner-intro h2 {
  color: var(--ink);
  font-size: clamp(3rem, 4.2vw, 5rem);
  line-height: .93;
  margin: 0 0 21px;
}

.partner-intro p {
  max-width: 300px;
  color: #555c51;
  line-height: 1.6;
  margin-bottom: 25px;
}

.partner-feature {
  min-height: 235px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 28px;
  text-align: center;
}

.partner-feature > i {
  color: var(--dark);
  font-size: 48px;
  margin-bottom: 25px;
}

.partner-feature h3 {
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 13px;
}

.partner-feature p {
  color: #5d6258;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

@media (min-width: 768px) and (max-width: 1150px) {
  .contact-hero {
    display: grid;
    min-height: 540px;
    grid-template-columns: 50% 50%;
  }

  .contact-hero-copy {
    padding: 80px 32px 40px;
    min-width: 0;
    align-self: center;
  }

  .contact-hero h1 {
    font-size: clamp(2.75rem, 4.5vw, 3.25rem);
    line-height: 1;
  }

  .contact-hero-art {
    min-height: 0;
    background-size: cover;
    background-position: 75% center;
    background-repeat: no-repeat;
  }

  .contact-info {
    padding-right: 0;
  }

  .partner-shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-intro {
    grid-column: 1 / -1;
    padding: 0 0 35px;
    text-align: center;
  }

  .partner-intro p {
    max-width: 620px;
    margin: 0 auto 24px;
  }

  .partner-feature {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .partner-feature:nth-child(2),
  .partner-feature:nth-child(3) {
    border-top: 0;
  }

  .partner-feature:nth-child(2n) {
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .contact-hero-copy {
    min-width: 0;
    padding: 80px 24px 36px;
    text-align: center;
  }

  .contact-hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-hero h1 {
    font-size: clamp(3.25rem, 9vw, 3.25rem);
  }

  .contact-hero-art {
    display: block;
    position: static;
    z-index: auto;
    width: 100%;
    height: 450px;
    min-height: 0;
    background-image: url('../img/c-hero.jpg');
    background-image: image-set(
      url('../img/c-hero-mobile.webp') type('image/webp'),
      url('../img/c-hero-mobile.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .contact-content {
    padding: 72px 0 85px;
  }

  .contact-shell,
  .partner-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-form-card {
    padding: 34px 23px;
  }

  .partner-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .partner-intro {
    grid-column: 1 / -1;
    padding: 0 0 32px;
    text-align: center;
  }

  .partner-intro h2 {
    font-size: clamp(2.25rem, 6vw, 3rem);
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .partner-intro p {
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 18px;
    line-height: 1.5;
  }

  .partner-intro .partner-band-button {
    width: auto;
  }

  .partner-shell > .partner-feature {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 8px;
    align-content: center;
    align-items: start;
    justify-content: normal;
    min-height: 140px;
    padding: 28px 20px;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .partner-feature > i {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    font-size: 48px;
    line-height: 1;
  }

  .partner-feature h3 {
    grid-column: 2;
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
  }

  .partner-feature p {
    grid-column: 2;
    min-height: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
  }
}
  
/* =====================================================
   CONTACT FORM VALIDATION + FULL-SCREEN SUCCESS MODAL
   ===================================================== */

.contact-form-errors {
  background: #fff1ed;
  border-left: 4px solid var(--rust);
  color: #662d20;
  margin-bottom: 30px;
  padding: 18px 22px;
}

.contact-form-errors strong {
  display: block;
  margin-bottom: 8px;
}

.contact-form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form-card .form-control.is-invalid,
.contact-form-card.was-validated .form-control:invalid {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(164, 77, 45, .1);
}

.contact-form-card .invalid-feedback {
  color: var(--rust);
  font-size: 13px;
  margin-top: 8px;
}

.contact-success-modal {
  background: rgba(30, 50, 28, .86);
}

.contact-success-modal .modal-dialog {
  margin: 0;
  max-width: none;
}

.contact-success-modal .modal-content {
  min-height: 100vh;
  background: rgba(30, 50, 28, .86);
  border: 0;
  border-radius: 0;
  color: #fff;
}

.contact-success-modal .modal-header {
  min-height: 88px;
  padding: 26px 32px;
}

.contact-success-modal .btn-close {
  margin-left: auto;
  opacity: .9;
}

.contact-success-modal .btn-close:hover,
.contact-success-modal .btn-close:focus {
  opacity: 1;
}

.contact-success-modal .modal-body {
  display: grid;
  place-items: center;
  padding: 30px 24px 110px;
}

.contact-success-content {
  max-width: 860px;
  text-align: center;
}

.contact-success-icon {
  width: 92px;
  height: 92px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
}

.contact-success-icon i {
  font-size: 44px;
}

.contact-success-content > span {
  color: #d9b16f;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.contact-success-content h2 {
  color: #fff;
  font-size: clamp(3.3rem, 6vw, 7rem);
  line-height: .95;
  letter-spacing: -.035em;
  margin: 0 0 25px;
}

.contact-success-content p {
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 680px;
}

@media (max-width: 767px) {
  .contact-success-modal .modal-header {
    min-height: 72px;
    padding: 20px;
  }

  .contact-success-modal .modal-body {
    padding: 24px 22px 90px;
  }

  .contact-success-content p {
    font-size: 17px;
  }
  .contact-success-content h2 {
  font-size: clamp(2.3rem, 6vw, 7rem);
  line-height: 1;
  letter-spacing: unset;
  }
}
@media (max-width: 390px) {
.contact-form-card > h2 {
    font-size: 1.8rem;
    }
}    
@media (max-width: 360px) {
.contact-hero h1 {
  font-size: clamp(2.2rem, 9vw, 3.25rem);
    }
.contact-script {
  font-size: clamp(1.8rem, 3.2vw, 3.7rem);
  }
.contact-form-card {
  padding: 34px 12px 34px 12px;
    }  
}      