/* v5 price calculator (pricing/index.php). Presentation only: the calculator's form, its script and every id / class the script uses are the real page's.
   The script finds its pieces by .step, #step1..., .priceOption, #progress1... and the progtrckr-done / progtrckr-todo classes, so none of those are renamed or
   restyled away (a step is shown and hidden by the script with display, which this file never sets on .step). Everything here is under .v5-pc, so it cannot reach
   another page. Colours and type follow the v5 hero and page sections: blue #2491eb, orange #fbb03b, ink #232122, grey #575556, tint #f5f9fd. */

.v5-pc,
.v5-pc *,
.v5-pc *::before,
.v5-pc *::after { box-sizing: border-box; }

.v5-pc {
    --pc-ink: #232122;
    --pc-gray: #575556;
    --pc-blue: #2491eb;
    --pc-orange: var(--orange-cta, #fbb03b);
    --pc-gap: 56px;   /* the space between the heading and the card, and between the card and the quotes: the same */
    background: #f5f9fd;
    padding: 0;
    color: var(--pc-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* below the card: the calculator section ends one gap under it, and the (empty) section that holds the script's hidden fields and the quotes after it add nothing more,
   so the card is one gap from the quotes, as far as it is from the heading above it */
.v5-pc.v5d-book .v5d-inner { padding-bottom: var(--pc-gap); }
.v5-pc--after { padding: 0; }
.v5d + .v5-ps--quotecards .v5-ps-inner { padding-top: 0; }

/* the calculator card, on the same tint as the hero above it (the layout of the v5 demo-request page) */
.v5-pc .fancyBorder {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 480px;
    padding: 40px 24px 8px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(35, 32, 31, 0.10);
}

/* the heading above the card (the demo-request page's .v5d-head), one gap from the card */
.v5-pc .v5d-head { margin-bottom: var(--pc-gap); }

/* ---------- progress ----------
   The labels are the page's "who" line (.v5-ps-who strong: 16px, 700, ink), and the circle on the bar is the "What's included" tick (.v5d-tick: a light blue circle with a
   blue check), a little smaller, with a white ring so the bar stops short of it. A step still to do has the circle without the check. The script only swaps the
   progtrckr-done / progtrckr-todo classes, so the circle is drawn on the :before the global styles use for the icon. */
.v5-pc ol.progtrckr { margin: 0 0 36px; padding: 0; list-style: none; }
.v5-pc ol.progtrckr li { position: relative; padding-bottom: 20px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.v5-pc ol.progtrckr li.progtrckr-done { color: var(--pc-ink); border-bottom: 4px solid var(--pc-blue); }
.v5-pc ol.progtrckr li.progtrckr-todo { color: #8a8888; border-bottom: 4px solid #e3e8ee; }
.v5-pc ol.progtrckr li:before,
.v5-pc ol.progtrckr li.progtrckr-done:before,
.v5-pc ol.progtrckr li.progtrckr-todo:before {
    content: "";
    position: absolute;
    float: none;
    left: 50%;
    bottom: -14px;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: none;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 0 0 4px #ffffff;
}
.v5-pc ol.progtrckr li.progtrckr-done:before {
    background: #e9f4fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232491eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.v5-pc ol.progtrckr li.progtrckr-todo:before { background: #f0f3f7; }

/* a step is wide enough for two answers side by side (the script shows and hides a step with display, never its width) */
.v5-pc .step.col-md-8 { width: 100%; max-width: 700px; }

/* ---------- the question ---------- */
.v5-pc .section-title-wr { padding: 20px 0 32px; }
.v5-pc .section-title-wr h3 { margin: 0; padding: 0; }

.v5-pc .v5-pc-q {
    display: block;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* not inherit: the h3 around it gets the site's older Lato from the global styles */
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--pc-ink);
}

/* ---------- the answers, and the buttons on the pages with a field (Next, Get Price): all the same button ---------- */
.v5-pc button.priceOption,
.v5-pc button.v5-pc-primary {
    display: inline-block;
    width: 300px;
    max-width: calc(100% - 20px);
    margin: 10px;
    padding: 22px 22px;
    border: 1.5px solid #dbe4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    color: var(--pc-ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.v5-pc button.priceOption:hover,
.v5-pc button.priceOption:focus,
.v5-pc button.priceOption:active,
.v5-pc button.v5-pc-primary:hover,
.v5-pc button.v5-pc-primary:focus,
.v5-pc button.v5-pc-primary:active {
    border-color: var(--pc-blue);
    background: #e9f4fd;
    color: #1a6fb8;
    box-shadow: none;
}

.v5-pc button.priceOption:focus-visible,
.v5-pc button.v5-pc-primary:focus-visible { outline: 3px solid rgba(36, 145, 235, 0.45); outline-offset: 2px; }

/* ---------- the fields (the number of admins / devices, and the email) ---------- */
.v5-pc .emailField {
    display: block;
    width: 100%;
    max-width: 440px;
    height: 54px;
    margin: 0 auto 28px;
    padding: 0 16px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: #f5f9fd;
    color: var(--pc-ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-indent: 0;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.v5-pc .emailField::placeholder { color: #8a8888; }

.v5-pc .emailField:focus {
    outline: none;
    border-color: var(--pc-blue);
    background: #ffffff;
}

.v5-pc label.input { display: block; margin: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
    .v5-pc .fancyBorder { padding: 28px 16px 4px; border-radius: 20px; }
    .v5-pc .v5-pc-q { font-size: 24px; }
}

@media (max-width: 520px) {
    .v5-pc button.priceOption,
    .v5-pc button.v5-pc-primary { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .v5-pc button.priceOption,
    .v5-pc .emailField { transition: none; }
}
