/* Additions on top of the Webflow export (Courseware page, contact form). Uses the variables of virtu-it-staging.webflow.css. */

.nav-link.courseware {
  display: inline-block;
}

/* --- Courseware page --- */
.cw-video {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--background-b1);
  box-shadow: 0 30px 80px -30px rgba(49, 131, 255, .45);
  margin-top: 24px;
}

.cw-video video,
.cw-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-video-soon {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 55%);
  color: var(--heading);
  font-size: 16px;
  font-weight: 500;
}

.cw-video.no-video .cw-video-soon {
  display: flex;
}

.cw-shot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.cw-list {
  text-align: left;
  margin-bottom: 32px;
  padding-left: 0;
  list-style: none;
}

.cw-list li {
  position: relative;
  padding-left: 32px;
}

.cw-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--accent-a1);
}

.cw-cta {
  width: 100%;
  max-width: 1000px;
  padding: 60px 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background-image: linear-gradient(140deg, var(--background-b1), transparent);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cw-cta .paragraph-large {
  margin-bottom: 32px;
}

/* --- Contact form --- */
.form-contact .text-field {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent-a1);
}

/* the honeypot: people never see it, bots fill it in */
.botcheck {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-block-contact .success-message,
.form-block-contact .error-message {
  display: none;
}

.form-block-contact.sent .form-contact {
  display: none;
}

.form-block-contact.sent .success-message,
.form-block-contact.failed .error-message {
  display: block;
}

.form-note {
  width: 100%;
  font-size: 14px;
  line-height: 150%;
  margin: 0;
}

.form-contact .button[disabled] {
  opacity: .6;
  transform: none;
  cursor: wait;
}

@media screen and (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .cw-cta {
    padding: 40px 24px;
  }
}

/* Webflow hides .nav-button on small phones (it is the Contact button of the top bar); keep it as second button in the page */
@media screen and (max-width: 479px) {
  .grid-button .nav-button {
    display: block;
  }
}
