:root {
    --wd-pro-primary: #1e3a8a; /* A sophisticated deep sapphire/navy blue */
    --wd-pro-primary-hover: #172554;
    --wd-pro-text: #1e293b;
    --wd-pro-text-light: #64748b;
    --wd-pro-border: #e2e8f0;
    --wd-pro-bg: #ffffff;
    --wd-pro-bg-soft: #f8fafc;
    --wd-pro-success: #10b981;
    --wd-pro-error: #ef4444;
    --wd-pro-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wd-pro-form-wrapper {
    max-width: 600px;
    margin: 60px auto;
    font-family: inherit;
    color: var(--wd-pro-text);
    position: relative;
    z-index: 1;
}

/* Beautiful Animated Liquid Backdrop */
.wd-pro-form-wrapper::before {
    content: '';
    position: absolute;
    top: -150px; left: -50%; right: -50%; bottom: -150px;
    background: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(30, 58, 138, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 35%);
    z-index: -1;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
    filter: blur(50px);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(-40px, 50px) scale(1.1) rotate(10deg); }
}

.wd-pro-form-wrapper * {
    box-sizing: border-box;
}

/* --- Stepper Header --- */
.wd-pro-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 0 10px;
}
.wd-pro-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    transition: var(--wd-pro-transition);
}
.wd-pro-stepper .num {
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--wd-pro-text-light);
    transition: var(--wd-pro-transition);
    z-index: 1;
}
/* Water droplet shape */
.wd-pro-stepper .num::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50% 4px 50% 50%; /* Tiny rounding on the tip so it's not razor sharp */
    transform: rotate(-45deg); /* Points the sharp corner upward */
    border: 2px solid var(--wd-pro-border);
    background: var(--wd-pro-bg);
    z-index: -1;
    transition: var(--wd-pro-transition);
}
.wd-pro-stepper .text {
    font-size: 13px;
    font-weight: 600;
    color: var(--wd-pro-text-light);
    transition: var(--wd-pro-transition);
    margin-top: 5px;
}
.wd-pro-stepper .step.active .num,
.wd-pro-stepper .step.done .num {
    color: #fff;
}
.wd-pro-stepper .step.active .num::before,
.wd-pro-stepper .step.done .num::before {
    background: var(--wd-pro-primary);
    border-color: var(--wd-pro-primary);
    box-shadow: 0 0 0 5px rgba(30, 58, 138, 0.1);
}
.wd-pro-stepper .step.active .text,
.wd-pro-stepper .step.done .text {
    color: var(--wd-pro-text);
}
.wd-pro-stepper .line {
    flex: 1;
    height: 3px;
    background: var(--wd-pro-border);
    margin: 0 15px;
    position: relative;
    top: -12px;
    transition: var(--wd-pro-transition);
}
.wd-pro-stepper .line.active {
    background: var(--wd-pro-primary);
}

/* --- Content Cards (Glassmorphism) --- */
.wd-step-content {
    background: rgba(255, 255, 255, 0.85); /* Frosted Glass */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 16px 50px -15px rgba(30,58,138,0.2), inset 0 0 0 1px rgba(255,255,255,0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: slideUpFade 0.4s ease forwards;
    position: relative;
    z-index: 2;
}

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

.wd-pro-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--wd-pro-text);
    letter-spacing: -0.5px;
}
.wd-pro-header p {
    font-size: 16px;
    color: var(--wd-pro-text-light);
    margin-bottom: 35px;
}

/* --- Floating Label Inputs --- */
.wd-pro-inputs-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wd-row {
    display: flex;
    gap: 20px;
}

.wd-floating-input {
    position: relative;
    flex: 1;
}

.wd-floating-input input {
    width: 100%;
    height: 56px;
    padding: 22px 16px 6px;
    border: 1px solid var(--wd-pro-border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--wd-pro-text);
    background: transparent;
    transition: var(--wd-pro-transition);
    outline: none;
}
.wd-floating-input input:focus {
    border-color: var(--wd-pro-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.wd-floating-input label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--wd-pro-text-light);
    pointer-events: none;
    transition: var(--wd-pro-transition);
    margin: 0;
    font-weight: 400;
}

/* The Floating Magic */
.wd-floating-input input:focus ~ label,
.wd-floating-input input:not(:placeholder-shown) ~ label {
    top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wd-pro-primary);
}
.wd-floating-input input:not(:focus):not(:placeholder-shown) ~ label {
    color: var(--wd-pro-text-light);
}

.wd-floating-input.wd-has-icon input {
    padding-right: 45px;
}
.wd-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--wd-pro-text-light);
    cursor: pointer;
    padding: 0;
    display: flex;
    transition: color 0.2s;
}
.wd-toggle-password:hover {
    color: var(--wd-pro-primary);
}
.wd-toggle-password svg {
    width: 20px; height: 20px;
}

.wd-locked {
    background: var(--wd-pro-bg-soft) !important;
    color: var(--wd-pro-text-light) !important;
    border-color: var(--wd-pro-border) !important;
    pointer-events: none;
}

/* --- Password Strength --- */
.wd-password-strength {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-top: -8px;
    padding: 0 4px;
}
.wd-password-strength .crit {
    font-size: 12px;
    font-weight: 600;
    color: var(--wd-pro-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}
.wd-password-strength .crit::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wd-pro-border);
    transition: background 0.3s;
}
.wd-password-strength .crit.valid {
    color: var(--wd-pro-success);
}
.wd-password-strength .crit.valid::before {
    background: var(--wd-pro-success);
}

/* --- Radio Cards --- */
.wd-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 0;
}
.wd-type-card {
    cursor: pointer;
    position: relative;
}
.wd-type-card input {
    position: absolute;
    opacity: 0;
}
.wd-type-card .card-content {
    border: 2px solid var(--wd-pro-border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--wd-pro-transition);
    background: var(--wd-pro-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wd-type-card .card-icon {
    font-size: 28px;
    line-height: 1;
}
.wd-type-card .card-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--wd-pro-text);
}
.wd-type-card .card-desc {
    font-size: 12px;
    color: var(--wd-pro-text-light);
}

.wd-type-card:hover .card-content {
    border-color: #cbd5e1;
}

.wd-type-card input:checked + .card-content {
    border-color: var(--wd-pro-primary);
    background: #f0f4ff; /* slight blue tint */
    box-shadow: 0 4px 15px rgba(30,58,138,0.1);
}
.wd-type-card input:checked + .card-content .card-title {
    color: var(--wd-pro-primary);
}

/* --- Buttons --- */
.wd-pro-actions {
    display: flex;
    align-items: center;
    margin-top: 40px;
}
.wd-pro-actions.end {
    justify-content: flex-end;
}
.wd-pro-actions.split {
    justify-content: space-between;
}

.wd-btn-primary {
    background: linear-gradient(135deg, var(--wd-pro-primary), var(--wd-pro-primary-hover));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30,58,138,0.25);
    transition: var(--wd-pro-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* Liquid Wave Animation */
.wd-btn-primary::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 40%;
    transform: translateX(-50%) rotate(0deg);
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: wave 6s linear infinite;
    opacity: 0;
}
.wd-btn-primary:hover::after {
    opacity: 1;
}
@keyframes wave {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.wd-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,58,138,0.35);
}
.wd-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}
.wd-btn-primary:disabled {
    background: var(--wd-pro-border);
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}
.wd-btn-primary:disabled::after {
    display: none;
}

.wd-btn-secondary {
    background: transparent;
    color: var(--wd-pro-text-light);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 20px;
    transition: color 0.2s;
}
.wd-btn-secondary:hover {
    color: var(--wd-pro-text);
}

.wd-btn-text {
    background: none;
    border: none;
    color: var(--wd-pro-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

/* --- Elements --- */
.wd-email-locked {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--wd-pro-bg-soft);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--wd-pro-border);
}
.wd-email-locked .locked-icon {
    font-size: 16px;
}
.wd-email-locked #summary_email_text {
    flex: 1;
    font-weight: 600;
    color: var(--wd-pro-text);
}

.wd-pro-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 35px 0;
}
.wd-pro-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 18px;
}
.wd-pro-benefits .icon {
    width: 44px;
    height: 44px;
    background: var(--wd-pro-bg-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.wd-pro-benefits strong {
    display: block;
    font-size: 16px;
    color: var(--wd-pro-text);
    margin-bottom: 4px;
}
.wd-pro-benefits p {
    margin: 0;
    font-size: 14px;
    color: var(--wd-pro-text-light);
}

.wd-modern-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-top: 10px;
}
.wd-modern-checkbox input {
    position: absolute;
    opacity: 0;
}
.wd-modern-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    transition: var(--wd-pro-transition);
    position: relative;
}
.wd-modern-checkbox:hover .checkmark {
    border-color: var(--wd-pro-primary);
}
.wd-modern-checkbox input:checked + .checkmark {
    background: var(--wd-pro-primary);
    border-color: var(--wd-pro-primary);
}
.wd-modern-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.wd-modern-checkbox .label-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--wd-pro-text-light);
}
.wd-modern-checkbox .label-text a {
    color: var(--wd-pro-primary);
    font-weight: 600;
}

.wd-feedback-box {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideUpFade 0.3s ease forwards;
}

.wd-info-alert {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #0369a1;
    line-height: 1.5;
    margin: 10px 0;
}

.wd-system-alert {
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}
.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@media (max-width: 768px) {
    .wd-pro-form-wrapper {
        margin: 20px auto !important;
        width: 100% !important;
        padding: 0 15px !important;
    }
    .wd-step-content {
        padding: 30px 20px !important;
        border-radius: 12px !important;
    }
    .wd-row {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .wd-type-selector {
        grid-template-columns: 1fr !important;
    }
    .wd-pro-actions, .wd-pro-actions.split, .wd-pro-actions.end {
        flex-direction: column-reverse !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    .wd-btn-primary, .wd-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
    .wd-pro-stepper {
        margin-bottom: 30px !important;
    }
    .wd-pro-stepper .line {
        margin: 0 8px !important;
    }
    .wd-pro-stepper .text {
        font-size: 11px !important;
        text-align: center !important;
    }
    .wd-pro-header h2 {
        font-size: 22px !important;
    }
    .wd-pro-header p {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }
    .wd-email-locked {
        flex-wrap: wrap !important;
        padding: 12px 15px !important;
    }
    .wd-email-locked #summary_email_text {
        word-break: break-all !important;
        font-size: 13px !important;
    }
    .wd-pro-benefits .benefit-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .wd-pro-stepper .text {
        display: none !important;
    }
    .wd-pro-stepper .num {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
}
