/* Contact form and per-video "report a problem" form. */

.vc-message {
  max-width: 720px;
}

.vc-message[hidden],
.vc-report[hidden],
.vc-message__form[hidden],
.vc-message__form [hidden] {
  display: none !important;
}

/* Shown in place of the contact form while it is switched off in wp-admin. */
.vc-message--closed,
.vc-message__status.is-closed {
  padding: 0.85rem 1rem;
  border: 1px solid #3a3a3a;
  border-left: 4px solid #ff8c42;
  border-radius: 8px;
  background-color: #1f1f1f !important;
  color: #e6e6e6 !important;
  line-height: 1.6;
}

.vc-message--closed a {
  color: #ff8c42;
  text-decoration: underline;
}

/* Bulma follows the OS colour scheme; the theme is always dark, so pin the text colours. */
.vc-message__form .label {
  color: #ffffff;
  font-weight: 600;
}

.vc-message__form .select:not(.is-multiple):not(.is-loading)::after {
  border-color: #ff8c42;
}

.vc-message__form .textarea {
  min-height: 7.5rem;
  resize: vertical;
}

/* Honeypot: off screen for people, still a normal field for bots. */
.vc-message__hp {
  position: absolute !important;
  top: auto;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vc-message__status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
}

.vc-message__status.is-success {
  border: 1px solid #2f9e5b;
  background-color: #12301f !important;
  color: #b8f5cf !important;
}

.vc-message__status.is-danger {
  border: 1px solid #c2414b;
  background-color: #35161a !important;
  color: #ffc9ce !important;
}

.vc-message__nojs {
  margin-bottom: 1rem;
}

.vc-message__submit.is-primary {
  border-color: #ff8c42 !important;
  background-color: #ff8c42 !important;
  color: #000000 !important;
  font-weight: 600;
}

.vc-message__submit.is-primary:hover:not([disabled]) {
  border-color: #ffa366 !important;
  background-color: #ffa366 !important;
  color: #000000 !important;
}

.vc-message__submit[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.vc-message__submit.is-loading {
  color: transparent !important;
}

/* ----- Report form: a panel that drops down from its toggle button ----- */

.vc-report {
  position: relative;
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

.vc-report__toggle[aria-expanded="true"] {
  border-color: #ff8c42 !important;
}

/* Out of the flow, so opening it never pushes the surrounding row around. */
.vc-report > .vc-report__form {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  width: min(380px, calc(100vw - 2rem));
  margin: 0 !important;
  border: 1px solid #3a3a3a !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75) !important;
}

/* Set by messages.js when a right-aligned panel would leave the screen. */
.vc-report > .vc-report__form.is-align-left {
  right: auto;
  left: 0;
}

.vc-report__form .field:not(:last-child) {
  margin-bottom: 0.65rem;
}

.vc-report__form .label {
  font-size: 0.875rem;
}

.vc-report__form .textarea {
  min-height: 5rem;
}

@media (max-width: 768px) {
  /* On phones the panel is part of the page: full width under the button. */
  .vc-report {
    display: block;
    width: 100%;
    text-align: center;
  }

  .vc-report > .vc-report__form {
    position: static;
    width: 100%;
    margin-top: 0.75rem !important;
    text-align: left;
  }
}
