/* Inner pages (join, contact, DMCA, 2257): same WhatsApp look as the
   homepage form. Loaded after style.css and site.css. */

/* Section background: the page photo, darkened to the chat night colour. */
.page-wrap {
  background-color: var(--wa-bg);
  background-image: linear-gradient(rgb(11 20 26 / 86%), rgb(11 20 26 / 86%)), url("../images/img01.webp");
  background-position: center;
  background-size: cover;
  padding: 40px 16px 56px;
}

.join-wrap.page-wrap {
  background-image: linear-gradient(rgb(11 20 26 / 80%), rgb(11 20 26 / 80%)), url("../images/img02.webp");
}

/* Card with a WhatsApp chat header */
.page-card,
.contact-wrap form.page-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--wa-teal);
  color: #fff;
}

.form-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
}

.form-avatar img {
  width: 30px;
  height: 30px;
}

.page-heading h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.page-heading p {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: rgb(255 255 255 / 82%);
}

.page-body {
  padding: 24px 20px 28px;
  color: #111b21;
}

/* Contact form: light chat wallpaper, labels as incoming bubbles. */
.contact-body {
  background-color: #e4ddd3;
  background-image: radial-gradient(rgb(17 27 33 / 7%) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.contact-body .form-row {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.contact-body .form-group label {
  position: relative;
  display: inline-block;
  margin: 0 0 10px 8px;
  padding: 8px 14px;
  border-radius: 0 10px 10px 10px;
  background: #fff;
  color: #111b21;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 13%);
}

.contact-body .form-group label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid #fff;
  border-left: 8px solid transparent;
}

.contact-body .form-group input,
.contact-body .form-group textarea {
  border: 1px solid #c9ced1;
  border-radius: 12px;
  background: #fff;
  color: #111b21;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
}

.contact-body .form-group input {
  height: 52px;
  padding: 0 16px;
}

.contact-body .form-group textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.contact-body .form-group input::placeholder,
.contact-body .form-group textarea::placeholder {
  color: #667781;
  font-style: normal;
}

.contact-body .form-group input:focus,
.contact-body .form-group textarea:focus {
  border-color: var(--wa-green);
  outline: 3px solid rgb(37 211 102 / 30%);
  outline-offset: 0;
}

.contact-body .contact-btn {
  padding-top: 4px;
}

.contact-body .contact-btn .btn {
  max-width: 320px;
  min-height: 58px;
  margin: 0 0 0 auto;
  font-size: 20px;
  font-weight: 800;
}

/* DMCA / 2257: long text on white, regular weight, generous line height. */
.legal-body {
  background: #fff;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 16px;
}

.legal-body> :last-child {
  margin-bottom: 0;
}

.legal-body ul {
  padding-left: 22px;
  list-style: disc;
}

.legal-body li+li {
  margin-top: 8px;
}

.legal-body a {
  color: var(--wa-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body {
  overflow-wrap: anywhere;
}

/* Join: same intro type as the homepage text block. */
.join-wrap.page-wrap .join-content {
  max-width: 760px;
  padding: 64px 0 72px;
  font-weight: 500;
}

.join-wrap.page-wrap .join-content h1 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--wa-soft);
}

.join-wrap.page-wrap .join-content .site-link {
  margin-bottom: 20px;
  padding: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  border-bottom: 3px solid var(--wa-green);
}

.join-wrap.page-wrap .join-content .site-link:hover {
  color: var(--wa-green);
}

.join-wrap.page-wrap .join-content p {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 32px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--wa-text);
}

.join-wrap.page-wrap .join-btn {
  max-width: 440px;
  height: auto;
  min-height: 68px;
  font-size: 26px;
  font-weight: 800;
}

@media (min-width: 992px) {
  .page-wrap {
    padding: 64px 16px 80px;
  }

  .page-heading {
    padding: 16px 28px;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .page-heading p {
    font-size: 17px;
  }

  .page-body {
    padding: 32px 36px 36px;
  }

  .legal-body {
    font-size: 19px;
  }

  .join-wrap.page-wrap .join-content {
    padding: 120px 0 140px;
  }

  .join-wrap.page-wrap .join-content h1 {
    font-size: 24px;
  }

  .join-wrap.page-wrap .join-content .site-link {
    font-size: 48px;
  }

  .join-wrap.page-wrap .join-content p {
    font-size: 22px;
  }

  .join-wrap.page-wrap .join-btn {
    max-width: 520px;
    min-height: 80px;
    font-size: 32px;
  }
}

@media (max-width: 420px) {
  .page-wrap {
    padding-inline: 12px;
  }

  .page-body {
    padding-inline: 14px;
  }

  .contact-body .contact-btn .btn {
    max-width: none;
  }
}

/* Info cards under the join intro and the contact form. */
.join-info,
.contact-info {
  margin-top: 24px;
}

.join-wrap.page-wrap .join-info {
  margin-top: 0;
}

.legal-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

.legal-body *+h2 {
  margin-top: 24px;
}

.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: decimal;
}

.legal-body ol li+li {
  margin-top: 8px;
}

/* Contact form: "message sent" popup. Closes itself after 3 s (see app.js). */
.sent-popup {
  /* Re-centre: the base reset in style.css zeroes the dialog's auto margins. */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(360px, calc(100% - 32px));
  padding: 24px 20px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #111b21;
  text-align: center;
  box-shadow: 0 16px 48px rgb(0 0 0 / 45%);
}

.sent-popup::backdrop {
  background: rgb(11 20 26 / 75%);
}

.sent-popup[open] {
  animation: sent-popup-in 0.2s ease-out;
}

@keyframes sent-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

.sent-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54656f;
  cursor: pointer;
}

.sent-popup-close:hover {
  background: #f0f2f5;
  color: #111b21;
}

.sent-popup-close:focus-visible {
  outline: 3px solid var(--wa-green);
  outline-offset: 1px;
}

.sent-popup-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
}

.sent-popup-icon svg {
  width: 24px;
  height: 24px;
}

.sent-popup h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
}

.sent-popup p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #3b4a54;
}

.contact-wrap .sent-popup form {
  margin: 0;
  padding: 0;
}

.sent-popup .btn {
  max-width: 160px;
  height: 44px;
  min-height: 0;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 800;
}

/* Thin bar along the bottom edge that runs out as the popup closes itself. */
.sent-popup-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--wa-green);
  transform-origin: left;
}

.sent-popup[open] .sent-popup-timer {
  animation: sent-popup-timer 3s linear forwards;
}

@keyframes sent-popup-timer {
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .sent-popup[open],
  .sent-popup[open] .sent-popup-timer {
    animation: none;
  }
}