/* New Project wizard — modern, theme-driven (var(--primary) / var(--secondary)). */

.np-wrap { --np-accent: var(--primary); }

/* Stepper */
.np-stepper { display: flex; align-items: flex-start; gap: 0; margin: 0 0 1.25rem; }
.np-step { flex: 1; text-align: center; position: relative; font-size: .78rem; color: #8a94a6; }
.np-step:not(:first-child)::before {
    content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px;
    background: #e3e7ee; z-index: 0;
}
.np-step.done:not(:first-child)::before,
.np-step.active:not(:first-child)::before { background: var(--primary); }
.np-step__dot {
    position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
    background: #e3e7ee; color: #8a94a6; display: flex; align-items: center; justify-content: center;
    margin: 0 auto .35rem; font-weight: 700; transition: background .2s, color .2s;
}
.np-step.active .np-step__dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.np-step.done .np-step__dot { background: var(--primary); color: #fff; }
.np-step.active .np-step__label { color: var(--primary); font-weight: 600; }

.np-progress { height: 5px; border-radius: 999px; background: #e3e7ee; overflow: hidden; margin-bottom: 1rem; }
.np-progress__bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .3s; }

.np-pane { display: none; animation: npFade .25s ease; }
.np-pane.active { display: block; }
@keyframes npFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.np-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 700; margin: .25rem 0 .75rem; }

/* Plan cards */
.np-plan-card {
    /* .np-plan-card is a <label>, which defaults to display:inline — without
       an explicit block-level display it shrink-wraps to its own content
       width instead of filling the grid column, so cards end up different
       widths (driven by whichever text line is longest) with leftover gap
       beside each one instead of a clean 2-up grid. */
    display: block; width: 100%; box-sizing: border-box;
    cursor: pointer; height: 100%; border: 2px solid #e3e7ee; border-radius: 1rem; padding: 1.1rem;
    transition: border-color .15s, box-shadow .15s, transform .1s; position: relative; background: #fff; margin: 0;
}
.np-plan-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, #e3e7ee); }
.np-plan-card.selected { 
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent) !important;
    transform: translateY(-2px);
 }
.np-plan-card.selected::after {
    content: '\2713'; position: absolute; top: .75rem; right: .75rem; width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.np-plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.np-plan-name { font-weight: 700; font-size: 1.05rem; }
.np-plan-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: .35rem 0; }
.np-plan-feats { list-style: none; padding: 0; margin: 0; font-size: .82rem; color: #55606e; }
.np-plan-feats li { padding: .12rem 0; display: flex; align-items: center; gap: .4rem; }
.np-plan-feats i { color: var(--primary); }

/* Segmented control (hosting choice) */
.np-segment { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.np-segment label {
    border: 2px solid #e3e7ee; border-radius: .8rem; padding: .8rem .9rem; cursor: pointer; margin: 0;
    display: flex; flex-direction: column; gap: .15rem; transition: border-color .15s, background .15s;
}
.np-segment label:hover { border-color: color-mix(in srgb, var(--primary) 40%, #e3e7ee); }
.np-segment input { position: absolute; opacity: 0; }
.np-segment label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); }
.np-segment .np-seg-title { font-weight: 600; font-size: .9rem; }
.np-segment .np-seg-sub { font-size: .76rem; color: #6c757d; }

/* Feature picker */
.np-feature-picker { border: 1px solid #e3e7ee; border-radius: .8rem; overflow: hidden; }
.np-feature-picker__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .7rem; background: color-mix(in srgb, var(--primary) 6%, #fff); border-bottom: 1px solid #e9edf3; }
.np-feature-picker__head .np-feature-search { max-width: 240px; flex: 1 1 180px; }
.np-count-badge { margin-left: auto; background: var(--primary); color: #fff; border-radius: 999px; font-size: .72rem; padding: .15rem .6rem; font-weight: 600; }
.np-feature-list { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem; padding: .6rem; }
.np-feature-item { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; margin: 0; }
.np-feature-item:hover { background: color-mix(in srgb, var(--primary) 7%, #fff); }
.np-feature-item input { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; }
.np-feature-item:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, #fff); }
.np-feature-item.included { opacity: .85; background: color-mix(in srgb, var(--primary) 6%, #fff); cursor: default; }
.np-feature-item__name { font-size: .87rem; font-weight: 500; flex: 1; }
.np-feature-item__price { font-size: .76rem; color: #6c757d; white-space: nowrap; }
.np-feature-item.is-hidden { display: none; }
.np-badge-included { background: var(--primary); color: #fff; border-radius: 999px; font-size: .66rem; padding: .1rem .45rem; }

/* Summary */
.np-summary { position: sticky; top: 90px; border: 0; border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.np-summary .card-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: 0; }
.np-summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; font-size: .9rem; }
.np-summary-total { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.np-summary .breakdown li { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; padding: .18rem 0; border-bottom: 1px dashed #eef1f5; }
.np-summary .breakdown li.discount span:last-child { color: #1a9d5a; }

/* Chip list (included features / read-only) */
.np-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.np-chip { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, #fff); border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 600; }

.np-feature-list::-webkit-scrollbar { width: 8px; }
.np-feature-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 40%, #ccc); border-radius: 8px; }
