/* The photo column; GSA stacks a testimonial card under the photograph. */
.industry-aside {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 30px;
  width: 585px;
}

.industry-aside .subpage__figure {
  width: 100%;
}

/* ============================================================
   GSA testimonial card
   ============================================================ */

.industry-quote {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.industry-quote__lead {
  padding: 15px 20px;
  background: rgba(106, 162, 183, 0.5);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 24px;
  font-weight: var(--weight-semibold);
  color: var(--color-grey-dark);
}

.industry-quote__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid #6aa2b7;
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* ============================================================
   Teal contact band
   ============================================================ */

.industry-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 120px var(--gutter);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.2) 100%),
    var(--color-green-primary);
}

.industry-cta h2 {
  font-size: var(--text-h2);
  line-height: 64px;
  font-weight: var(--weight-semibold);
  text-align: center;
  color: var(--text-inverse);
}

.industry-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.industry-cta__phone {
  font-size: 24px;
  line-height: 40px;
  color: var(--text-inverse);
}

.industry-cta__phone a {
  font-size: 30px;
  font-weight: var(--weight-medium);
  color: inherit;
}

.industry-cta__btn {
  min-height: 50px;
  padding-inline: 40px;
  border: 1px solid var(--color-white);
  font-size: 20px;
  letter-spacing: 1.4px;
  color: var(--text-inverse);
}

.industry-cta__btn:hover {
  background: var(--color-white);
  color: var(--color-green-primary);
}

/* ============================================================
   GSA enquiry form
   ============================================================ */

.industry-form {
  padding-block: 60px;
}

.industry-form__card {
  align-items: flex-end;
  width: 1026px;
  max-width: 100%;
  margin-inline: auto;
}

.industry-form__intro {
  align-self: stretch;
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* The tick boxes belong to the free-text box above them and carry no caption of their
   own, so they sit tight under it rather than on the card's own 28px rhythm. */
.industry-form__reasons {
  align-self: stretch;
  margin-top: -8px;
}

.industry-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;
}

.industry-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  line-height: 22px;
  color: var(--color-grey-secondary);
}

.industry-form__check input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-green-primary);
}

.industry-form__captcha {
  align-self: flex-start;
}

.industry-form__submit {
  min-width: 177px;
  height: 50px;
  font-size: 18px;
  letter-spacing: 1.26px;
  box-shadow: var(--shadow-cta);
}

/* ============================================================
   Enquiry feedback
   ============================================================

   The checkout carries its own copy of these in reservation.css. The two pages never load
   together, and neither stylesheet is a dependency of the other. */

/* jQuery Validate places its label after the control it failed on. */
.errorMsg {
  display: block;
  margin-top: 6px;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--color-rose);
}

.errorMsg[hidden] {
  display: none;
}

/* Live toggles Bootstrap's d-none on the overlay. This theme loads no Bootstrap, so the
   one utility it needs is defined here. */
.d-none {
  display: none !important;
}

/* The live markup puts a Font Awesome spinner inside. No Font Awesome here, so the ring
   is drawn in CSS and the <i> is left out. */
.form-overlay {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
}

.form-overlay::after {
  content: '';
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-grey-light);
  border-top-color: var(--color-green-primary);
  border-radius: var(--radius-pill);
  animation: industry-spin 0.8s linear infinite;
}

@keyframes industry-spin {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-overlay::after {
    animation-duration: 2.4s;
  }
}

.form-dialog {
  width: min(453px, calc(100vw - 2 * var(--gutter)));
  padding: 0;
  border: 0;
  border-radius: var(--radius-control-lg);
  background: var(--color-white);
  color: var(--color-grey-dark);
}

.form-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.form-dialog__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  font-size: var(--text-sm);
  line-height: 22px;
}

.form-dialog__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
}

.form-dialog__actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--space-5) var(--space-5);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .industry-aside {
    width: 40%;
  }
}

@media (max-width: 900px) {
  /* Scoped to these pages rather than to .subpage__title, which the Experience and
     content pages share. */
  .industry-title {
    text-align: left;
  }

  .industry-aside {
    order: -1;
    width: 100%;
  }

  .industry-cta {
    gap: 40px;
    padding-block: 40px;
  }

  .industry-cta h2 {
    line-height: 34px;
  }

  /* The rep's name centered on its own line, the number whole on the next —
     never broken mid-number. */
  .industry-cta__actions {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .industry-cta__phone {
    font-size: 30px;
    line-height: 24px;
  }

  .industry-cta__btn {
    border-width: 2px;
  }

  .industry-cta__name {
    display: block;
  }

  .industry-cta__sep {
    display: none;
  }

  .industry-cta__number {
    white-space: nowrap;
  }

  .industry-cta__btn {
    width: 100%;
  }

  .industry-quote__lead {
    padding: 0;
    background: none;
  }

  .industry-quote__body {
    padding-left: 0;
    border-left: 0;
  }

  .industry-form__card {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .industry-form__checks {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .industry-form textarea.form-field__control {
    height: 56px;
    padding-block: 14px;
  }

  .industry-form__submit {
    width: 100%;
  }
}
