.cta {
    margin-top: 48px;
    animation: fadeInUp 0.8s ease-out both;
}

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

.cta-box {
    border-radius: 40px;
    background: #f5f5f5;
    padding: 46px 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .cta-box {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cta-box:hover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cta-graphic {
    background: radial-gradient(circle at 15% 20%, var(--accent), transparent 55%), radial-gradient(circle at 80% 80%, var(--card), var(--dark));
}

.cta-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 420px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
}

.cta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cta-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cta-form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(17, 18, 23, 0.14);
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-form-input::placeholder {
    color: #9ca3af;
}

.cta-form-input:focus {
    outline: none;
    border-color: #6c6dec;
    box-shadow: 0 0 0 3px rgba(108, 109, 236, 0.1);
}

[data-theme="dark"] .cta-form-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

[data-theme="dark"] .cta-form-input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

[data-theme="dark"] .cta-form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 156, 255, 0.15);
}

.cta-form-submit {
    margin-top: 4px;
    width: 100%;
}

.cta-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.validation-message {
    font-size: 13px;
    color: #dc2626;
    margin-top: 2px;
}

[data-theme="dark"] .validation-message {
    color: #f87171;
}

.cta-form-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.cta-form-message-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .cta-form-message-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.cta-form-message-error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] .cta-form-message-error {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

.cta-graphic {
    justify-self: center;
    width: 300px;
    height: 230px;
    border-radius: 999px;
    background: radial-gradient(circle at 15% 20%, var(--accent), transparent 55%), radial-gradient(circle at 80% 80%, #ffffff, #e7e7e7);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.cta-orbit {
    position: absolute;
    inset: 18% 16%;
    border-radius: 999px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-panel {
    position: absolute;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 14px 16px;
    font-size: 14px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

[data-theme="dark"] .cta-panel {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-panel-main {
    top: 28px;
    left: 24px;
    width: 190px;
}

.cta-panel-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

[data-theme="dark"] .cta-panel-title {
    color: rgba(203, 213, 225, 0.8);
}

.cta-panel-metric {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111217;
}

[data-theme="dark"] .cta-panel-metric {
    color: #111217;
}

.cta-panel-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 26px;
}

    .cta-panel-bars span {
        flex: 1;
        border-radius: 999px;
        background: #e0f2fe;
        animation: growBar 0.8s ease-out 0.8s both;
        transform-origin: bottom;
    }

@keyframes growBar {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

        .cta-panel-bars span:nth-child(1) {
            height: 40%;
        }

        .cta-panel-bars span:nth-child(2) {
            height: 70%;
        }

        .cta-panel-bars span:nth-child(3) {
            height: 100%;
            background: #111217;
        }

.cta-panel-caption {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

[data-theme="dark"] .cta-panel-caption {
    color: rgba(203, 213, 225, 0.7);
}

.cta-panel-secondary {
    bottom: 22px;
    right: 26px;
    padding: 10px 14px;
    min-width: 140px;
}

.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 13px;
    margin-bottom: 6px;
}

.cta-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.cta-panel-secondary-text {
    font-size: 13px;
    color: #4b5563;
}

[data-theme="dark"] .cta-panel-secondary-text {
    color: rgba(203, 213, 225, 0.75);
}

@media (max-width: 960px) {
    .cta-box {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .cta-box {
        padding: 38px 28px;
    }

    .cta-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
