:root {
    --cdb-bg: #05080d;
    --cdb-card: rgba(255, 255, 255, 0.04);

    --cdb-text: #ffffff;
    --cdb-muted: #8da8c9;

    --cdb-accent: #0066ff;
    --cdb-accent-hover: #1e5eff;

    --cdb-border: rgba(120, 180, 255, 0.15);

    --cdb-radius: 24px;

    --cdb-shadow:
        0 0 8px rgba(0, 136, 255, 0.2),
        0 0 20px rgba(0, 136, 255, 0.15),
        0 0 50px rgba(0, 136, 255, 0.08);

    --cdb-shadow-hover:
        0 0 12px rgba(0, 136, 255, 0.3),
        0 0 30px rgba(0, 136, 255, 0.2),
        0 0 80px rgba(0, 136, 255, 0.12);

    --cdb-glass: blur(24px) saturate(180%);
    --cdb-sticky-top: 112px;
    --cdb-progress-height: 74px;
}

.cdb-wrap {
    position: relative;
    /* margin-top: clamp(64px, 7vw, 110px); */
    margin-top: 0;
    padding: clamp(20px, 3vw, 36px);
background: #091930;
    /* background:
        radial-gradient(circle at 15% 20%, rgba(0, 102, 255, 0.18), transparent 48%),
        radial-gradient(circle at 85% 78%, rgba(0, 136, 255, 0.1), transparent 52%),
        linear-gradient(180deg, #03060b 0%, #000 100%); */
    color: var(--cdb-text);
    overflow: visible;
    scroll-margin-top: 140px;
    padding-top: 150px;
}

.cdb-wrap::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    background: var(--cdb-accent);
    filter: blur(160px);
    opacity: 0.15;
    pointer-events: none;
}

.cdb-card {
    max-width: 1100px;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.04);

    /* backdrop-filter: var(--cdb-glass);
    -webkit-backdrop-filter: var(--cdb-glass); */

    /* border: 1px solid var(--cdb-border); */

    border-radius: var(--cdb-radius);

    /* box-shadow:
        var(--cdb-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.1); */

    overflow: visible;

    position: relative;

    animation: cdbFadeIn 0.4s ease;
}

.cdb-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;

    /* background:
        radial-gradient(circle at top center,
            rgba(0, 136, 255, 0.45),
            transparent 68%),
        radial-gradient(circle at bottom right,
            rgba(47, 134, 255, 0.2),
            transparent 72%); */

    filter: blur(5px);
}

.cdb-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(0, 136, 255, 0.1) 100%);

    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    padding: 1px;

    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes cdbFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cdb-head {
    padding: clamp(24px, 3vw, 36px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cdb-head h2 {
    margin: 0 0 10px;

    color: #fff;

    font-family: "Poppins", sans-serif;

    text-transform: uppercase;

    font-size: clamp(1.8rem, 3vw, 2.6rem);

    font-weight: 700;
}

.cdb-head p {
    margin: 0;

    color: var(--cdb-muted);

    font-family: "Poppins", sans-serif;
}

.cdb-progress {
    display: grid;
    gap: 10px;

    grid-template-columns: repeat(5, 1fr);

    padding: 16px;

        background: linear-gradient(180deg,
            rgba(7, 13, 22, 0.94) 0%,
            rgba(5, 10, 18, 0.9) 100%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    position: sticky;
    top: var(--cdb-sticky-top);
    z-index: 30;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    min-height: var(--cdb-progress-height);
}

.cdb-progress span {
    text-align: center;

    padding: 12px;

    border-radius: 14px;

    border: 1px solid transparent;

    color: var(--cdb-muted);

    transition: 0.3s ease;

    font-family: "Poppins", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cdb-progress span.active {
    background: linear-gradient(180deg,
            #2f86ff 0%,
            #0f66ff 100%);

    color: white;

    border-color: #0f66ff;

    box-shadow: 0 8px 25px rgba(15, 102, 255, 0.35);
}

.cdb-body {
    padding: clamp(20px, 3vw, 32px);
    min-height: 420px;
}

.cdb-step {
    display: none;
}

.cdb-step.active {
    display: block;
    animation: cdbFadeIn 0.3s ease;
}

.cdb-step h3 {
    color: white;
    font-family: "Poppins", sans-serif;
    margin-top: 0;
}

.cdb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.cdb-services-sections {
    display: grid;
    gap: 18px;
}

.cdb-services-group {
    border: 1px solid var(--cdb-border);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.cdb-services-group h4 {
    margin: 0 0 12px;
    color: #e2eeff;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.cdb-selected-bar {
    border: 1px solid var(--cdb-border);
    border-radius: 14px;
    background: linear-gradient(180deg,
            rgba(6, 19, 38, 0.94) 0%,
            rgba(4, 14, 30, 0.9) 100%);
    padding: 10px 12px;
    margin: 10px 0 16px;

    position: sticky;
    top: calc(var(--cdb-sticky-top) + var(--cdb-progress-height) + 10px);
    z-index: 24;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cdb-selected-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cdb-selected-chip {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(120, 180, 255, 0.35);
    background: rgba(0, 102, 255, 0.14);
    font-size: 0.82rem;
}

.cdb-selected-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #d7e8ff;
    margin-top: 8px;
    font-size: 0.9rem;
}

.cdb-service-card {
    display: flex;
    flex-direction: column;
    
    background: rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(20px);

    border: 1px solid var(--cdb-border);

    border-radius: 20px;

    padding: 20px;

    cursor: pointer;

    transition: all 0.3s ease;

    color: white;

    position: relative;

    isolation: isolate;
}

.cdb-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cdb-shadow-hover);
}

.cdb-service-card.selected {
    border-color: #7fc0ff;

    background:
        linear-gradient(180deg, rgba(21, 37, 62, 0.9) 0%, rgba(8, 16, 28, 0.92) 100%);

    box-shadow:
        0 0 0 2px rgba(127, 192, 255, 0.35) inset,
        0 12px 28px rgba(0, 48, 120, 0.4);

    transform: translateY(-2px);
}

.cdb-service-card.selected::before {
    content: "Selected";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f5fbff;
    background: linear-gradient(180deg, #48a3ff 0%, #0d63ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 4px 8px;
    box-shadow: 0 6px 16px rgba(10, 85, 220, 0.4);
}

.cdb-service-card strong {
    font-size: 1.1rem;
    color: white;
}

.cdb-service-card small {
    color: var(--cdb-muted);
}

.cdb-service-card span {
    color: var(--cdb-accent);
    font-weight: 600;
}

.cdb-package-tasks {
    margin: 8px 0 10px;
    padding: 0 0 0 18px;
    display: grid;
    gap: 5px;
    color: #d9e8ff;
    font-size: 0.88rem;
}

.cdb-package-tasks li {
    line-height: 1.35;
}

.cdb-calendar {
    background: rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(20px);

    border: 1px solid var(--cdb-border);

    border-radius: 20px;

    padding: 20px;
}

.cdb-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    color: white;
}

.cdb-cal-nav {
    min-width: 44px;
    height: 42px;
    padding: 0 12px;

    border-radius: 12px;

    border: 1px solid var(--cdb-border);

    background: rgba(255, 255, 255, 0.05);

    color: white;

    cursor: pointer;

    transition: 0.3s ease;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.cdb-cal-nav:hover {
    border-color: var(--cdb-accent);
    box-shadow: var(--cdb-shadow);
    transform: translateY(-1px);
}

.cdb-cal-nav:active {
    transform: translateY(1px);
}

.cdb-cal-nav:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

.cdb-cal-weekdays,
.cdb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cdb-cal-weekdays span {
    color: var(--cdb-muted);
    text-align: center;
    font-size: 0.85rem;
}

.cdb-cal-cell {
    min-height: 52px;

    border-radius: 12px;

    border: 1px solid var(--cdb-border);

    background: rgba(255, 255, 255, 0.03);

    color: white;

    cursor: pointer;

    transition: all 0.3s ease;
}

.cdb-cal-cell:hover:not([disabled]) {
    border-color: var(--cdb-accent);
}

.cdb-cal-cell.selected {
    border-color: var(--cdb-accent);

    background: rgba(0, 102, 255, 0.1);

    box-shadow: var(--cdb-shadow);
}

.cdb-cal-cell[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.cdb-cal-cell.empty {
    border: none;
    background: transparent;
}

.cdb-hint {
    margin-top: 16px;
    color: var(--cdb-muted);
}

.cdb-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.cdb-slot {
    padding: 12px;

    border-radius: 12px;

    border: 1px solid var(--cdb-border);

    background: rgba(255, 255, 255, 0.04);

    color: white;

    cursor: pointer;

    transition: 0.3s ease;
}

.cdb-slot:hover {
    border-color: var(--cdb-accent);
    transform: translateY(-1px);
}

.cdb-slot.selected {
    border-color: var(--cdb-accent);

    background: rgba(0, 102, 255, 0.1);

    box-shadow: var(--cdb-shadow);
}

.cdb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cdb-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: white;

    font-family: "Poppins", sans-serif;
}

.cdb-form-grid input,
.cdb-form-grid textarea {
    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--cdb-border);

    border-radius: 14px;

    color: white;

    padding: 14px;

    outline: none;

    transition: 0.3s ease;
}

.cdb-form-grid input:focus,
.cdb-form-grid textarea:focus {
    border-color: var(--cdb-accent);

    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
}

.cdb-full-width {
    grid-column: 1 / -1;
}

.cdb-summary {
    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--cdb-border);

    border-radius: 20px;

    padding: 24px;
}

.cdb-summary dl {
    margin: 0;

    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 12px;
}

.cdb-summary dt {
    color: var(--cdb-muted);
}

.cdb-summary dd {
    color: white;
    margin: 0;
    font-weight: 600;
}

.cdb-actions {
    padding: 24px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cdb-btn {
    border: 1px solid rgba(120, 180, 255, 0.35);

    border-radius: 14px;

    padding: 14px 26px;

    font-weight: 600;

    color: white;

    cursor: pointer;

    transition: 0.2s ease;

    background: linear-gradient(180deg,
            #2f86ff 0%,
            #0f66ff 100%);

    box-shadow:
        0 10px 28px rgba(15, 102, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.cdb-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(15, 102, 255, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.cdb-btn:active {
    transform: translateY(1px) scale(0.995);
}

.cdb-btn:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(0, 102, 255, 0.35),
        0 12px 26px rgba(15, 102, 255, 0.45);
}

.cdb-btn-ghost {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%);

    border: 1px solid var(--cdb-border);

    color: white;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.cdb-btn-ghost:hover {
    border-color: rgba(120, 180, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.cdb-service-card,
.cdb-slot,
.cdb-cal-cell,
.cdb-btn,
.cdb-cal-nav {
    touch-action: manipulation;
}

.cdb-feedback {
    padding: 0 24px 24px;
    color: var(--cdb-muted);
}

.cdb-feedback.error {
    color: #ff5c5c;
}

.cdb-feedback.success {
    color: #00d26a;
}

.cdb-price-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 12%, rgba(0, 102, 255, 0.18), transparent 42%),
        linear-gradient(180deg, #03060b 0%, #000 100%);
    color: #fff;
    border: 1px solid var(--cdb-border);
    box-shadow: var(--cdb-shadow);
}

.cdb-price-head {
    margin-bottom: 18px;
}

.cdb-price-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: 0.03em;
}

.cdb-price-head p {
    margin: 6px 0 0;
    color: #49a7ff;
    font-weight: 600;
}

.cdb-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cdb-price-card {
    border: 1px solid var(--cdb-border);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.cdb-price-card h3 {
    margin: 0 0 10px;
    color: #e6f1ff;
    letter-spacing: 0.02em;
}

.cdb-price-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.cdb-price-card li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(120, 180, 255, 0.16);
}

.cdb-price-card li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cdb-price-row-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    min-width: 0;
    gap: 3px;
}

.cdb-price-card span {
    color: #d8e9ff;
}

.cdb-price-desc {
    color: #a9c9f0;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
}

.cdb-price-card strong {
    white-space: nowrap;
    color: #fff;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    :root {
        --cdb-sticky-top: 8px;
        --cdb-progress-height: 64px;
    }

    .cdb-progress {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 10px;
        scrollbar-width: thin;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .cdb-progress span {
        flex: 0 0 auto;
        min-width: 92px;
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .cdb-selected-bar {
        top: calc(var(--cdb-sticky-top) + var(--cdb-progress-height) + 8px);
        position: sticky;
    }

    .cdb-form-grid {
        grid-template-columns: 1fr;
    }

    .cdb-summary dl {
        grid-template-columns: 1fr;
    }

    .cdb-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cdb-btn {
        width: 100%;
    }

    .cdb-price-grid {
        grid-template-columns: 1fr;
    }

    .cdb-price-card li {
        font-size: 0.9rem;
    }

    .cdb-price-row-info {
        flex-basis: 100%;
    }

    .cdb-price-desc {
        font-size: 0.76rem;
    }
}