/* Modern Card-Style Container */
.kd-cf-container {
    max-width: 650px;
    margin: 40px auto;
    font-family: 'Inter', 'Segoe UI', Helvetica, sans-serif;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    box-sizing: border-box;
}

/* Progress Bar */
.kd-cf-progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    height: 6px;
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
}

.kd-cf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* Step Styling */
.kd-cf-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kd-cf-step.active {
    display: block;
    /* Normal block flow, not flex center */
    opacity: 1;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.kd-cf-step h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 600;
}

.kd-cf-step label {
    font-size: 16px;
    margin-bottom: 10px;
    color: #374151;
    display: block;
    font-weight: 500;
}

/* Inputs - Standard Box Style */
.kd-cf-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #111;
}

.kd-cf-input:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.kd-cf-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Radio Groups */
.kd-cf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kd-radio-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    background: #f9fafb;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 0;
}

.kd-radio-option label:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.kd-radio-option input[type="radio"] {
    margin: 0;
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
}

/* Buttons */
.kd-cf-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    /* Right align buttons */
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.kd-cf-btn {
    padding: 10px 24px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.kd-cf-next,
.kd-cf-submit {
    background-color: #4f46e5;
    /* Indigo */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.kd-cf-next:hover,
.kd-cf-submit:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.kd-cf-prev {
    background-color: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.kd-cf-prev:hover {
    background-color: #f9fafb;
    color: #111;
    border-color: #9ca3af;
}

/* Info Content */
.kd-cf-content {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
}

.kd-cf-content p {
    margin-bottom: 12px;
}

/* Shake Animation for Errors */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.kd-cf-step.shake {
    animation: shake 0.4s ease-in-out;
}