/* Practice Essentials ROI calculator — Figma node 1613:7540 */

.pe-roi {
    --pe-roi-font-primary: "Source Sans Pro", "SourceSansPro", sans-serif;
    --pe-roi-font-body: "Open Sans", sans-serif;
    --pe-roi-font-ui: "Inter", sans-serif;
    --pe-roi-font-button: "Raleway", sans-serif;
    --pe-roi-body: #1e2939;
    --pe-roi-text: #48484a;
    --pe-roi-text-muted: #4a5565;
    --pe-roi-label: #364153;
    --pe-roi-white: #fff;
    --pe-roi-blue: #1b75bc;
    --pe-roi-blue-alt: #1b7bbf;
    --pe-roi-blue-button: #1c75bb;
    --pe-roi-blue-hover: #055ada;
    --pe-roi-blue-dark: #254971;
    --pe-roi-surface: #f4f6f9;
    --pe-roi-border: #d1d5dc;
    --pe-roi-border-light: #e5e7eb;
    --pe-roi-slider-track: #e6e6e6;
    --pe-roi-input-text: rgba(10, 10, 10, 0.5);
    --pe-roi-page-pad-x: 15px;
    --pe-roi-page-pad-x-lg: 147px;
    --pe-roi-page-pad-top: 48px;
    --pe-roi-gap-hero-content: 55px;
    --pe-roi-gap-content: 60px;
    --pe-roi-gap-columns: 45px;
    --pe-roi-gap-form-sections: 30px;
    --pe-roi-gap-aside: 35px;
    --pe-roi-radius-card: 10px;
    --pe-roi-radius-input: 4px;
    --pe-roi-radius-pill: 20px;
    box-sizing: border-box;
    color: var(--pe-roi-body);
    font-family: var(--pe-roi-font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    background: var(--pe-roi-surface);
}

.pe-roi *,
.pe-roi *::before,
.pe-roi *::after {
    box-sizing: border-box;
}

/* Reset global Drake typography inside calculator */
.pe-roi h1,
.pe-roi h2,
.pe-roi h3,
.pe-roi p,
.pe-roi label,
.pe-roi button,
.pe-roi input {
    margin: 0;
    padding: 0;
    text-align: left;
    letter-spacing: normal;
}

.pe-roi button {
    font: inherit;
}

.pe-roi__shell {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--pe-roi-page-pad-top) var(--pe-roi-page-pad-x) 48px;
    display: flex;
    flex-direction: column;
    gap: var(--pe-roi-gap-hero-content);
}

@media (min-width: 1200px) {
    .pe-roi__shell {
        padding-left: var(--pe-roi-page-pad-x-lg);
        padding-right: var(--pe-roi-page-pad-x-lg);
    }
}

.pe-roi__content {
    display: flex;
    flex-direction: column;
    gap: var(--pe-roi-gap-content);
    width: 100%;
}

/* ----- Hero ----- */
.pe-roi__hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    text-align: center;
}

.pe-roi h1.pe-roi__title {
    font-family: var(--pe-roi-font-primary);
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    line-height: 64px;
    letter-spacing: -0.6px;
    color: var(--pe-roi-blue);
}

.pe-roi p.pe-roi__lede {
    font-family: var(--pe-roi-font-primary);
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-text);
}

@media (max-width: 991px) {
    .pe-roi h1.pe-roi__title {
        font-size: clamp(28px, 6vw, 48px);
        line-height: 1.25;
    }

    .pe-roi p.pe-roi__lede {
        font-size: clamp(18px, 3.5vw, 32px);
    }
}

/* ----- Summary banner ----- */
.pe-roi__summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 21px;
    background: var(--pe-roi-blue-alt);
    color: var(--pe-roi-white);
    border-radius: var(--pe-roi-radius-card);
    padding: 25px 21px;
}

@media (min-width: 992px) {
    .pe-roi__summary {
        flex-direction: row;
    }
}

.pe-roi__summary-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pe-roi p.pe-roi__summary-eyebrow {
    font-family: var(--pe-roi-font-primary);
    font-size: 32px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-white);
}

.pe-roi p.pe-roi__summary-value {
    font-family: var(--pe-roi-font-ui);
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    line-height: 48px;
    letter-spacing: 0.3516px;
    color: var(--pe-roi-white);
}

.pe-roi p.pe-roi__summary-note {
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-white);
}

.pe-roi__summary-payback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: var(--pe-roi-blue-dark);
    border-radius: 15px;
    text-align: center;
}

@media (min-width: 992px) {
    .pe-roi__summary-payback {
        flex: 0 0 431px;
        width: 431px;
        max-width: 100%;
        align-self: stretch;
    }
}

.pe-roi p.pe-roi__summary-payback-label {
    font-family: var(--pe-roi-font-body);
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    letter-spacing: -0.18px;
    color: var(--pe-roi-white);
}

.pe-roi p.pe-roi__summary-payback-value {
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-white);
}

/* ----- Two-column body ----- */
.pe-roi__body-grid {
    display: grid;
    gap: var(--pe-roi-gap-columns);
    align-items: start;
}

@media (min-width: 992px) {
    .pe-roi__body-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pe-roi__form-column {
    display: flex;
    flex-direction: column;
    gap: var(--pe-roi-gap-form-sections);
    padding: 25px 0;
}

.pe-roi__form-intro,
.pe-roi__time-intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pe-roi h2.pe-roi__section-title {
    font-family: var(--pe-roi-font-primary);
    font-size: 32px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-body);
}

.pe-roi p.pe-roi__section-text {
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-text-muted);
}

/* Preset buttons */
.pe-roi__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pe-roi button.pe-roi__preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 146px;
    height: 37px;
    padding: 0 8px;
    border-radius: var(--pe-roi-radius-pill);
    border: 2px solid var(--pe-roi-blue-button);
    background: var(--pe-roi-white);
    color: var(--pe-roi-blue-button);
    font-family: var(--pe-roi-font-button);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    line-height: normal;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pe-roi button.pe-roi__preset:hover {
    background: rgba(28, 117, 187, 0.08);
    color: var(--pe-roi-blue-button);
}

.pe-roi button.pe-roi__preset.pe-roi__preset--active,
.pe-roi button.pe-roi__preset--active {
    background: var(--pe-roi-blue-button);
    border-color: var(--pe-roi-blue-button);
    color: var(--pe-roi-white);
}

.pe-roi button.pe-roi__preset.pe-roi__preset--active:hover,
.pe-roi button.pe-roi__preset--active:hover {
    background: var(--pe-roi-blue-hover);
    border-color: var(--pe-roi-blue-hover);
    color: var(--pe-roi-white);
}

/* Form fields */
.pe-roi__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pe-roi__fields-row {
    display: grid;
    gap: 16px;
}

@media (min-width: 576px) {
    .pe-roi__fields-row {
        grid-template-columns: 1fr 1fr;
    }
}

.pe-roi__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pe-roi__field-label {
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-label);
}

.pe-roi__input-wrap {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--pe-roi-border);
    border-radius: var(--pe-roi-radius-input);
    background: var(--pe-roi-white);
}

.pe-roi__input-wrap:focus-within {
    border-color: var(--pe-roi-blue);
    box-shadow: 0 0 0 2px rgba(27, 117, 188, 0.2);
}

.pe-roi__input-prefix {
    margin-right: 2px;
    font-family: var(--pe-roi-font-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.1504px;
    color: var(--pe-roi-input-text);
}

.pe-roi__input {
    width: 100%;
    min-width: 0;
    height: auto;
    border: none;
    background: transparent;
    font-family: var(--pe-roi-font-ui);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    letter-spacing: -0.1504px;
    color: var(--pe-roi-body);
}

.pe-roi__input:focus {
    outline: none;
}

/* Sliders */
.pe-roi__time-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pe-roi__sliders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pe-roi__slider {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pe-roi__slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pe-roi__slider-name {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-label);
}

.pe-roi__slider-badge {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 2px solid var(--pe-roi-text-muted);
    border-radius: 26px;
    background: var(--pe-roi-slider-track);
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-label);
    white-space: nowrap;
}

.pe-roi__range {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 8px;
    border-radius: 22px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: var(--pe-roi-slider-track);
    accent-color: var(--pe-roi-blue);
}

.pe-roi__range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 22px;
    background: var(--pe-roi-slider-track);
}

.pe-roi__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--pe-roi-blue);
    border: 2px solid var(--pe-roi-white);
    box-shadow: 0 0 0 1px rgba(74, 85, 101, 0.35);
}

.pe-roi__range::-moz-range-track {
    height: 4px;
    border-radius: 22px;
    background: var(--pe-roi-slider-track);
}

.pe-roi__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pe-roi-blue);
    border: 2px solid var(--pe-roi-white);
    box-shadow: 0 0 0 1px rgba(74, 85, 101, 0.35);
}

/* Aside */
@media (min-width: 1200px) {
    .pe-roi__aside {
        position: -webkit-sticky;
        position: sticky;
        top: 24px;
    }
}

.pe-roi__stack {
    display: flex;
    flex-direction: column;
    gap: var(--pe-roi-gap-aside);
}

.pe-roi__card {
    background: var(--pe-roi-white);
    border-radius: var(--pe-roi-radius-card);
}

.pe-roi__card--results {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 25px;
}

.pe-roi__card--cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 23px;
    border: 1px solid var(--pe-roi-border-light);
}

.pe-roi h2.pe-roi__results-title,
.pe-roi h2.pe-roi__cta-title {
    font-family: var(--pe-roi-font-primary);
    font-size: 32px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-body);
}

.pe-roi__result-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pe-roi p.pe-roi__result-label,
.pe-roi p.pe-roi__result-foot,
.pe-roi p.pe-roi__metric-label {
    font-family: var(--pe-roi-font-ui);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    letter-spacing: -0.1504px;
    color: var(--pe-roi-text-muted);
}

.pe-roi p.pe-roi__result-label--accent {
    font-weight: 700;
    color: var(--pe-roi-blue);
}

.pe-roi p.pe-roi__result-value {
    font-family: var(--pe-roi-font-ui);
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0.0703px;
    color: var(--pe-roi-body);
}

.pe-roi p.pe-roi__result-value--accent {
    font-weight: 700;
    color: var(--pe-roi-blue);
}

.pe-roi p.pe-roi__result-copy {
    font-family: var(--pe-roi-font-ui);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    letter-spacing: -0.3125px;
    color: var(--pe-roi-label);
}

.pe-roi__divider {
    width: 100%;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--pe-roi-border-light);
}

.pe-roi__metrics {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pe-roi__metric {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.pe-roi p.pe-roi__metric-value {
    font-family: var(--pe-roi-font-ui);
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 20px;
    letter-spacing: -0.1504px;
    color: var(--pe-roi-body);
}

.pe-roi p.pe-roi__cta-lede {
    font-family: var(--pe-roi-font-body);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-text-muted);
}

.pe-roi__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pe-roi a.pe-roi__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 146px;
    height: 37px;
    padding: 0 8px;
    border-radius: var(--pe-roi-radius-pill);
    border: 2px solid transparent;
    font-family: var(--pe-roi-font-button);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pe-roi a.pe-roi__btn:hover,
.pe-roi a.pe-roi__btn:focus {
    text-decoration: none;
}

.pe-roi a.pe-roi__btn--primary {
    background: var(--pe-roi-blue-button);
    border-color: var(--pe-roi-blue-button);
    color: var(--pe-roi-white);
}

.pe-roi a.pe-roi__btn--primary:hover {
    background: var(--pe-roi-blue-hover);
    border-color: var(--pe-roi-blue-hover);
    color: var(--pe-roi-white);
}

.pe-roi a.pe-roi__btn--ghost {
    background: var(--pe-roi-white);
    border-color: var(--pe-roi-blue-button);
    color: var(--pe-roi-blue-button);
}

.pe-roi a.pe-roi__btn--ghost:hover {
    background: rgba(28, 117, 187, 0.08);
    color: var(--pe-roi-blue-button);
}

.pe-roi p.pe-roi__disclaimer {
    font-family: var(--pe-roi-font-primary);
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: var(--pe-roi-text);
}
