.dc-investment-calculator,
.dc-investment-calculator *,
.dc-investment-calculator *::before,
.dc-investment-calculator *::after {
    box-sizing: border-box;
}

.dc-investment-calculator {
    --dc-calc-accent: #ff9600;
    --dc-calc-muted: #8b8b8b;
    --dc-calc-track: #d9d9d9;
    --dc-range-height: 8px;
    --dc-range-thumb: 16px;
    --dc-header-gap: 16px;
    --dc-field-gap: 28px;
    --dc-cta-top: #feca01;
    --dc-cta-bottom: #ff9600;
    --dc-cta-hover-top: #feca01;
    --dc-cta-hover-bottom: #ff9600;
    --dc-reveal-distance: 24px;

    width: 100%;
    margin: 0;
    padding: 120px 24px;
    overflow: clip;
}

.dc-investment-calculator__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.dc-investment-calculator__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--dc-header-gap);
    width: 100%;
    margin: 0 0 48px;
}

.dc-investment-calculator__eyebrow,
.dc-investment-calculator__title,
.dc-investment-calculator__description,
.dc-investment-calculator__disclaimer {
    margin: 0;
}

.dc-investment-calculator__eyebrow {
    color: #ff9600;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.dc-investment-calculator__title {
    max-width: 100%;
    color: #222;
    font-size: clamp(30px, 2.1vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.dc-investment-calculator__description {
    max-width: 1040px;
    color: #373d4e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.dc-investment-calculator__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
    width: 100%;
}

.dc-investment-calculator__input-card,
.dc-investment-calculator__result-card {
    min-width: 0;
    min-height: 400px;
    padding: 24px;
    border-radius: 24px;
}

.dc-investment-calculator__input-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dc-investment-calculator__field + .dc-investment-calculator__field {
    margin-top: var(--dc-field-gap);
}

.dc-investment-calculator__field-head,
.dc-investment-calculator__inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.dc-investment-calculator__field-label {
    min-width: 0;
    color: #222;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.dc-investment-calculator__field-value {
    flex: 0 0 auto;
    color: var(--dc-calc-accent);
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.dc-investment-calculator__range {
    --dc-range-progress: 0%;
    display: block;
    width: 100%;
    height: var(--dc-range-thumb);
    margin: 18px 0 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.dc-investment-calculator__range::-webkit-slider-runnable-track {
    width: 100%;
    height: var(--dc-range-height);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--dc-calc-accent) 0,
        var(--dc-calc-accent) var(--dc-range-progress),
        var(--dc-calc-track) var(--dc-range-progress),
        var(--dc-calc-track) 100%
    );
}

.dc-investment-calculator__range::-moz-range-track {
    width: 100%;
    height: var(--dc-range-height);
    border: 0;
    border-radius: 999px;
    background: var(--dc-calc-track);
}

.dc-investment-calculator__range::-moz-range-progress {
    height: var(--dc-range-height);
    border: 0;
    border-radius: 999px;
    background: var(--dc-calc-accent);
}

.dc-investment-calculator__range::-webkit-slider-thumb {
    width: var(--dc-range-thumb);
    height: var(--dc-range-thumb);
    margin-top: calc((var(--dc-range-height) - var(--dc-range-thumb)) / 2);
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 50%;
    background: var(--dc-calc-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.dc-investment-calculator__range::-moz-range-thumb {
    width: var(--dc-range-thumb);
    height: var(--dc-range-thumb);
    border: 0;
    border-radius: 50%;
    background: var(--dc-calc-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.dc-investment-calculator__range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(255, 150, 0, 0.2);
}

.dc-investment-calculator__range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(255, 150, 0, 0.2);
}

.dc-investment-calculator__range-limits {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    color: var(--dc-calc-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.dc-investment-calculator__select-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    height: 44px;
}

.dc-investment-calculator__select {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 44px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.dc-investment-calculator__select:focus-visible {
    border-color: var(--dc-calc-accent);
    box-shadow: 0 0 0 3px rgba(255, 150, 0, 0.12);
}

.dc-investment-calculator__select-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    color: #b8b8b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.dc-investment-calculator__interest {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 24px;
}

.dc-investment-calculator__interest-label {
    color: #6e6e6e;
    font-size: 16px;
    font-style: italic;
    line-height: 1.35;
}

.dc-investment-calculator__interest-value {
    color: var(--dc-calc-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.dc-investment-calculator__result-card {
    display: flex;
    flex-direction: column;
    background: rgba(254, 202, 1, 0.1);
    border: 1px solid #efeacd;
}

.dc-investment-calculator__result-head {
    padding-bottom: 16px;
    border-bottom: 1px solid #efeacd;
}

.dc-investment-calculator__result-kicker {
    margin-bottom: 4px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.dc-investment-calculator__monthly {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.dc-investment-calculator__monthly-value {
    color: var(--dc-calc-accent);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.dc-investment-calculator__monthly-unit {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.dc-investment-calculator__summary {
    width: 100%;
}

.dc-investment-calculator__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
    border-bottom: 1px solid #efeacd;
}

.dc-investment-calculator__summary-label {
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.dc-investment-calculator__summary-value {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.dc-investment-calculator__cta,
.dc-investment-calculator__cta:visited {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin: auto 0 0;
    padding: 0 56px;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--dc-cta-top), var(--dc-cta-bottom));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, box-shadow 180ms ease;
}

.dc-investment-calculator__cta:hover,
.dc-investment-calculator__cta:focus-visible,
.dc-investment-calculator__cta:active {
    background: linear-gradient(180deg, var(--dc-cta-hover-top), var(--dc-cta-hover-bottom));
    text-decoration: none;
}

.dc-investment-calculator__cta:focus-visible {
    outline: 3px solid rgba(255, 150, 0, 0.25);
    outline-offset: 3px;
}

.dc-investment-calculator__cta-icon {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--dc-calc-accent);
    transform: translateY(-50%);
    pointer-events: none;
}

.dc-investment-calculator__cta-icon svg,
.dc-investment-calculator__cta-icon i {
    display: block;
    width: 45%;
    height: 45%;
    font-size: 18px;
}

.dc-investment-calculator__disclaimer {
    margin-top: 16px;
    color: #6e6e6e;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
}

.dc-investment-calculator[data-dc-motion="enabled"] [data-dc-reveal] {
    opacity: 0;
    transform: translate3d(0, var(--dc-reveal-distance), 0);
    transition-property: opacity, transform;
    transition-duration: var(--dc-reveal-duration, 650ms);
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--dc-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.dc-investment-calculator[data-dc-motion="enabled"].dc-is-visible [data-dc-reveal] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.dc-investment-calculator__result-card.dc-is-updating .dc-investment-calculator__monthly-value,
.dc-investment-calculator__result-card.dc-is-updating .dc-investment-calculator__summary-value {
    opacity: 0.45;
    transform: translateY(2px);
}

.dc-investment-calculator__monthly-value,
.dc-investment-calculator__summary-value {
    transition: opacity var(--dc-result-duration, 180ms) ease, transform var(--dc-result-duration, 180ms) ease;
}

@media (max-width: 1024px) {
    .dc-investment-calculator {
        padding: 80px 24px;
    }

    .dc-investment-calculator__title {
        font-size: clamp(30px, 4vw, 38px);
    }

    .dc-investment-calculator__grid {
        gap: 24px;
    }

    .dc-investment-calculator__input-card,
    .dc-investment-calculator__result-card {
        min-height: 0;
    }

    .dc-investment-calculator__field-label {
        font-size: 18px;
    }

    .dc-investment-calculator__field-value {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .dc-investment-calculator {
        padding: 56px 16px;
        overflow: hidden;
    }

    .dc-investment-calculator__header {
        margin-bottom: 32px;
    }

    .dc-investment-calculator__eyebrow {
        font-size: 15px;
    }

    .dc-investment-calculator__title {
        font-size: clamp(28px, 9vw, 34px);
        line-height: 1.12;
    }

    .dc-investment-calculator__description {
        font-size: 15px;
    }

    .dc-investment-calculator__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .dc-investment-calculator__input-card,
    .dc-investment-calculator__result-card {
        min-height: 0;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .dc-investment-calculator__field-head {
        align-items: flex-start;
        gap: 12px;
    }

    .dc-investment-calculator__inline-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dc-investment-calculator__field-label {
        font-size: 17px;
    }

    .dc-investment-calculator__field-value {
        max-width: 55%;
        font-size: 17px;
        text-align: right;
        white-space: normal;
    }

    .dc-investment-calculator__select-wrap {
        width: 100%;
    }

    .dc-investment-calculator__range-limits {
        font-size: 12px;
    }

    .dc-investment-calculator__interest {
        margin-top: 24px;
        padding-top: 0;
    }

    .dc-investment-calculator__monthly {
        flex-wrap: wrap;
    }

    .dc-investment-calculator__monthly-value {
        font-size: 30px;
    }

    .dc-investment-calculator__summary-row {
        gap: 12px;
    }

    .dc-investment-calculator__summary-label,
    .dc-investment-calculator__summary-value {
        font-size: 13px;
    }

    .dc-investment-calculator__cta,
    .dc-investment-calculator__cta:visited {
        margin-top: 20px;
        padding-left: 48px;
        padding-right: 48px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dc-investment-calculator[data-dc-motion="enabled"] [data-dc-reveal],
    .dc-investment-calculator__monthly-value,
    .dc-investment-calculator__summary-value,
    .dc-investment-calculator__cta {
        transition: none !important;
        animation: none !important;
    }

    .dc-investment-calculator[data-dc-motion="enabled"] [data-dc-reveal] {
        opacity: 1;
        transform: none;
    }
}
