/* Workflow page styles */
:root {
    --wdp-bg-1: linear-gradient(135deg, #041326 0%, #0a2d58 50%, #0f172a 100%);
    --wdp-accent: #38bdf8;
    --wdp-accent-2: #2563eb;
    --wdp-muted: #94a3b8;
    --wdp-card-bg: rgba(255, 255, 255, 0.04);
}
a.wdp-back-link:hover, a.wdp-back-link:focus {
    color: #e6eef8;
}
label.wdp-phone-code {
    position: relative;
    top: -25px;
}
.wdp-workflow-shell {
    position: relative;
    display: grid;
    gap: 15px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--wdp-text, #e6eef8);
    padding: 24px;
    /*background: var(--wdp-bg-1);*/
    min-height: 100vh; /* Use dynamic viewport height */
    overflow: hidden;
    box-sizing: border-box;
        width: 1400px;
    margin: auto;
}
div#page {
    background: var(--wdp-bg-1);
}
html {
    scrollbar-gutter: stable;
}
.wdp-workflow-header,
.wdp-workflow-content {
    position: relative;
    z-index: 1;
}

.wdp-workflow-header {
    display: flex;
    align-items: center;
    justify-content: end;
    padding:0 24px;
    gap:25px;
}

.wdp-back-link {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--wdp-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.wdp-back-link:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateX(-4px);
}

.wdp-workflow-header h1 {
    margin: 0;
    font-size: 1.8rem;
    flex: 1;
    color: #f8fbff;
    text-align: center;
}
.wdp-workflow-header.inner-header {
    margin-bottom: 15px;
    padding: 0px;
}
.wdp-workflow-actions {
    display: flex;
    gap: 12px;
}

/* Content section */
.wdp-workflow-content {
    display: grid;
    gap: 28px;
}

.wdp-workflow-intro {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(56, 189, 248, 0.12);
}

.wdp-workflow-intro h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #fff;
}

.wdp-workflow-intro p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(203, 213, 225, 0.95);
    font-size: 1.05rem;
}

/* Lead capture banner */
.wdp-lead-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(120deg, rgba(8, 47, 73, 0.94), rgba(15, 23, 42, 0.98) 58%),
        #0f172a;
    /*box-shadow: 0 22px 60px rgba(2, 8, 23, 0.3);*/
}

.wdp-lead-banner::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, #38bdf8, #ec4899, transparent);
    opacity: 0.72;
    will-change: transform, opacity;
    animation: wdp-data-stream 6s ease-in-out infinite;
}

.wdp-lead-banner-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.wdp-lead-banner-label {
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wdp-lead-banner-copy h2 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: 2.15rem;
    line-height: 1.12;
}

.wdp-lead-banner-copy p {
    max-width: 580px;
    margin: 0;
    color: rgba(226, 232, 240, 0.84);
    line-height: 1.65;
}

.wdp-lead-banner-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 4px;
}

.wdp-lead-banner-points span {
    color: #dbeafe;
    font-size: 0.86rem;
    font-weight: 650;
}

.wdp-lead-banner-points span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.wdp-demo-banner-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(2, 8, 23, 0.48);
}

.wdp-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wdp-demo-banner-form label {
    display: grid;
    gap: 7px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 650;
}

.wdp-phone-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr);
    gap: 12px;
    align-items: end;
}

.wdp-phone-row label {
    margin-bottom: 0;
}

.wdp-phone-code,
.wdp-phone-number {
    display: grid;
    gap: 7px;
    width: 100%;
}

.wdp-phone-code select,
.wdp-phone-number input {
    width: 100%;
}

.wdp-phone-group {
    display: none;
}

.wdp-demo-banner-form input,
.wdp-demo-banner-form select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 7px;
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.wdp-demo-banner-form input{
    margin-bottom: 25px;
}
.wdp-demo-banner-form input:focus,
.wdp-demo-banner-form select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.wdp-demo-banner-form input::placeholder {
    color: #64748b;
}

.wdp-demo-banner-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wdp-accent), var(--wdp-accent-2));
    color: #04243a;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    font: inherit;
}

.wdp-demo-banner-form button:hover {
    transform: translateY(-1px);
    color: #e2e8f0;
}

.wdp-demo-banner-form button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.wdp-demo-form-status {
    min-height: 20px;
    margin: -8px 0 25px 0;
    color: #86efac;
    font-size: 0.84rem;
}

/* Inline form validation states */
.wdp-demo-form-status.wdp-error { color: #fca5a5; }
.wdp-demo-form-status.wdp-success { color: #86efac; }

/* Stages grid */
.wdp-workflow-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.wdp-stage {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 15, 25, 0.98), rgba(12, 20, 35, 0.96));
    border: 1px solid rgba(125, 211, 252, 0.08);
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.25);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    display: grid;
    gap: 12px;
    grid-template-rows: auto 1fr auto;
}

.wdp-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, transparent, rgba(125, 211, 252, 0.14), transparent 42%);
    transform: translateX(-110%);
    will-change: transform;
    transition: transform 0.55s ease;
}

.wdp-stage::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #22c55e, transparent);
    opacity: 0.5;
    transform: scaleX(0.35);
    transform-origin: left;
    will-change: transform, opacity;
    animation: wdp-data-stream 6.5s ease-in-out infinite;
}

.wdp-stage:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 211, 252, 0.15);
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.2);
}

.wdp-stage:hover::before {
    transform: translateX(100%);
}

.wdp-stage h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.05rem;
    color: var(--wdp-accent);
    font-weight: 700;
}

.wdp-stage p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(203, 213, 225, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wdp-stage-visual {
    position: relative;
    z-index: 1;
    padding: 12px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--wdp-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
    animation: wdp-terminal-glow 4.2s ease-in-out infinite;
}

/* Summary section */
.wdp-workflow-summary {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wdp-workflow-summary h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: #fff;
}

.wdp-workflow-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.wdp-workflow-summary li {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    color: rgba(203, 213, 225, 0.95);
    font-size: 0.95rem;
}

.wdp-workflow-summary li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.16), transparent);
    transform: translateX(-120%);
    will-change: transform;
    animation: wdp-metric-scan 7s ease-in-out infinite;
}

.wdp-workflow-summary strong {
    color: var(--wdp-accent);
    font-weight: 700;
    display: block;
}

/* Button styles */
.wdp-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e6eef8;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.22s ease;
    font: inherit;
}

.wdp-button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Card head styling */
.wdp-card-head {
    display: grid;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .wdp-workflow-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wdp-workflow-header h1 {
        width: 100%;
    }

    .wdp-workflow-actions {
        width: 100%;
    }

    .wdp-workflow-stages {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .wdp-lead-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wdp-lead-banner::after {
        display: none;
    }

    .wdp-workflow-shell {
        padding: 16px;
        gap: 20px;
    }

    .wdp-workflow-header {
        padding: 16px;
    }

    .wdp-workflow-header h1 {
        font-size: 1.4rem;
    }

    .wdp-workflow-stages {
        grid-template-columns: 1fr;
    }

    .wdp-workflow-summary ul {
        grid-template-columns: 1fr;
    }

    .wdp-lead-banner {
        gap: 24px;
        padding: 22px;
    }

    .wdp-lead-banner-copy h2 {
        font-size: 1.65rem;
    }

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

/* Animations */
.wdp-workflow-shell {
    animation: wdp-fade-up 480ms ease both;
}

.wdp-workflow-intro,
.wdp-lead-banner,
.wdp-stage,
.wdp-workflow-summary {
    opacity: 0;
    transform: translateY(8px);
    animation: wdp-fade-up 600ms ease both;
}

.wdp-workflow-intro {
    animation-delay: 100ms;
}

.wdp-lead-banner {
    animation-delay: 160ms;
    margin-bottom: 50px;
}

.wdp-workflow-stages .wdp-stage:nth-child(1) {
    animation-delay: 200ms;
}

.wdp-workflow-stages .wdp-stage:nth-child(2) {
    animation-delay: 280ms;
}

.wdp-workflow-stages .wdp-stage:nth-child(3) {
    animation-delay: 360ms;
}

.wdp-workflow-stages .wdp-stage:nth-child(4) {
    animation-delay: 440ms;
}

.wdp-workflow-summary {
    animation-delay: 520ms;
}

@keyframes wdp-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes wdp-data-stream {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleX(0.35) translateX(0);
    }

    50% {
        opacity: 0.85;
        transform: scaleX(1) translateX(8px);
    }
}

@keyframes wdp-terminal-glow {
    0%,
    100% {
        border-color: transparent;
        box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
    }

    50% {
        box-shadow: inset 0 0 24px rgba(56, 189, 248, 0.18), 0 0 18px rgba(34, 197, 94, 0.1);
    }
}

@keyframes wdp-metric-scan {
    0%,
    62% {
        transform: translateX(-120%);
    }

    82%,
    100% {
        transform: translateX(280%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wdp-workflow-shell,
    .wdp-workflow-intro,
    .wdp-lead-banner,
    .wdp-lead-banner::after,
    .wdp-stage,
    .wdp-stage::after,
    .wdp-stage-visual,
    .wdp-workflow-summary,
    .wdp-workflow-summary li::after {
        animation: none !important;
        transition: none !important;
    }
}

.wdp-phone-code {
    position: relative;
}

.wdp-phone-code select {
    width: 100%;
    padding-right: 35px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.wdp-phone-code::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 19px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    pointer-events: none;
}