.pfs-wrap {
    --pfs-ink: #16243a;
    --pfs-muted: #5e6a7e;
    --pfs-line: #dbe4eb;
    --pfs-pale: #f3fafb;
    --pfs-main: #00a9b7;
    --pfs-main-dark: #007f8d;
    --pfs-accent: #ff5b5f;
    max-width: 760px;
    margin: 32px auto;
    border: 1px solid var(--pfs-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(22, 36, 58, .1);
    color: var(--pfs-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    overflow: hidden;
}

.pfs-wrap * {
    box-sizing: border-box;
}

.pfs-header {
    padding: 38px 34px 30px;
    background: linear-gradient(135deg, #e9fbfd, #fff 65%);
    text-align: center;
}

.pfs-eyebrow {
    display: inline-flex;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--pfs-main);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.pfs-title {
    margin: 14px 0 8px;
    color: var(--pfs-ink);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.4;
}

.pfs-lead {
    margin: 0;
    color: var(--pfs-muted);
    font-size: 15px;
    line-height: 1.8;
}

.pfs-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px 34px 0;
}

.pfs-progress span {
    height: 5px;
    border-radius: 999px;
    background: #e5ebef;
    transition: background .25s ease;
}

.pfs-progress span.is-active {
    background: var(--pfs-main);
}

.pfs-step,
.pfs-result {
    padding: 26px 34px 36px;
}

.pfs-step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
}

.pfs-step-label > span {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--pfs-main);
    color: #fff;
    font-size: 15px;
}

.pfs-choice-grid {
    display: grid;
    gap: 10px;
}

.pfs-gb-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pfs-style-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pfs-choice {
    min-height: 54px;
    padding: 12px 10px;
    border: 1px solid var(--pfs-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pfs-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: 1.4;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pfs-choice:hover,
.pfs-choice:focus-visible {
    border-color: var(--pfs-main);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 169, 183, .12);
    transform: translateY(-1px);
}

.pfs-choice.is-selected {
    border-color: var(--pfs-main);
    background: var(--pfs-pale);
    color: var(--pfs-main-dark);
    box-shadow: inset 0 0 0 1px var(--pfs-main);
}

.pfs-choice-card {
    min-height: 116px;
    text-align: left;
}

.pfs-choice-card strong,
.pfs-choice-card small {
    display: block;
}

.pfs-choice-card strong {
    margin-bottom: 8px;
    font-size: 16px;
}

.pfs-choice-card small {
    color: var(--pfs-muted);
    font-size: 12px;
    font-weight: 400;
}

.pfs-hint {
    margin: 14px 0 0;
    color: var(--pfs-muted);
    font-size: 12px;
}

.pfs-field {
    display: block;
    margin-bottom: 18px;
}

.pfs-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.pfs-field select,
.pfs-field input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--pfs-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pfs-ink);
    font: inherit;
}

.pfs-field select {
    padding: 0 42px 0 13px;
}

.pfs-field input {
    padding: 0 70px 0 13px;
}

.pfs-field select:focus,
.pfs-field input:focus {
    border-color: var(--pfs-main);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 169, 183, .12);
}

.pfs-field select:disabled,
.pfs-check input:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.pfs-price-input {
    position: relative;
}

.pfs-price-input span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--pfs-muted);
    transform: translateY(-50%);
}

.pfs-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 20px;
    padding: 13px;
    border-radius: 10px;
    background: #f7f9fa;
    cursor: pointer;
    font-size: 14px;
}

.pfs-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--pfs-main);
}

.pfs-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
}

.pfs-back,
.pfs-restart {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--pfs-muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
}

.pfs-calculate,
.pfs-cta {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border: 0;
    border-radius: 12px;
    background: var(--pfs-accent);
    box-shadow: 0 7px 16px rgba(255, 91, 95, .24);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.pfs-calculate:hover,
.pfs-cta:hover {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}

.pfs-result-head {
    margin-bottom: 20px;
    text-align: center;
}

.pfs-result-head span {
    color: var(--pfs-main-dark);
    font-size: 12px;
    font-weight: 700;
}

.pfs-result-head h3 {
    margin: 4px 0 0;
    font-size: 25px;
}

.pfs-primary-result {
    position: relative;
    padding: 26px;
    border: 2px solid var(--pfs-main);
    border-radius: 16px;
    background: linear-gradient(145deg, #f0fcfd, #fff);
    text-align: center;
}

.pfs-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pfs-main);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.pfs-primary-result h4 {
    margin: 12px 0 4px;
    font-size: 21px;
    line-height: 1.5;
}

.pfs-result-capacity {
    margin: 0;
    color: var(--pfs-muted);
    font-size: 13px;
}

.pfs-result-price {
    margin: 18px 0 4px;
}

.pfs-result-price small,
.pfs-result-price strong {
    display: block;
}

.pfs-result-price small {
    color: var(--pfs-muted);
    font-size: 12px;
}

.pfs-result-price strong {
    color: var(--pfs-accent);
    font-size: 38px;
    line-height: 1.3;
}

.pfs-upfront {
    margin: 4px 0 0;
    color: var(--pfs-muted);
    font-size: 12px;
}

.pfs-cost-breakdown,
.pfs-alternatives {
    margin-top: 24px;
}

.pfs-cost-breakdown h4,
.pfs-alternatives h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.pfs-cost-breakdown ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pfs-line);
    list-style: none;
}

.pfs-cost-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 11px 2px;
    border-bottom: 1px solid var(--pfs-line);
    font-size: 14px;
}

.pfs-breakdown-total {
    font-size: 16px !important;
}

.pfs-saving {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #fff1f1;
    color: #a5262a;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.pfs-saving strong {
    color: var(--pfs-accent);
    font-size: 18px;
}

.pfs-saving.is-over {
    background: #f3f5f7;
    color: var(--pfs-ink);
}

.pfs-alt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pfs-alt-card {
    padding: 15px;
    border: 1px solid var(--pfs-line);
    border-radius: 12px;
}

.pfs-alt-card > span,
.pfs-alt-card > strong,
.pfs-alt-card > small {
    display: block;
}

.pfs-alt-card > span {
    margin-bottom: 5px;
    color: var(--pfs-main-dark);
    font-size: 10px;
    font-weight: 700;
}

.pfs-alt-card > strong {
    min-height: 42px;
    font-size: 13px;
    line-height: 1.55;
}

.pfs-alt-card p {
    margin: 9px 0 2px;
    color: var(--pfs-accent);
    font-weight: 700;
}

.pfs-alt-card small {
    color: var(--pfs-muted);
    font-size: 11px;
}

.pfs-cta {
    width: 100%;
    margin-top: 24px;
    text-align: center;
}

.pfs-restart {
    display: block;
    margin: 10px auto 0;
}

.pfs-notes {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f7f9fa;
}

.pfs-notes p {
    margin: 0 0 6px;
    color: var(--pfs-muted);
    font-size: 10px;
    line-height: 1.65;
}

.pfs-notes p:last-child {
    margin-bottom: 0;
}

.pfs-sp {
    display: none;
}

@media (max-width: 640px) {
    .pfs-wrap {
        margin: 22px 0;
        border-radius: 16px;
    }

    .pfs-header {
        padding: 30px 18px 24px;
    }

    .pfs-progress {
        padding: 16px 18px 0;
    }

    .pfs-step,
    .pfs-result {
        padding: 22px 18px 28px;
    }

    .pfs-step-label {
        align-items: flex-start;
        font-size: 17px;
    }

    .pfs-gb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pfs-style-grid,
    .pfs-alt-grid {
        grid-template-columns: 1fr;
    }

    .pfs-choice-card {
        min-height: auto;
    }

    .pfs-actions {
        flex-direction: column-reverse;
    }

    .pfs-calculate {
        width: 100%;
    }

    .pfs-primary-result {
        padding: 22px 15px;
    }

    .pfs-result-price strong {
        font-size: 34px;
    }

    .pfs-sp {
        display: inline;
    }
}
