/*
 * Business setup cost calculator: the four-step wizard, the dialog that the slider
 * and home page buttons open it in, and the buttons themselves.
 * Theme colours: navy #1b3053, cyan #45c4e9.
 */

[hidden] { display: none !important; }

.cost-wizard {
    background: #ffffff;
    color: #1b3053;
    box-shadow: 0 20px 60px rgba(27, 48, 83, 0.12);
    text-align: left;
}
.cost-wizard * { box-sizing: border-box; }

/* Step bar */
.cost-wizard__steps { display: flex; margin: 0; padding: 0; list-style: none; background: #1b3053; }
.cost-wizard__step {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 16px 18px;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
}
.cost-wizard__step:not(:last-child)::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    min-width: 12px;
    background: rgba(255, 255, 255, 0.22);
}
.cost-wizard__num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    line-height: 28px;
    text-align: center;
    font-size: 14px;
}
.cost-wizard__step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cost-wizard__step.is-active { color: #ffffff; }
.cost-wizard__step.is-active .cost-wizard__num { background: #ffffff; border-color: #ffffff; color: #1b3053; font-weight: 600; }
.cost-wizard__step.is-done { color: rgba(255, 255, 255, 0.85); }
.cost-wizard__step.is-done .cost-wizard__num { background: #45c4e9; border-color: #45c4e9; color: #1b3053; font-size: 0; }
.cost-wizard__step.is-done .cost-wizard__num::after { content: '\f00c'; font-family: FontAwesome; font-size: 13px; }
.cost-wizard__step.is-done::after { background: #45c4e9; }

/* Panels */
.cost-wizard__panel { display: none; padding: 40px; }
.cost-wizard__panel.is-active { display: block; }
.cost-wizard__title { margin: 0 0 8px; font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 600; color: #1b3053; }
.cost-wizard__lead { margin: 0 0 25px; color: #6b7280; font-size: 15px; line-height: 26px; }
.cost-wizard__subtitle { margin: 0 0 14px; font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: #1b3053; }
.cost-wizard__field { margin-bottom: 22px; min-width: 0; }
.cost-wizard__label { display: block; margin-bottom: 9px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: #1b3053; }
.cost-wizard__hint { margin: 10px 0 0; color: #6b7280; font-size: 13px; }
.cost-wizard__row { display: flex; flex-wrap: wrap; gap: 0 24px; }
.cost-wizard__row > .cost-wizard__field { flex: 1 1 260px; }
.cost-wizard__row--top { align-items: flex-start; }

/* Step 1 - activities */
.cost-wizard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cost-wizard__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 0;
    border-radius: 30px;
    background: #1b3053;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.cost-wizard__chip i { font-size: 12px; opacity: 0.8; }
.cost-wizard__chip:hover { background: #45c4e9; color: #1b3053; }
.cost-wizard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cost-wizard__check {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 15px 16px;
    border: 1px solid #e3e7ec;
    background: #ffffff;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.cost-wizard__check:hover { border-color: #45c4e9; }
.cost-wizard__check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cost-wizard__check-label { font-size: 15px; color: #1b3053; }
.cost-wizard__box { flex: 0 0 auto; position: relative; width: 18px; height: 18px; border: 1px solid #cdd4dc; background: #ffffff; }
.cost-wizard__check.is-selected { border-color: #45c4e9; background: #f3fbfe; }
.cost-wizard__check.is-selected .cost-wizard__box { border-color: #45c4e9; background: #45c4e9; }
.cost-wizard__check.is-selected .cost-wizard__box::after {
    content: '\f00c';
    position: absolute;
    top: -1px;
    left: 2px;
    font-family: FontAwesome;
    font-size: 12px;
    color: #1b3053;
}

/* Step 2 - tiles, pills and fields */
.cost-wizard__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cost-wizard__tiles--sm { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cost-wizard__tile {
    display: block;
    padding: 15px 16px;
    border: 1px solid #e3e7ec;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.cost-wizard__tile strong { display: block; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #1b3053; }
.cost-wizard__tile small { display: block; margin-top: 5px; color: #6b7280; font-size: 13px; line-height: 20px; }
.cost-wizard__tile:hover { border-color: #45c4e9; }
.cost-wizard__tile.is-selected { border-color: #45c4e9; background: #f3fbfe; box-shadow: inset 0 0 0 1px #45c4e9; }
.cost-wizard__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cost-wizard__pill {
    min-width: 52px;
    padding: 11px 16px;
    border: 1px solid #e3e7ec;
    background: #ffffff;
    color: #1b3053;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.cost-wizard__pill:hover { border-color: #45c4e9; }
.cost-wizard__pill.is-selected { background: #1b3053; border-color: #1b3053; color: #ffffff; }
.cost-wizard__pill.is-disabled { opacity: 0.4; cursor: not-allowed; }
.cost-wizard__select, .cost-wizard__input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e3e7ec;
    background: #ffffff;
    color: #1b3053;
    font-size: 15px;
}
.cost-wizard__select:focus, .cost-wizard__input:focus { border-color: #45c4e9; outline: none; }
.cost-wizard__hp { position: absolute; left: -9999px; }

/* Buttons */
.cost-wizard__actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #eef1f4; }
.cost-wizard__btn {
    display: inline-block;
    padding: 14px 30px;
    border: 0;
    background: #1b3053;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.cost-wizard__btn:hover, .cost-wizard__btn:focus { background: #45c4e9; color: #1b3053; text-decoration: none; }
.cost-wizard__btn[disabled] { opacity: 0.6; cursor: default; }
.cost-wizard__btn i { margin-left: 6px; }
.cost-wizard__btn--wide { flex: 1 1 260px; text-align: center; }
.cost-wizard__btn--wide i { margin: 0 8px 0 0; }
.cost-wizard__link { padding: 10px 0; border: 0; background: none; color: #6b7280; font-size: 15px; cursor: pointer; }
.cost-wizard__link:hover { color: #1b3053; }
.cost-wizard__link i { margin-right: 6px; }
.cost-wizard__error { margin: 18px 0 0; padding: 11px 15px; border-left: 3px solid #dc3232; background: #fdecea; color: #b3261e; font-size: 14px; }

/* Step 4 - the estimate */
.cost-wizard__result { padding: 34px 25px; background: linear-gradient(135deg, #1b3053 0%, #244073 100%); text-align: center; }
.cost-wizard__eyebrow { display: block; margin-bottom: 10px; color: #45c4e9; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.cost-wizard__was { display: block; color: rgba(255, 255, 255, 0.55); font-size: 17px; }
.cost-wizard__total { display: block; margin: 4px 0 12px; color: #ffffff; font-family: 'Poppins', sans-serif; font-size: 38px; font-weight: 700; line-height: 1.2; }
.cost-wizard__save { display: inline-block; padding: 6px 16px; border-radius: 30px; background: #45c4e9; color: #1b3053; font-size: 13px; font-weight: 600; }
.cost-wizard__basis { display: block; margin-top: 14px; color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.cost-wizard__lines { margin: 0; padding: 0; list-style: none; }
.cost-wizard__lines li { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #eef1f4; font-size: 15px; }
.cost-wizard__lines b { color: #1b3053; white-space: nowrap; }
.cost-wizard__included { margin: 0; padding: 0; list-style: none; }
.cost-wizard__included li { padding: 8px 0; font-size: 15px; color: #465166; }
.cost-wizard__included i { margin-right: 9px; color: #45c4e9; }
.cost-wizard__summary { margin-top: 10px; padding: 22px 24px; background: #f6f8fa; }
.cost-wizard__summary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin: 0; }
.cost-wizard__summary dt { margin-bottom: 3px; color: #6b7280; font-size: 13px; font-weight: 400; }
.cost-wizard__summary dd { margin: 0; color: #1b3053; font-size: 15px; font-weight: 600; word-break: break-word; }
.cost-wizard__sent { margin: 18px 0 0; padding: 11px 15px; border-left: 3px solid #46b450; background: #f1f9f1; color: #2f7a36; font-size: 14px; }
.cost-wizard__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 25px; }
.cost-wizard__note { margin: 18px 0 0; color: #8a93a2; font-size: 13px; line-height: 20px; }

/* The dialog */
.cost-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; overflow-y: auto; padding: 40px 20px; }
.cost-modal__backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 20, 35, 0.78); }
.cost-modal__dialog { position: relative; max-width: 1020px; margin: 0 auto; outline: none; }
.cost-modal__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #1b3053;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cost-modal__close:hover { background: #45c4e9; }
body.cost-modal-open { overflow: hidden; }

/* Entry points */
.hero-btn--calc { font: inherit; cursor: pointer; background: #ffffff; border-color: #ffffff; color: #1b3053; }
.hero-btn--calc:hover { background: #45c4e9; border-color: #45c4e9; color: #1b3053; }
.hero-btn--calc i { margin-right: 8px; }
.cost-calculator__open { margin-top: 28px; }
.cost-calculator__open .thm-btn { border: 0; cursor: pointer; }
.cost-calculator__open .thm-btn i { margin-right: 8px; }
.cost-calculator__open span { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.cost-wizard-page__lead { max-width: 760px; margin: 15px auto 0; }
.cost-wizard-page__noscript { margin-top: 25px; text-align: center; }

@media (max-width: 991px) {
    .cost-wizard__panel { padding: 30px 22px; }
    .cost-wizard__title { font-size: 24px; }
    .cost-wizard__total { font-size: 30px; }
    .cost-modal { padding: 20px 14px; }
    .cost-modal__close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 16px; }
}

@media (max-width: 767px) {
    .cost-wizard__step { padding: 13px 10px; font-size: 13px; }
    .cost-wizard__step-label { display: none; }
    .cost-wizard__step.is-active .cost-wizard__step-label { display: inline; }
    .cost-wizard__panel { padding: 24px 16px; }
    .cost-wizard__grid, .cost-wizard__tiles, .cost-wizard__tiles--sm { grid-template-columns: 1fr; }
    .cost-wizard__actions { gap: 10px; }
    .cost-wizard__btn { padding: 13px 20px; font-size: 14px; }
    .cost-wizard__pill { min-width: 44px; padding: 10px 12px; font-size: 14px; }
}
