/* ─── PAGE SHELL ─────────────────────────────────────────── */

.svc-page {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 0.75rem 1rem 5rem;
}

.svc-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── HEADER ─────────────────────────────────────────────── */

.svc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.svc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.6rem;
}

.svc-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.svc-subtitle {
    max-width: 520px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.65;
}

/* ─── CARD GRID ──────────────────────────────────────────── */

.svc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 2rem;
}

/* ─── SINGLE CARD ────────────────────────────────────────── */

.svc-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

/* Featured (Most Popular) card */
.svc-card--featured {
    border-color: #10b981;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
    transform: translateY(-6px);
}

.svc-card--featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 44px rgba(16, 185, 129, 0.22);
}

/* Selected state */
.svc-card--selected {
    outline: 2.5px solid #22c55e;
    outline-offset: 3px;
}

/* Green accent bar at top of featured card */
.card-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    width: 100%;
    flex-shrink: 0;
}

.card-inner {
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ─── CARD HEAD ──────────────────────────────────────────── */

.card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.card-tier {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.card-popular-pill {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.card-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}

.card-price-old {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.card-tagline {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ─── DIVIDER ────────────────────────────────────────────── */

.card-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 18px 0;
}

/* ─── FEATURE LIST ───────────────────────────────────────── */

.card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.4;
}

.card-check {
    color: #10b981;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ─── CARD FOOTER ────────────────────────────────────────── */

.card-footer {
    margin-top: 22px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.card-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card-btn--filled {
    background: #10b981;
    color: #ffffff;
}

.card-btn--filled:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.card-btn--filled:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.card-btn--outline {
    background: transparent;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.card-btn--outline:hover {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
}

/* ─── CUSTOM BUILDER CTA STRIP ───────────────────────────── */

.custom-cta-strip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.custom-cta-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin: 0 0 2px;
}

.custom-cta-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.custom-cta-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}

.custom-cta-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ─── CUSTOM BUILDER SECTION ─────────────────────────────── */

.custom-section {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.custom-header {
    margin-bottom: 28px;
}

.custom-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.custom-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0;
}

.custom-body {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.custom-left {
    flex: 1 1 0;
    min-width: 0;
}

.custom-right {
    flex: 0 0 280px;
    position: sticky;
    top: 80px;
}

/* ─── SERVICE TOGGLES ────────────────────────────────────── */

.custom-services-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    user-select: none;
}

.svc-toggle:hover {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.svc-toggle--on {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.svc-toggle input[type="checkbox"] {
    display: none;
}

.svc-toggle-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.svc-toggle--on .svc-toggle-check {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.svc-toggle-text {
    flex: 1;
    min-width: 0;
}

.svc-toggle-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.svc-toggle-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.svc-toggle-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── SUMMARY PANEL ──────────────────────────────────────── */

.custom-summary {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f8fafc;
}

.summary-base {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.summary-base-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.4;
}

.summary-services-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
}

.summary-empty {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 14px;
    font-style: italic;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(248, 250, 252, 0.1);
    padding-top: 14px;
    margin-top: 4px;
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.summary-total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    line-height: 1;
}

.summary-disclaimer {
    font-size: 0.73rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 18px;
}

.summary-submit {
    margin-top: auto;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
    .svc-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-card--featured {
        transform: none;
    }

    .custom-right {
        flex: 0 0 240px;
        position: static;
    }
}

@media (max-width: 768px) {
    .svc-page {
        padding-top: 2rem;
    }

    .svc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-inner {
        padding: 16px 14px 14px;
    }

    .card-price {
        font-size: 1.8rem;
    }

    .custom-cta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .custom-cta-btn {
        width: 100%;
        text-align: center;
    }

    .custom-section {
        padding: 20px 16px;
    }

    .custom-body {
        flex-direction: column;
    }

    .custom-right {
        flex: none;
        width: 100%;
    }

    .svc-toggle-price {
        display: none;
    }
}

@media (max-width: 480px) {
    .svc-cards {
        grid-template-columns: 1fr;
    }
}
