/* ═══════════════════════════════════════
   DESIGN 12 — Configure Page Styles
   3-Step Package-First Ordering Flow
   ═══════════════════════════════════════ */

/* ── Page Layout ── */
.cfg-body {
    background: var(--white);
    min-height: 100vh;
    line-height: 1.6; /* 1. Fix paragraph line-height for Thai */
}

.cfg-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 120px;
}

/* ── Step Indicator ── */
.cfg-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.cfg-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.cfg-step-dot span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all .3s;
}

.cfg-step-dot.active span {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 123, 246, .15);
}

.cfg-step-dot.done span {
    background: #22c55e;
    color: #fff;
}

.cfg-step-dot small {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.cfg-step-dot.active small { color: var(--blue); font-weight: 600; }
.cfg-step-dot.done small { color: #22c55e; }

.cfg-step-line {
    width: 80px;
    height: 2px;
    background: var(--gray-100);
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background .3s;
}

.cfg-step-line.done { background: #22c55e; }

/* ── Step Visibility ── */
.cfg-step { display: none; animation: fadeUp .4s ease; }
.cfg-step.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══ STEP 1: Category + Tier Selection ═══ */
.cfg-step-header {
    text-align: center;
    margin-bottom: 48px;
}

.cfg-step-header h1 {
    font-family: var(--font-h);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}

.cfg-h1-sub {
    color: var(--blue);
    font-weight: 400;
    font-size: .55em;
    display: block;
    margin-top: 8px;
}

.cfg-sub {
    font-size: 15px;
    color: var(--gray-500);
    margin-top: 12px;
    line-height: 1.6;
}

.cfg-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Category Cards */
.cfg-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cfg-cat-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    position: relative;
}

.cfg-cat-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 123, 246, .1);
}

.cfg-cat-card.selected {
    border-color: var(--blue);
    background: rgba(59, 123, 246, .04);
}

.cfg-cat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(59, 123, 246, .08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfg-cat-icon svg { width: 28px; height: 28px; color: var(--blue); }

.cfg-cat-card h3 {
    font-family: var(--font-h);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.cfg-cat-card p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.cfg-cat-price {
    display: inline-block;
    background: rgba(59, 123, 246, .08);
    color: var(--blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Tier Selection */
.cfg-tiers-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.cfg-back-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    font-family: var(--font);
    transition: color .2s;
}

.cfg-back-btn:hover { color: var(--blue); }

.cfg-tiers-title {
    font-family: var(--font-h);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin: 8px 0 24px;
}

.cfg-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cfg-tier-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all .25s;
    position: relative;
}

.cfg-tier-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 123, 246, .08);
}

.cfg-tier-card.recommended {
    border-color: var(--blue);
    background: var(--navy);
    color: #fff;
}

.cfg-tier-card.recommended .cfg-tier-name,
.cfg-tier-card.recommended .cfg-tier-price { color: #fff; }
.cfg-tier-card.recommended .cfg-tier-desc { color: var(--gray-300); }
.cfg-tier-card.recommended .cfg-tier-feature { color: rgba(255,255,255,.75); }

.cfg-tier-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.cfg-tier-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cfg-tier-name {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.cfg-tier-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.cfg-tier-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cfg-tier-feature {
    font-size: 13px;
    color: var(--gray-700);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cfg-tier-feature::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    font-size: 12px;
}

.cfg-tier-card.recommended .cfg-tier-feature::before { color: #38bdf8; }

.cfg-tier-select-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s;
}

.cfg-tier-select-btn:hover {
    background: #2a6ae0;
    transform: translateY(-1px);
}

.cfg-tier-card.recommended .cfg-tier-select-btn {
    background: #fff;
    color: var(--navy);
}


/* ═══ STEP 2: Customization Layout ═══ */
.cfg-step2-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* Preview Panel */
.cfg-preview { position: relative; }

.cfg-preview-sticky {
    position: sticky;
    top: 90px;
}

/* Reuse Design 11 mockup styles */
.preview-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    border: 1px solid var(--gray-100);
}

.pc-browser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.pc-dots { display: flex; gap: 5px; }
.pc-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); }

.pc-url {
    flex: 1;
    font-size: 10px;
    color: var(--gray-500);
    background: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    text-align: center;
}

.pc-site {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* Mockup internal styles */
.mk-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 9px;
}

.mk-logo {
    width: 18px; height: 18px;
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 10px;
}

.mk-tabs { display: flex; gap: 8px; overflow: hidden; }
.mk-tab {
    font-size: 8px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all .2s;
}
.mk-tab.active { background: var(--blue); color: #fff; }
.mk-tab:hover { color: var(--blue); }

.mk-pages { position: relative; }
.mk-page { display: none; padding: 8px 10px; }
.mk-page.active { display: block; }

.mk-hero { padding: 12px 0 8px; }
.mk-hero-text { text-align: center; }
.mk-h1 { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.mk-p { font-size: 8px; color: var(--gray-500); margin-bottom: 6px; }
.mk-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 7px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.mk-section { margin-top: 10px; }
.mk-section-title { font-size: 9px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.mk-cards { display: flex; gap: 4px; }
.mk-card { flex: 1; height: 30px; background: var(--gray-100); border-radius: 4px; }
.mk-lines { display: flex; flex-direction: column; gap: 3px; }
.mk-line { height: 4px; background: var(--gray-100); border-radius: 2px; }
.mk-line.w60 { width: 60%; } .mk-line.w70 { width: 70%; } .mk-line.w80 { width: 80%; }

.mk-footer {
    padding: 6px 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 7px;
    color: var(--gray-300);
    text-align: center;
}

.mk-preview-overlay {
    position: absolute;
    top: 34px; left: 0; right: 0; bottom: 24px;
    background: rgba(255,255,255,.97);
    display: none;
    padding: 8px;
    z-index: 5;
    animation: overlayIn .3s ease;
}
.mk-preview-overlay.active { display: block; }

@keyframes overlayIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Preview benefits */
.cfg-preview-benefits {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfg-pb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-700);
}

.cfg-pb-item span { font-size: 18px; }

/* Addon sections */
.cfg-addon-header {
    margin-bottom: 32px;
}

.cfg-addon-header h2 {
    font-family: var(--font-h);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 4px 0;
}

.cfg-selected-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue);
    margin: 4px 0 8px;
}

.cfg-addon-sub {
    font-size: 14px;
    color: var(--gray-500);
}

.cfg-addon-section {
    margin-bottom: 32px;
}

.cfg-addon-section h3 {
    font-family: var(--font-h);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.cfg-addon-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Option Cards (reusable from Design 11) */
.opt-card {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all .2s;
}

.opt-card:hover {
    border-color: var(--gray-300);
}

.opt-check-wrapper {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.opt-check-wrapper.active {
    border-color: var(--blue);
    background: rgba(59, 123, 246, .04);
}

.opt-check-wrapper.pkg-locked {
    opacity: .7;
    pointer-events: none;
}

.opt-check-ui {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    margin-top: 2px;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-check-wrapper.active .opt-check-ui {
    background: var(--blue);
    border-color: var(--blue);
}

.opt-check-wrapper.active .opt-check-ui::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.opt-content { flex: 1; }

.opt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.opt-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.opt-price-tag { font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.opt-desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; }
.opt-desc small { font-size: 11px; }

.opt-info-card {
    background: rgba(59, 123, 246, .03);
    border-color: rgba(59, 123, 246, .1);
}

/* Pages system */
.pages-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all .2s;
}

.page-item.show { opacity: 1; transform: translateY(0); }
.page-item.removing { opacity: 0; transform: translateX(20px); }

.page-num {
    width: 20px;
    height: 20px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
}

.page-name-input {
    flex: 1;
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    transition: border-color .2s;
}

.page-name-input:focus {
    outline: none;
    border-color: var(--blue);
}

.page-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--gray-300);
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: all .2s;
}

.page-remove-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }

.add-page-btn {
    margin-top: 6px;
    background: none;
    border: 1.5px dashed var(--gray-300);
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    font-family: var(--font);
    transition: all .2s;
}

.add-page-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(59, 123, 246, .04);
}


/* ═══ STEP 3: Summary + Contact Form ═══ */
.cfg-step3-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.cfg-summary-panel h2,
.cfg-contact-form h2 {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.cfg-summary-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid rgba(0,0,0,.04);
}

.ws-fixed { font-weight: 600; color: var(--navy); }
.ws-discount-amount { color: #22c55e; font-weight: 700; }

.cfg-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    border-top: 2px solid var(--navy);
    margin-top: 8px;
}

.cfg-summary-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, .06);
    border-radius: 10px;
    font-size: 13px;
    color: var(--gray-700);
}

.cfg-summary-note a { color: var(--blue); font-weight: 600; }

/* Recurring costs */
.cfg-recurring-info {
    margin-top: 24px;
    padding: 16px;
    background: var(--off-white);
    border-radius: 12px;
}

.cfg-recurring-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.cfg-recurring-info h4 small { font-weight: 400; color: var(--gray-500); }

.cfg-rc-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-500);
    opacity: .5;
    transition: all .3s;
}

.cfg-rc-item.active-recurring {
    opacity: 1;
    color: var(--gray-700);
}

.cfg-rc-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    margin-top: 8px;
    border-top: 1px solid var(--gray-300);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
}

/* Contact Form */
.cfg-form-sub {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

#wizFormConfig input,
#wizFormConfig select,
#wizFormConfig textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-100);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    margin-bottom: 10px;
    transition: border-color .2s;
}

#wizFormConfig input:focus,
#wizFormConfig select:focus,
#wizFormConfig textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.cfg-file-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

#wizFormConfig input[type="file"] {
    background: var(--off-white);
    padding: 10px;
}

#uploadProgress {
    font-size: 13px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.cfg-promo {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.cfg-promo input { flex: 1; margin-bottom: 0; }

.cfg-promo-btn {
    padding: 10px 20px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
    transition: all .2s;
}

.cfg-promo-btn:hover { background: var(--navy-mid); }

#promoResult {
    margin-bottom: 12px;
    font-size: 13px;
}

.promo-success { color: #22c55e; font-weight: 600; }
.promo-error { color: #ef4444; font-weight: 600; }

.cfg-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all .25s;
}

.cfg-submit-btn:hover {
    background: #2a6ae0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 123, 246, .25);
}

.cfg-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* ═══ Sticky Summary Bar (Step 2) ═══ */
.cfg-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    z-index: 100;
    display: none;
    animation: slideUp .3s ease;
}

.cfg-summary-bar.visible { display: block; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cfg-sb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cfg-sb-left small { font-size: 11px; color: var(--gray-300); display: block; }

.cfg-sb-price-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cfg-sb-price {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    transition: all .15s;
}

.cfg-sb-price.updating { transform: scale(.95); opacity: .6; }

.cfg-sb-price-original {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.cfg-sb-discount-badge {
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.cfg-sb-btn {
    padding: 12px 28px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.cfg-sb-btn:hover {
    background: #2a6ae0;
    transform: translateY(-1px);
}


/* ═══ Success State ═══ */
.cfg-done {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.cfg-done-check {
    width: 64px;
    height: 64px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 20px;
    animation: popIn .4s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    70%  { transform: scale(1.1); }
    to   { transform: scale(1); }
}

.cfg-done h2 {
    font-family: var(--font-h);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
}

.cfg-done-sub { font-size: 14px; color: var(--gray-500); margin-top: 8px; }

.cfg-contact-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.cfg-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s;
}

.cfg-contact-btn:hover { transform: translateY(-2px); }

.cfg-line-btn { background: #06c755; color: #fff; }
.cfg-msg-btn { background: #0084ff; color: #fff; }

.cfg-copy-section {
    margin: 20px 0;
    padding: 14px;
    background: var(--off-white);
    border-radius: 12px;
}

.cfg-copy-msg {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.cfg-copy-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all .2s;
}

.cfg-copy-btn:hover { background: var(--navy-mid); }

.cfg-done-note {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 16px;
}


/* ═══ Base Price Breakdown ═══ */
.cfg-base-includes {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.cfg-base-includes h3 {
    color: var(--navy);
}

/* ═══ Recurring Cost Cards ═══ */
.recurring-card {
    opacity: .6;
    border-style: dashed;
}

.recurring-card.active-recurring {
    opacity: 1;
    border-style: solid;
    border-color: rgba(59, 123, 246, .2);
    background: rgba(59, 123, 246, .03);
}


/* ═══ Custom Build Card ═══ */
.cfg-cat-custom {
    border-style: dashed;
    border-color: rgba(34, 197, 94, .3);
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

.cfg-cat-custom:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 30px rgba(34, 197, 94, .12);
}

/* Package-included items (unlockable) */
.opt-check-wrapper.pkg-included {
    border-color: rgba(34, 197, 94, .25);
    background: rgba(34, 197, 94, .04);
}

.opt-check-wrapper.pkg-included.active .opt-check-ui::after {
    background: #22c55e;
}


/* ═══ Color Tone Chips ═══ */
.cfg-tone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cfg-tone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-100);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--gray-700);
    cursor: pointer;
    transition: all .2s;
    position: relative;
}

.cfg-tone-chip::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--chip-bg, var(--gray-300));
    border: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}

.cfg-tone-chip:hover {
    border-color: var(--blue);
    background: rgba(59, 123, 246, .04);
}

.cfg-tone-chip.active {
    border-color: var(--blue);
    background: rgba(59, 123, 246, .08);
    color: var(--blue);
    font-weight: 600;
}

.cfg-tone-chip.active::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}


/* ═══ Responsive ═══ */
@media (max-width: 900px) {
    .cfg-step2-layout {
        display: flex;
        flex-direction: column;
    }
    .cfg-preview { display: none; } /* Hide mockup on mobile */

    .cfg-step3-layout {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .cfg-main { padding: 80px 16px 120px; }
    .cfg-categories { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cfg-cat-card { padding: 20px 16px; }
    .cfg-tiers { grid-template-columns: 1fr; }
    .cfg-contact-btns { flex-direction: column; }
    .cfg-sb-inner { flex-direction: column; gap: 8px; text-align: center; }
    .cfg-sb-btn { width: 100%; }
    .cfg-steps-indicator { gap: 0; }
    .cfg-step-line { width: 40px; }
}
