﻿/* The quotation form (Pages/Quotations/Quotation6.aspx). */

p {
  white-space: pre-wrap;
}

/* The form wears the quote's own branding (the email and the PDF it produces):
   Denaploy navy, the dark hero, the four brand colours as a strip, numbered
   section headings and the gold call to action. Everything is kept inside .qf so
   none of it reaches the site's header or footer. */
.qf {
  font-size: 15px;
  line-height: 1.5;
  color: #2a2a2a;
  background-color: #f6f5fb;
  padding-bottom: 24px;
}

  /* The site's stylesheet sets every nested element to 0.75rem ("* *"), so a size
     set on .qf is not inherited and has to be given again. */
  .qf p {
    font-size: 15px;
  }

    .qf p a,
    .qf p strong {
      font-size: inherit;
    }

.qf-hero {
  background-color: #1b1440;
  background-image: linear-gradient(135deg, #221a55 0%, #041443 100%);
  color: #ffffff;
  padding: 32px 0 30px 0;
}

  .qf-hero .container {
    padding-left: 39px;
    padding-right: 39px;
  }

/* What has changed, first thing on the page, as the superadmins asked. */
.qf-new {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 10px 16px;
  border: 1px solid rgba(203, 192, 249, 0.35);
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #e6e1ff;
  font-size: 14px;
}

.qf-new-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 9px;
  background-color: #edb249;
  color: #1b1440;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 3px;
  vertical-align: 1px;
}

.qf-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cbc0f9;
}

.qf-title {
  margin: 6px 0 2px 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.qf-subtitle {
  margin: 0 0 14px 0;
  font-size: 18px;
  color: #cbc0f9;
}

.qf-intro {
  max-width: 62ch;
  margin: 0;
  color: #dcd6fb;
}

.qf-strip {
  display: flex;
  height: 6px;
}

  .qf-strip span:nth-child(1) { flex: 52; background-color: #3d4391; }
  .qf-strip span:nth-child(2) { flex: 16; background-color: #e80042; }
  .qf-strip span:nth-child(3) { flex: 16; background-color: #edb249; }
  .qf-strip span:nth-child(4) { flex: 16; background-color: #cbc0f9; }

@media (max-width: 575px) {
  .qf-hero .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .qf-title {
    font-size: 26px;
  }
}

/* Each section of the questionnaire is a card, so a long form reads as a handful
   of steps rather than one unbroken column of inputs. */
.quote-section {
  background-color: #fff;
  border: 1px solid #e4e2f3;
  padding: 24px 28px 8px 28px;
  box-shadow: 0 1px 2px rgba(27, 20, 64, 0.05);
}

/* A section heading as the quote's PDF has them: the number in a navy square,
   the title beside it, a navy rule under both. */
.qf-section-title {
  display: flex;
  align-items: center;
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #3d4391;
  font-size: 20px;
  line-height: 1.25;
  font-weight: bold;
  color: #1f1147;
}

.qf-num {
  flex: 0 0 32px;
  height: 32px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #3d4391;
  color: #ffffff;
  font-size: 16px;
}

  .quote-section .form-group {
    margin-bottom: 1.5rem;
  }

  /* A question's own label has to win against the sentence explaining it.
     An asp:Label with nothing to associate itself with renders as a span, so
     this goes by the class rather than by the tag. */
  .quote-section .form-group > .font-weight-bold {
    margin-bottom: 2px;
    color: #1f1147;
    font-size: 15px;
  }

  .quote-section .text-danger {
    color: #e80042 !important;
  }

/* What a section or a question is for. Said quietly, under the thing it explains,
   and kept to a readable line length instead of three quarters of whatever the
   column happens to be. */
.quote-lead,
.quote-help {
  max-width: 60ch;
  color: #6b6b80;
  font-size: 14px;
}

.quote-lead {
  margin-bottom: 16px;
}

.quote-help {
  margin-bottom: 6px;
}

.qf .form-control {
  border-color: #cfcce6;
  border-radius: 3px;
  color: #1f1147;
}

  .qf .form-control:focus {
    border-color: #3d4391;
    box-shadow: 0 0 0 0.2rem rgba(61, 67, 145, 0.18);
  }

.qf .input-group-text {
  background-color: #f6f5fb;
  border-color: #cfcce6;
  color: #3d4391;
}

/* Adding and removing rows of a repeated answer (handovers, technical elements). */
.qf-add {
  color: #3d4391;
  background-color: #ffffff;
  border: 1px solid #3d4391;
}

  .qf-add:hover {
    color: #ffffff;
    background-color: #3d4391;
  }

.qf-remove {
  color: #e80042;
  background-color: #ffffff;
  border: 1px solid #e80042;
}

  .qf-remove:hover {
    color: #ffffff;
    background-color: #e80042;
  }

/* Alongside the questions on a wide screen, where it follows the customer down
   the page; above them on a phone, where it would otherwise end up below the
   submit button, and where pinning it would eat the screen. */
@media (min-width: 992px) {
  .quote-aside {
    position: sticky;
    top: 20px;
  }
}

.qf .quote-aside {
  background-color: #ffffff;
  border-left: 4px solid #e80042;
}

  .qf .quote-aside h5 {
    color: #1f1147;
    font-size: 17px;
  }

  .qf .quote-aside a {
    color: #3d4391;
    font-weight: bold;
  }

.qf .btn-outline-danger {
  color: #e80042;
  border-color: #e80042;
}

  .qf .btn-outline-danger:hover {
    color: #ffffff;
    background-color: #e80042;
  }

/* The send step: dark, like the "next step" band of the quote email, with the
   same gold button. */
.qf-submit {
  background-color: #1b1440;
  background-image: linear-gradient(135deg, #221a55 0%, #041443 100%);
  border: none;
  color: #dcd6fb;
  padding: 28px;
}

  .qf-submit p {
    color: #dcd6fb;
    font-weight: normal !important;
  }

.qf-send,
.qf-send:focus {
  background-color: #edb249;
  border-color: #edb249;
  color: #1b1440;
  font-weight: bold;
  letter-spacing: 0.3px;
  white-space: normal;
}

  .qf-send:hover {
    background-color: #f3c977;
    border-color: #f3c977;
    color: #1b1440;
  }

/* The options of a question. The selected one is navy, which is right for a yes
   and for the questions that are a straight choice between several things. The
   service questions are No / Yes / Maybe, and a maybe is not a yes: it is listed
   on the quote but never priced, so it must not read as one at a glance. It takes
   the gold of the quote's MAYBE tag; a no is grey. */
.tfr {
  background-color: #ffffff;
  border-color: #cfcce6;
  color: #3d4391;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

  .tfr:hover {
    background-color: #f6f5fb;
    color: #1f1147;
  }

.tfr.active {
  background-color: #3d4391 !important;
  border-color: #3d4391 !important;
  color: #fff !important;
}

.tfr.opt-no.active {
  background-color: #6b6b80 !important;
  border-color: #6b6b80 !important;
}

.tfr.opt-maybe.active {
  background-color: #edb249 !important;
  border-color: #edb249 !important;
  color: #1b1440 !important;
}

/* An answer another answer has decided. Left visible and still posted, but not
   clickable, so it cannot be set back to something the quote would reject. */
.qheld {
  pointer-events: none;
}

  .qheld .btn {
    opacity: 0.65;
  }

.bg-highlight {
  background-color: #f7f7f7;
}

.preload {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.3);
  z-index: 9999;
  cursor: wait;
  background: black url('/_Images/uploadinggfx.gif') center center no-repeat;
  opacity: 0.5;
}

.preloadContent {
  width: 300px;
  height: 100px;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  color: blue;
  font-size: 40pt;
  margin: -70px 0 0 -170px;
  z-index: 99999;
  text-align: center;
}

.help-icon {
  margin-left: 5px;
  color: #2E3383;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.help-icon .tooltip-text {
  visibility: hidden;
  background-color: #2E3383;
  color: #fff;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  max-width: 300px;
  min-width: 350px;
  z-index: 1000;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 2px solid #4f83cc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease-in-out;
}

.tooltip-text ul {
  padding-left: 18px;
  list-style-type: disc;
}

.tooltip-text ul ul {
  padding-left: 20px;
  list-style-type: circle;
}

.help-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.help-icon::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #1e3a8a transparent;
  visibility: hidden;
}

.help-icon:hover::after {
  visibility: visible;
}
