/* FAQ and contact form. The base styles are in /common/site.css. */

/* FAQ */

.search {
  position: relative;
  margin-bottom: 22px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px 12px 48px;
  border: 3px solid var(--navy);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  box-shadow: 0 4px 0 var(--navy);
  appearance: none;
}

.search input:focus {
  outline: none;
  box-shadow: 0 4px 0 var(--navy), 0 0 0 5px rgba(255, 201, 40, 0.75);
}

.faq-group {
  margin-bottom: 26px;
}

.faq-group h3 {
  margin: 0 0 10px 4px;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  text-shadow: var(--outline);
}

details + details {
  border-top: 2px solid var(--line);
}

summary {
  position: relative;
  display: block;
  padding: 16px 56px 16px 20px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

summary::-webkit-details-marker {
  display: none;
}

/* Round "+" that turns into a "×" when open. */
summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 12px 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 12px no-repeat,
    var(--blue);
  transition: transform 0.2s, background-color 0.2s;
}

details[open] > summary::after {
  transform: rotate(45deg);
  background-color: var(--red);
}

summary:hover {
  color: var(--blue-dark);
}

summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
  border-radius: 16px;
}

.answer {
  padding: 0 20px 16px;
  color: var(--ink-soft);
}

.answer p,
.answer ul {
  margin: 0 0 10px;
}

.answer :last-child {
  margin-bottom: 0;
}

.answer ul {
  padding-left: 20px;
}

.answer strong {
  color: var(--ink);
}

.faq-empty {
  margin: 0 0 26px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(20, 37, 79, 0.35);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.faq-empty a {
  color: var(--gold);
}

/* Contact form */

.contact {
  margin: 8px 0 18px;
  padding: 26px 22px 24px;
  scroll-margin-top: 16px;
}

.contact h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
}

.contact-lede {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.noscript {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
}

.field {
  margin-bottom: 18px;
}

.field > label,
.field > .label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--field);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%232f6be6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right 16px center no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8f9cbc;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 230, 0.18);
}

.field [aria-invalid='true'] {
  border-color: var(--red);
}

.field [aria-invalid='true']:focus {
  box-shadow: 0 0 0 4px rgba(242, 64, 90, 0.18);
}

.hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.counter {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-dark);
}

.error:empty {
  display: none;
}

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 16px;
  border: 2px dashed #9db7ea;
  border-radius: 14px;
  background: #f3f7ff;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.drop:hover,
.drop.over {
  border-color: var(--blue);
  background: #e6eeff;
}

.drop:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 230, 0.18);
}

.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop svg {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-main {
  font-weight: 700;
  color: var(--blue-dark);
}

.drop-sub {
  font-size: 14px;
  color: var(--ink-soft);
}

.drop.full {
  display: none;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.thumbs:empty {
  display: none;
}

.thumbs li {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--navy);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs li.busy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(234, 242, 255, 0.7);
}

.thumbs button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 12px 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 12px no-repeat,
    var(--red);
  transform: rotate(45deg);
  cursor: pointer;
  z-index: 1;
}

.thumbs button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  margin: 0 0 14px;
  font-weight: 600;
}

.status:empty {
  display: none;
}

.status.bad {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fde8ec;
  color: var(--red-dark);
}

.status.bad a {
  color: var(--red-dark);
}

#send {
  width: 100%;
}

.privacy {
  text-align: center;
}

.sent {
  padding: 8px 0 4px;
  text-align: center;
}

.sent:focus {
  outline: none;
}

.sent-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  box-shadow: inset 0 -5px 0 var(--green-edge), 0 4px 0 var(--navy);
}

.sent-check svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sent h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--navy);
}

.sent p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.direct {
  margin: 0 0 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.direct a {
  color: var(--gold);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .contact {
    padding: 32px 32px 28px;
  }
}
