/* QWS shared footer/contact layout. Markup lives only in footer-contact.njk. */

.qws-footer,
.qws-footer *,
.qws-footer *::before,
.qws-footer *::after {
  box-sizing: border-box;
}

.qws-footer {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding-block: clamp(32px, 5vw, 64px);
  padding-inline: clamp(16px, 4vw, 48px);
  overflow: visible;
  background: #050b12;
  color: #f5f8fc;
}

.qws-footer__inner {
  position: static;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 0;
  margin-inline: auto;
}

.qws-footer__info,
.qws-footer__contact,
.qws-contact-form {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
}

.qws-footer__info {
  min-width: 0;
}

.qws-footer__contact {
  max-width: 400px;
  justify-self: end;
}

.qws-footer a {
  color: #f5f8fc;
  text-underline-offset: 0.2em;
}

.qws-footer a:hover,
.qws-footer a:focus-visible {
  color: #8dccff;
}

.qws-footer__brand {
  display: inline-block;
  width: min(240px, 100%);
  margin-bottom: 18px;
}

.qws-footer__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
}

.qws-footer__title,
.qws-footer__hours h3,
.qws-contact-form h2 {
  margin: 0;
  color: #ffffff;
  line-height: 1.15;
}

.qws-footer__title {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.qws-footer__details {
  margin: 0;
  font-style: normal;
}

.qws-footer__details p,
.qws-footer__hours p,
.qws-footer__legal p {
  margin: 0;
  overflow-wrap: anywhere;
}

.qws-footer__details,
.qws-footer__hours,
.qws-footer__legal {
  display: grid;
  gap: 8px;
}

.qws-footer__hours,
.qws-footer__legal {
  margin-top: 22px;
}

.qws-footer__hours h3 {
  font-size: 1.05rem;
}

.qws-footer__legal {
  align-items: start;
}

.qws-footer__legal a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.qws-contact-form {
  display: grid;
  gap: 12px;
  max-width: 400px;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #1268a9;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.qws-contact-form h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.qws-contact-form__intro {
  margin: -4px 0 2px;
  color: rgba(255, 255, 255, 0.92);
}

.qws-contact-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
}

.qws-contact-form input,
.qws-contact-form textarea,
.qws-contact-form button {
  box-sizing: border-box;
  font: inherit;
}

.qws-contact-form input,
.qws-contact-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f4f7fb;
  color: #07111f;
}

.qws-contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.qws-contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: #ffffff;
  color: #064a7b;
  font-weight: 800;
  cursor: pointer;
}

.qws-contact-form button:hover,
.qws-contact-form button:focus-visible {
  background: #e8f4ff;
}

@media (max-width: 767px) {
  .qws-footer__inner {
    grid-template-columns: 1fr;
  }

  .qws-footer__contact,
  .qws-contact-form {
    max-width: none;
    justify-self: stretch;
  }
}
