/* The TAKE IT DOWN request form on /take-it-down. It sits inside the legal
   page layout from home.css, so this only adds the form controls. The site's
   CSP allows no inline styles, which is why this is its own file. */

.takedown {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 8px 0 40px;
}

/* display: flex above would otherwise beat the hidden attribute. */
.takedown[hidden] {
  display: none;
}

.takedown__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.takedown__label {
  font-size: 17px;
  font-weight: 700;
}

.takedown__optional {
  font-weight: normal;
  color: var(--grey);
}

.takedown__hint {
  font-size: 15px;
  line-height: 1.5;
  color: #55596A;
}

.takedown input[type="text"],
.takedown input[type="email"],
.takedown textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(11, 16, 35, 0.15);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}

.takedown textarea {
  resize: vertical;
}

.takedown input:focus,
.takedown textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.takedown__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.5;
}

.takedown__check input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.takedown__error:empty {
  display: none;
}

.takedown__error {
  color: #C23A0E;
  font-weight: 700;
}

.takedown__submit {
  align-self: flex-start;
  padding: 18px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.takedown__submit:hover { background: var(--lime-deep); }
.takedown__submit:disabled { cursor: progress; opacity: 0.7; }

.takedown__done {
  margin: 8px 0 40px;
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--white);
}

.takedown__done:focus {
  outline: none;
}

.takedown__done h2 {
  margin-top: 0;
}
