/* Outer wrapper */
.dgt-expanding-cta-wrapper {
    position: relative;
    overflow: visible;
    padding: 3rem 2.5rem;
    border-radius: 1.75rem;
    background: radial-gradient(circle at top left, #0b1220 0%, #020617 55%, #020617 100%);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.9);
    max-width: 1100px;
    margin: 0 auto;
}

/* Dark overlay for expand */
.dgt-expanding-cta-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease;
    z-index: 9;
    pointer-events: none;
}

/* Inner CTA card laid out as two columns */
.dgt-expanding-cta {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: stretch;
    color: #e5e7eb;
    transform: scale(1);
    transform-origin: center center;
    transition:
        transform var(--dgt-cta-duration, 400ms) ease,
        box-shadow var(--dgt-cta-duration, 400ms) ease,
        background-color var(--dgt-cta-duration, 400ms) ease;
}

/* Left content column */
.dgt-expanding-cta-left {
    display: flex;
    flex-direction: column;
}

/* Subtitle and title */
.dgt-expanding-cta-subtitle {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    opacity: 0.75;
    margin-bottom: 0.35rem;
    color: #93c5fd;
}

.dgt-expanding-cta-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin: 0 0 0.75rem;
    color: #e5e7eb;
    text-shadow: 0 0 20px rgba(30, 64, 175, 0.7);
}

/* Description container, holds benefits and stats markup */
.dgt-expanding-cta-description {
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.92;
    color: #cbd5f5;
}

/* Benefits list styling (for optional inner HTML) */
.dgt-expanding-cta-benefits {
    margin-top: 1.5rem;
}

.dgt-benefits-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.dgt-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dgt-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #cbd5f5;
}

.dgt-benefit-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #38bdf8;
    margin-top: 0.08rem;
}

.dgt-benefit-text strong {
    color: #e5e7eb;
}

/* Stats row styling (for optional inner HTML) */
.dgt-expanding-cta-stats {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
}

.dgt-stat {
    min-width: 90px;
}

.dgt-stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e5e7eb;
}

.dgt-stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Right column card */
.dgt-expanding-cta-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dgt-cta-right-card {
    width: 100%;
    background: linear-gradient(to bottom right, #020617, #020617);
    border-radius: 1.25rem;
    padding: 1.8rem 1.75rem 1.4rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

/* Optional icon at top of right card */
.dgt-cta-right-icon {
    margin-bottom: 0.75rem;
}

/* Right heading and subtitle */
.dgt-cta-right-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.15rem;
}

.dgt-cta-right-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.2rem;
}

/* Button row inside right card */
.dgt-expanding-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: stretch;
}

/* Base button */
.dgt-expanding-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background-color 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        transform 150ms ease,
        box-shadow 150ms ease;
    font-size: 0.98rem;
}

/* Primary button - midnight blue */
.dgt-expanding-cta-button-primary {
    background: #1e40af;
    color: #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.dgt-expanding-cta-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
    background: #2563eb;
}

/* Secondary button - pill, dark background */
.dgt-expanding-cta-button-secondary {
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: none;
}

.dgt-expanding-cta-button-secondary:hover {
    background: rgba(30, 64, 175, 0.38);
    border-color: #2563eb;
    color: #f9fafb;
}

/* Expanded state */
.dgt-expanding-cta-wrapper.dgt-cta-expanded .dgt-expanding-cta-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dgt-expanding-cta {
    --dgt-cta-scale: 1.04;
    --dgt-cta-duration: 450ms;
}

.dgt-expanding-cta-wrapper.dgt-cta-expanded .dgt-expanding-cta {
    transform: scale(var(--dgt-cta-scale));
}

/* Responsive */
@media (max-width: 900px) {
    .dgt-expanding-cta {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .dgt-expanding-cta-wrapper {
        padding: 2.4rem 1.6rem;
    }
}

@media (max-width: 640px) {
    .dgt-expanding-cta-title {
        font-size: 1.8rem;
    }

    .dgt-expanding-cta-wrapper {
        border-radius: 1.5rem;
    }
}
