@font-face {
  font-family: "CQLogo";
  src: url("../assets/fonts/Handlee-Regular.ttf") format("truetype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #151515;
}

/* HEADER */

.cq-header {
  position: sticky;
  top: 0;
  z-index: 100;

  height: 72px;
  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid #eee;
}

.cq-logo {
  font-family: "CQLogo", sans-serif;

  color: #111;
  text-decoration: none;

  font-size: 34px;
  font-weight: 400;

  letter-spacing: 0.01em;
  line-height: 1;
}

.cq-logo span {
  color: #de0f0f;
}

.cq-nav {
  display: flex;
  gap: 24px;
}

.cq-nav a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 15px;
}

.cq-nav a.active,
.cq-nav a:hover {
  color: #de0f0f;
}

/* HERO */

.estimate-hero {
  min-height: 52vh;

  display: grid;
  place-items: center;

  text-align: center;

  padding: 90px 24px;

  color: white;

  background:
    linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.68)),
    image-set(
      url("../images/hero/foodtruck.avif") type("image/avif"),
      url("../images/hero/foodtruck.webp") type("image/webp")
    ) center/cover no-repeat;
}

.estimate-hero > div {
  max-width: 920px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;

  font-size: 13px;
  font-weight: 900;

  color: #ffcf33;

  margin-bottom: 18px;
}

.estimate-hero h1 {
  font-size: clamp(52px, 8vw, 108px);

  line-height: .92;
  letter-spacing: -0.07em;

  margin-bottom: 24px;
}

.estimate-hero p:not(.eyebrow) {
  max-width: 760px;

  margin: 0 auto;

  font-size: clamp(19px, 2vw, 28px);

  line-height: 1.4;

  color: rgba(255,255,255,.88);
}

/* MAIN */

.estimate-wrap {
  max-width: 980px;
  margin: auto;

  padding: 90px 24px 120px;
}

/* INTRO */

.estimate-intro {
  text-align: center;
  margin-bottom: 48px;
}

.estimate-intro h2 {
  font-size: clamp(38px, 5vw, 72px);

  line-height: .95;
  letter-spacing: -0.06em;

  margin-bottom: 16px;
}

.estimate-intro p {
  font-size: 20px;
  color: #666;
}

/* FORM */

.estimate-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.botcheck {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

label {
  display: flex;
  flex-direction: column;

  gap: 10px;

  font-size: 15px;
  font-weight: 700;
}

.required-marker {
  color: #de0f0f;
}

input,
select,
textarea {
  width: 100%;

  padding: 18px 20px;

  border-radius: 18px;
  border: 1px solid #ddd;

  background: #fafafa;

  font-size: 16px;
  font-family: inherit;

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: #de0f0f;
  background: white;

  box-shadow:
    0 0 0 4px rgba(222,15,15,.12);
}

textarea {
  resize: vertical;
  min-height: 180px;
}

/* CHECKBOXES */

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 14px;

  margin-top: 8px;
}

.checkbox-grid span {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 16px;

  border-radius: 18px;

  background: #fafafa;
  border: 1px solid #eee;

  font-size: 15px;
  font-weight: 600;
}

.checkbox-grid input {
  width: auto;
  margin: 0;
}

/* BUTTON */

button {
  appearance: none;
  border: none;

  background: #de0f0f;
  color: white;

  padding: 18px 30px;

  border-radius: 999px;

  font-size: 17px;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform .2s ease,
    opacity .2s ease;
}

button:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.submit-note {
  margin-top: 4px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.privacy-note {
  max-width: 720px;
  margin: -8px auto 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.privacy-note a {
  color: #de0f0f;
  font-weight: 800;
  text-decoration: none;
}

.privacy-note a:hover {
  text-decoration: underline;
}

.captcha-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.captcha-error {
  margin: 0;
  color: #b20d0d;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* MOBILE */

@media (max-width: 850px) {

  .cq-header {
    height: auto;

    padding: 18px 22px;

    flex-direction: column;
    gap: 14px;
  }

  .cq-nav {
    flex-wrap: wrap;
    justify-content: center;

    gap: 16px;
  }

  .estimate-hero {
    min-height: 60vh;

    background-position: 65% center;
  }

  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    padding: 16px 18px;
  }

  /* FOOTER */

  .cq-footer {
    background: #0f0f0f;
    color: white;

    padding: 90px 24px 40px;

    margin-top: 120px;
  }

  .footer-grid {
    max-width: 1400px;

    margin: auto;

    display: grid;
    grid-template-columns:
      1.6fr
      1fr
      1fr
      1fr;

    gap: 54px;
  }

  .footer-logo {
    font-family: "CQLogo", sans-serif;

    color: white;
    text-decoration: none;

    font-size: 38px;

    display: inline-block;

    margin-bottom: 22px;
  }

  .footer-logo span {
    color: #de0f0f;
  }

  .footer-brand p {
    color: rgba(255,255,255,.72);

    line-height: 1.8;

    max-width: 440px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .footer-links h3 {
    font-size: 14px;

    text-transform: uppercase;
    letter-spacing: .12em;

    color: #ffcf33;

    margin-bottom: 10px;
  }

  .footer-links a {
    color: rgba(255,255,255,.78);

    text-decoration: none;

    transition: opacity .2s ease;
  }

  .footer-links a:hover {
    opacity: .65;
  }

  .footer-bottom {
    max-width: 1400px;

    margin: 70px auto 0;
    padding-top: 26px;

    border-top: 1px solid rgba(255,255,255,.10);

    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-bottom p {
    color: rgba(255,255,255,.52);

    font-size: 14px;
  }

  /* MOBILE */

  @media (max-width: 950px) {

    .footer-grid {
      grid-template-columns: 1fr;
      gap: 44px;
    }

    .footer-bottom {
      flex-direction: column;
    }

  }
  
}
