/* ─── Client Selection Screen ─────────────────────── */
.client-select-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.client-select-screen.visible {
    opacity: 1;
    pointer-events: all;
}

.client-select-screen.exiting {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Background grid (matches hero) */
.cs-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Ambient glows */
.cs-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
}

.cs-glow-left {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(237, 136, 6, 0.1) 0%, transparent 70%);
}

.cs-glow-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(25, 164, 195, 0.1) 0%, transparent 70%);
}

/* Content container */
.cs-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 840px;
    width: 100%;
}

.cs-logo {
    margin-bottom: 2rem;
}

.cs-logo img {
    height: 52px;
    width: auto;
}

.cs-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.cs-prompt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

/* Two-card grid */
.cs-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Individual card */
.cs-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 2rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    color: inherit;
}

/* Gradient tint overlay */
.cs-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cs-card[data-client="municipal"]::after {
    background: linear-gradient(135deg, rgba(237, 136, 6, 0.07) 0%, transparent 65%);
}

.cs-card[data-client="commercial"]::after {
    background: linear-gradient(135deg, rgba(25, 164, 195, 0.07) 0%, transparent 65%);
}

.cs-card:hover {
    transform: translateY(-6px);
}

.cs-card:hover::after {
    opacity: 1;
}

.cs-card[data-client="municipal"]:hover {
    border-color: rgba(237, 136, 6, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(237, 136, 6, 0.12);
}

.cs-card[data-client="commercial"]:hover {
    border-color: rgba(25, 164, 195, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(25, 164, 195, 0.12);
}

/* Selected state */
.cs-card.cs-selected {
    transform: translateY(-4px) scale(1.01);
}

.cs-card[data-client="municipal"].cs-selected {
    border-color: rgba(237, 136, 6, 0.65);
    box-shadow: 0 0 0 2px rgba(237, 136, 6, 0.2),
                0 24px 64px rgba(0, 0, 0, 0.5);
}

.cs-card[data-client="commercial"].cs-selected {
    border-color: rgba(25, 164, 195, 0.65);
    box-shadow: 0 0 0 2px rgba(25, 164, 195, 0.2),
                0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Non-selected card dims */
.cs-card.cs-dimmed {
    opacity: 0.3;
    transform: none;
    pointer-events: none;
}

/* Card icon */
.cs-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
}

.cs-card[data-client="municipal"] .cs-card-icon {
    background: rgba(237, 136, 6, 0.1);
    color: var(--color-primary);
}

.cs-card[data-client="commercial"] .cs-card-icon {
    background: rgba(25, 164, 195, 0.1);
    color: var(--color-accent);
}

.cs-card[data-client="municipal"]:hover .cs-card-icon {
    background: rgba(237, 136, 6, 0.18);
}

.cs-card[data-client="commercial"]:hover .cs-card-icon {
    background: rgba(25, 164, 195, 0.18);
}

.cs-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.7rem;
}

.cs-card p {
    font-size: 0.83rem;
    color: var(--color-text-secondary);
    line-height: 1.72;
    margin-bottom: 1.5rem;
}

.cs-card-cta {
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.2s ease;
}

.cs-card[data-client="municipal"] .cs-card-cta {
    color: var(--color-primary);
}

.cs-card[data-client="commercial"] .cs-card-cta {
    color: var(--color-accent);
}

.cs-card:hover .cs-card-cta {
    gap: 0.75rem;
}

/* Progress bar — spans the full screen bottom */
.cs-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-primary);
    z-index: 2;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 0 0;
}

.client-select-screen.cs-progressing .cs-progress-bar {
    width: 100%;
}

/* Responsive */
@media (max-width: 620px) {
    .cs-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cs-content {
        padding: 1.5rem 1rem;
    }

    .cs-heading {
        font-size: 1.45rem;
    }

    .cs-prompt {
        margin-bottom: 1.75rem;
    }
}
