@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Stylesheet for /contact/ only. Don't link it from other pages. */

/* ---------- Tokens ---------- */
:root {
  --ink: #062526;
  --sky: #a7d2dd;
  --coral: #f47068;
  --cream: #fff4f0;
  --white: #fff;
  --faq-muted: rgb(6 37 38 / .4);
  --faq-divider: #9bc6d0;
  --faq-answer: #0f606b;

  --fs-display: clamp(59.66px, 5.19vw, 74.67px);
  --fs-lead: clamp(25.6px, 2.22vw, 32px);
  --fs-eyebrow: clamp(19.2px, 1.67vw, 24px);
  --fs-body: clamp(17px, 1.48vw, 21.33px);

  /* The FAQ was an embedded widget. */
  --fs-faq-title: 24.9px;
  --fs-faq-question: 16.9px;
  --fs-faq-answer: 14.2px;

  --wrap: 1232px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-body);
  /* Canva's "regular" Montserrat renders like Google's 500. */
  font-weight: 500;
  line-height: 1.36;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

b {
  font-weight: 700;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
}

.hero__title {
  margin-top: 72px;
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.125;
}

.hero__intro {
  width: min(960px, 100% - 32px);
  margin: 49px auto 0;
  font-size: var(--fs-lead);
  line-height: 1.375;
}

/* ---------- FAQ + contact form placeholder ---------- */
/* On the 1440px design the FAQ spans x=99–766 and the coral box x=910–1275. */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 667fr) minmax(0, 144fr) minmax(0, 365fr) minmax(0, 66fr);
  align-items: start;
  width: min(1242px, 100% - 32px);
  padding: 84px 0 163px;
}

.faq {
  grid-column: 1;
  margin-top: 53px;
}

.faq__title {
  font-size: var(--fs-faq-title);
  font-weight: 600;
  line-height: 28.4px;
  color: var(--sky);
  text-align: center;
}

.faq__search {
  position: relative;
  width: min(355px, 100%);
  margin: 34px auto;
}

.faq__search-input {
  display: block;
  width: 100%;
  height: 45px;
  padding: 0 43px 0 14px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--sky);
  color: var(--ink);
  font: 16.9px Arial, sans-serif;
  outline-offset: 2px;
  appearance: none;
}

.faq__search-input::placeholder {
  color: var(--faq-muted);
}

.faq__search-input::-webkit-search-cancel-button {
  display: none;
}

/* Magnifying glass: a ring plus a short handle. */
.faq__search::before,
.faq__search::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.faq__search::before {
  top: 14px;
  right: 16px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--faq-muted);
  border-radius: 50%;
}

.faq__search::after {
  top: 28px;
  right: 12px;
  width: 6px;
  height: 1.5px;
  background: var(--faq-muted);
  transform: rotate(45deg);
}

.faq__list {
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgb(6 37 38 / .15);
}

.faq__item+.faq__item {
  border-top: 1px solid var(--faq-divider);
}

.faq__question {
  position: relative;
  display: block;
  padding: 21.1px 65px 21.1px 21.1px;
  background: var(--sky);
  color: var(--ink);
  font-size: var(--fs-faq-question);
  font-weight: 700;
  line-height: 23px;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

/* Chevron: two borders of a small rotated square. */
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 8px;
  height: 8px;
  border: solid var(--faq-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-75%) rotate(45deg);
}

.faq__item[open] .faq__question {
  background: var(--white);
  color: #000;
}

.faq__item[open] .faq__question::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq__answer {
  padding: 2px 23px 28px;
  background: var(--white);
  color: var(--faq-answer);
  font-size: var(--fs-faq-answer);
  line-height: 24.9px;
}

.faq__answer p+p {
  margin-top: 24.9px;
}

.faq__answer a {
  color: #0000ee;
  text-decoration: underline;
}

.help {
  grid-column: 3;
  text-align: center;
}

.help__title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 29px;
}

.help__form {
  aspect-ratio: 1;
  margin-top: 10px;
  padding: 30.1% 8px 0;
  background: var(--coral);
  color: var(--white);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.375;
}

/* ---------- Below the full desktop width ---------- */
@media (max-width: 1280px) {

  /* Canva's hard line breaks only fit the full 1440px design; below it text wraps naturally. */
  p br {
    display: none;
  }

  .contact {
    grid-template-columns: minmax(0, 667fr) minmax(0, 80fr) minmax(0, 365fr);
  }
}

/* ---------- Phone layout (Canva's 390px design, capped at 560px) ---------- */
@media (max-width: 800px) {
  :root {
    --wrap: 560px;
    --fs-display: min(59.66px, 15.3vw);
    /* Canva shrinks the 751px-wide widget to fit 359px, which makes its text ~9px.
       Keep the same look but at readable sizes. */
    --fs-faq-title: 18px;
    --fs-faq-question: 15px;
    --fs-faq-answer: 14px;
  }

  .hero__title {
    margin-top: 22px;
    padding-inline: min(36px, 9.2vw) 16px;
    line-height: 1.12;
    text-align: left;
  }

  .hero__intro {
    width: auto;
    margin: 16px 0 0;
    padding-inline: 16px;
  }

  .hero__title,
  .hero__intro {
    max-width: var(--wrap);
    margin-inline: auto;
  }

  .contact {
    display: block;
    width: min(var(--wrap), 100% - 32px);
    padding: 58px 0 102px;
  }

  .faq {
    margin-top: 0;
  }

  .faq__title {
    line-height: 22px;
  }

  .faq__search {
    margin: 22px auto;
  }

  .faq__search-input {
    height: 40px;
    font-size: 15px;
  }

  .faq__search::before {
    top: 12px;
  }

  .faq__search::after {
    top: 25px;
  }

  .faq__question {
    padding: 16px 48px 16px 16px;
    line-height: 20px;
  }

  .faq__question::after {
    right: 18px;
  }

  .faq__answer {
    padding: 0 16px 20px;
    line-height: 22px;
  }

  .faq__answer p+p {
    margin-top: 22px;
  }

  .help {
    width: min(292px, 100%);
    margin: 74px auto 0;
  }

  .help__title {
    line-height: 23px;
  }

  .help__form {
    padding-top: 30.1%;
  }
}
