.af-form-wrapper-412 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
    overflow: hidden;
}

/* Progress Bar */
.af-progress-container-412 {
    position: relative;
    margin-bottom: 40px;
}

.af-progress-bar-412 {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    right: 15px;
    z-index: 1;
}

.af-progress-fill-412 {
    height: 100%;
    width: 0%;
    background-color: #8B5CF6; /* Default purple */
    border-radius: 3px;
    transition: width 0.4s ease;
}

.af-steps-indicators-412 {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.af-step-indicator-412 {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.af-step-indicator-412.active {
    border-color: #8B5CF6;
    background: #8B5CF6;
    color: #fff;
}

/* Form Layout */
.af-multi-step-form-412 {
    overflow: hidden;
    position: relative;
}

.af-steps-slider-412 {
    display: flex;
    width: 300%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.af-step-412 {
    width: 33.333%;
    padding: 10px 5px;
}

.af-step-title-412 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
}

.af-grid-2-412 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width: 600px) {
    .af-grid-2-412 { grid-template-columns: 1fr; }
    .af-form-wrapper-412 { padding: 20px; }
}

/* Floating Labels Inputs */
.af-form-group-412 {
    position: relative;
    margin-bottom: 25px;
}

.af-input-412 {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.af-input-412.af-select-412 {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.af-label-412 {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    color: #64748b;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.af-form-group-412[dir="rtl"] .af-label-412 {
    left: auto;
    right: 14px;
}

.af-input-412:focus,
.af-input-412:not(:placeholder-shown),
.af-select-412:valid {
    border-color: #8B5CF6;
}

.af-input-412:focus ~ .af-label-412,
.af-input-412:not(:placeholder-shown) ~ .af-label-412,
.af-select-412:valid ~ .af-label-412 {
    top: 0;
    font-size: 0.8rem;
    color: #8B5CF6;
}

.af-textarea-412 {
    resize: vertical;
    min-height: 80px;
}
.af-textarea-412 ~ .af-label-412 {
    top: 20px;
}
.af-textarea-412:focus ~ .af-label-412,
.af-textarea-412:not(:placeholder-shown) ~ .af-label-412 {
    top: 0;
}

/* Radio Buttons */
.af-gender-group-412 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.af-radio-group-label-412 {
    font-weight: 500;
    color: #475569;
}

.af-radio-label-412 {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.af-radio-label-412 input {
    display: none;
}

.af-radio-custom-412 {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.af-radio-label-412 input:checked + .af-radio-custom-412 {
    border-color: #8B5CF6;
}

.af-radio-label-412 input:checked + .af-radio-custom-412::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #8B5CF6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Terms & Declaration */
.af-terms-container-412 {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background: #f8fafc;
}

.af-terms-title-412 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
}

.af-terms-scrollbox-412 {
    height: 150px;
    overflow-y: auto;
    padding-left: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.af-terms-scrollbox-412::-webkit-scrollbar {
    width: 6px;
}
.af-terms-scrollbox-412::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.af-declaration-group-412 {
    margin-bottom: 30px;
}

.af-checkbox-label-412 {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.af-checkbox-label-412 input {
    display: none;
}

.af-checkbox-custom-412 {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-left: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 2px;
}

.af-checkbox-label-412 input:checked + .af-checkbox-custom-412 {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

.af-checkbox-label-412 input:checked + .af-checkbox-custom-412::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.af-checkbox-text-412 {
    font-size: 1rem;
    line-height: 1.5;
    color: #334155;
}

/* Buttons */
.af-form-actions-412 {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.af-btn-412 {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-btn-primary-412 {
    background: #8B5CF6;
    color: #fff;
}
.af-btn-primary-412:hover {
    filter: brightness(1.1);
}

.af-btn-secondary-412 {
    background: #f1f5f9;
    color: #475569;
}
.af-btn-secondary-412:hover {
    background: #e2e8f0;
}

/* Spinner */
.af-spinner-412 {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: af-spin-412 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes af-spin-412 {
    to { transform: rotate(360deg); }
}

.af-btn-loading-412 .af-btn-text-412 {
    display: none;
}
.af-btn-loading-412 .af-spinner-412 {
    display: inline-block;
    margin-left: 0;
}

/* Input validation styling */
.af-input-error-412 {
    border-color: #ef4444 !important;
}
.af-input-error-412 ~ .af-label-412 {
    color: #ef4444 !important;
}

.af-success-msg-412 {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}