/* Multi-Step Registration Form Styles */
.lpre-register-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lpre-register-header {
    text-align: center;
    margin-bottom: 32px;
}

.lpre-register-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 8px;
    transition: all 0.3s ease;
}

.lpre-register-header p {
    font-size: 15px;
    color: #475467;
    margin: 0;
    transition: all 0.3s ease;
}

/* Progress Indicator */
.lpre-step-progress {
    margin-bottom: 32px;
}

.lpre-step-progress-bar {
    height: 4px;
    background: #e4e7ec;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.lpre-step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5a3c 0%, #d02b2b 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 33.33%;
}

.lpre-step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.lpre-step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lpre-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e4e7ec;
    z-index: -1;
    transition: background 0.3s ease;
}

.lpre-step-indicator:last-child::before {
    display: none;
}

.lpre-step-indicator.completed::before {
    background: #d02b2b;
}

.lpre-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f4f7;
    border: 2px solid #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #98a2b3;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.lpre-step-indicator.active .lpre-step-number {
    background: linear-gradient(135deg, #ff5a3c 0%, #d02b2b 100%);
    border-color: #d02b2b;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(208, 43, 43, 0.1);
}

.lpre-step-indicator.completed .lpre-step-number {
    background: #d02b2b;
    border-color: #d02b2b;
    color: #fff;
}

.lpre-step-indicator.completed .lpre-step-number::after {
    content: '✓';
    font-size: 18px;
}

.lpre-step-label {
    font-size: 12px;
    color: #98a2b3;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.lpre-step-indicator.active .lpre-step-label {
    color: #d02b2b;
    font-weight: 600;
}

.lpre-step-indicator.completed .lpre-step-label {
    color: #344054;
}

/* Form Steps */
.lpre-multistep-form {
    position: relative;
}

.lpre-form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.lpre-form-step.active {
    display: block;
}

.lpre-form-step.completed {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lpre-step-content {
    min-height: 300px;
}

.lpre-step-title {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 8px;
    text-align: center;
}

.lpre-step-description {
    font-size: 15px;
    color: #475467;
    margin: 0 0 32px;
    text-align: center;
}

/* Role Selection */
.lpre-role-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.lpre-role-card {
    position: relative;
    padding: 24px;
    border: 2px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lpre-role-card:hover {
    border-color: #d02b2b;
    box-shadow: 0 4px 12px rgba(208, 43, 43, 0.1);
    transform: translateY(-2px);
}

.lpre-role-card.selected {
    border-color: #d02b2b;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(208, 43, 43, 0.1);
}

.lpre-role-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f7;
    border-radius: 12px;
    color: #98a2b3;
    transition: all 0.3s ease;
}

.lpre-role-card.selected .lpre-role-icon {
    background: #ffe5e5;
    color: #d02b2b;
}

.lpre-role-icon svg {
    width: 28px;
    height: 28px;
}

.lpre-role-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    margin: 0 0 8px;
}

.lpre-role-card p {
    font-size: 13px;
    color: #475467;
    margin: 0;
    line-height: 1.5;
}

.lpre-role-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #d02b2b;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.lpre-role-card.selected .lpre-role-check {
    display: flex;
}

.lpre-role-check svg {
    width: 14px;
    height: 14px;
}

/* Form Fields */
.lpre-field {
    margin-bottom: 24px;
}

.lpre-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    margin-bottom: 8px;
}

.lpre-field .required {
    color: #d02b2b;
    margin-left: 2px;
}

.lpre-field input[type="text"],
.lpre-field input[type="email"],
.lpre-field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    font-size: 15px;
    color: #101828;
    background: #fefefe;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.lpre-field input:focus {
    border-color: #d02b2b;
    box-shadow: 0 0 0 3px rgba(208, 43, 43, 0.15);
    outline: none;
}

.lpre-field input.error {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.1);
}

.lpre-field-error {
    display: none;
    font-size: 13px;
    color: #f04438;
    margin-top: 6px;
}

.lpre-field-error:not(:empty) {
    display: block;
}

.lpre-field-hint {
    display: block;
    font-size: 12px;
    color: #98a2b3;
    margin-top: 6px;
}

/* Password Wrapper */
.lpre-password-wrapper {
    position: relative;
}

.lpre-password-wrapper input {
    padding-right: 48px;
}

.lpre-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #98a2b3;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lpre-toggle-password:hover {
    color: #344054;
}

.lpre-toggle-password svg {
    width: 20px;
    height: 20px;
}

/* Password Strength */
.lpre-password-strength {
    margin-top: 12px;
}

.lpre-password-strength-bar {
    height: 4px;
    background: #e4e7ec;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.lpre-password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.lpre-password-strength-fill.weak {
    background: #f04438;
}

.lpre-password-strength-fill.medium {
    background: #f79009;
}

.lpre-password-strength-fill.strong {
    background: #12b76a;
}

.lpre-password-strength-text {
    font-size: 12px;
    font-weight: 500;
    color: #98a2b3;
}

.lpre-password-strength-text.weak {
    color: #f04438;
}

.lpre-password-strength-text.medium {
    color: #f79009;
}

.lpre-password-strength-text.strong {
    color: #12b76a;
}

/* Password Requirements */
.lpre-password-requirements {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.lpre-requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin: 0 0 12px;
}

.lpre-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lpre-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #98a2b3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.lpre-requirement:last-child {
    margin-bottom: 0;
}

.lpre-requirement.met {
    color: #12b76a;
}

.lpre-check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

.lpre-requirement:not(.met) .lpre-check-icon {
    opacity: 0.3;
}

/* Form Navigation */
.lpre-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e4e7ec;
}

.lpre-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.lpre-btn-back {
    background: #fff;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.lpre-btn-back:hover {
    background: #f9fafb;
    border-color: #98a2b3;
}

.lpre-btn-next,
.lpre-btn-submit {
    background: linear-gradient(135deg, #ff5a3c 0%, #d02b2b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(208, 43, 43, 0.25);
}

.lpre-btn-next:hover,
.lpre-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(208, 43, 43, 0.3);
}

.lpre-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lpre-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.lpre-register-error,
.lpre-register-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.lpre-register-error {
    background: #fff2f0;
    border: 1px solid #ffcccc;
    color: #b42318;
}

.lpre-register-success {
    background: #f0fdf4;
    border: 1px solid #abefc6;
    color: #027a48;
}

.lpre-register-error p,
.lpre-register-success p {
    margin: 0;
}

/* Footer */
.lpre-register-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #475467;
}

.lpre-register-footer a {
    color: #d02b2b;
    font-weight: 500;
    text-decoration: none;
}

.lpre-register-footer a:hover {
    color: #a32222;
}

/* Responsive */
@media (max-width: 768px) {
    .lpre-register-wrapper {
        margin: 24px 16px;
        padding: 24px;
    }

    .lpre-step-indicators {
        gap: 8px;
    }

    .lpre-step-label {
        font-size: 11px;
    }

    .lpre-role-selection {
        grid-template-columns: 1fr;
    }

    .lpre-step-title {
        font-size: 20px;
    }

    .lpre-form-navigation {
        flex-direction: column;
    }

    .lpre-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lpre-step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .lpre-step-label {
        font-size: 10px;
    }

    .lpre-role-card {
        padding: 20px;
    }

    .lpre-role-icon {
        width: 48px;
        height: 48px;
    }
}
