@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Main Container CSS */
/* .onboarding-container {
    font-family: 'Inter', sans-serif;
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 42px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
} */

@media (max-width: 600px) {
    .onboarding-container {
        padding: 24px 20px;
        margin: 10px;
    }
}

/* Helpers & Utilities */
.wpcf7-hidden {
    display: none !important;
}

.error-text {
    color: #e04444;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: center;
}

.success-text {
    color: #28a745;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: center;
}

/* Input Fields styling */
.onboarding-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.onboarding-input:focus {
    border-color: #4F2FB8;
    box-shadow: 0 0 0 3px rgba(79, 47, 184, 0.1);
}

/* Primary Button */
.onboarding-btn-primary,
#email_submit,
#otp-submit {
    width: 100% !important;
    background-color: #4d2fb7 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 24px !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(77, 47, 183, 0.15) !important;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.onboarding-btn-primary:hover,
#email_submit:hover,
#otp-submit:hover {
    background-color: #3b2195 !important;
    box-shadow: 0 8px 18px rgba(77, 47, 183, 0.25) !important;
}

.onboarding-btn-primary:active,
#email_submit:active,
#otp-submit:active {
    transform: translateY(1px) !important;
}

/* Link Styling */
.onboarding-container a {
    color: #4F2FB8;
    text-decoration: none;
    font-weight: 500;
}

.onboarding-container a:hover {
    text-decoration: underline;
}

/* Email Step specific styles */
.emailsign .input-group {
    margin-bottom: 20px;
}

.emailsign .acceptance-wrapper {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 22px;
}

.emailsign .acceptance-wrapper input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.emailsign .submit-wrapper {
    margin-bottom: 20px;
}

.emailsign .login-link {
    text-align: center;
    color: #94959a;
    font-size: 14px;
    margin-top: 15px;
}

/* SSO Buttons & Divider */
.sso-divider {
    text-align: center;
    margin: 24px 0 16px;
    position: relative;
}

.sso-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #efeff5;
    z-index: 1;
}

.sso-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    z-index: 2;
    color: #94959a;
    font-size: 13px;
    font-weight: 500;
}

.google-micro {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.sso-btn {
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
}

.sso-btn:hover {
    transform: translateY(-2px);
}

.sso-btn img {
    height: 48px;
    display: block;
}

/* OTP Verify Specific Styles */
.twostep .step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f1720;
}

.twostep .email-text {
    font-size: 15px;
    color: #606266;
    margin-bottom: 24px;
}

.twostep .email-text img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 6px;
}

.twostep .four-digit {
    font-size: 14px;
    color: #909399;
    margin-bottom: 15px;
}

.otp-inputs-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

.otp-inputs-wrapper .wpcf7-form-control-wrap {
    display: inline-block !important;
    width: auto !important;
}

.email-otp-input {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    text-align: center !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    -moz-appearance: textfield !important;
    display: inline-block !important;
}

.email-otp-input::-webkit-outer-spin-button,
.email-otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.email-otp-input:focus {
    border-color: #4F2FB8;
    box-shadow: 0 0 0 3px rgba(79, 47, 184, 0.1);
}

.twostep .submit-wrapper {
    margin: 20px auto;
    max-width: 280px;
}

.twostep .get-code {
    font-size: 14px;
    color: #606266;
    margin-top: 18px;
}

/* Wizard Steps Styles (.application-section-form) */
.application-section-form .card {
    border: none;
    padding: 0;
}

.application-section-form hr.divider {
    border: none;
    border-top: 1px solid #efeff5;
    margin: 24px 0 28px;
}

.application-section-form .title {
    font-size: 26px;
    font-weight: 700;
    margin: 6px 0 10px;
    color: #0f1720;
}

.application-section-form .subtitle {
    color: #606266;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.application-section-form .field {
    margin-top: 16px;
    margin-bottom: 16px;
}

.application-section-form .input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.application-section-form .input:focus {
    border-color: #4F2FB8;
    box-shadow: 0 0 0 3px rgba(79, 47, 184, 0.1);
}

/* Phone Field styles */
.phone-wrapper {
    display: flex !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.phone-wrapper:focus-within {
    border-color: #4F2FB8 !important;
    box-shadow: 0 0 0 3px rgba(79, 47, 184, 0.1) !important;
}

.phone-wrapper select.country {
    border: none !important;
    background: transparent !important;
    padding: 12px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    font-size: 16px !important;
    outline: none !important;
    cursor: pointer !important;
    width: 80px !important;
    flex: 0 0 80px !important;
    display: inline-block !important;
    max-width: 80px !important;
    min-width: 80px !important;
    box-sizing: border-box !important;
}

.phone-wrapper input.phone-input {
    flex: 1 1 auto !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

/* Setup Steps (Pane 4) */
.application-section-form .center {
    text-align: center;
    padding: 16px 0;
}

.onboarding-loader-spinner {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 16px !important;
    display: block !important;
    animation: onboarding-spin 1.5s linear infinite !important;
}

@keyframes onboarding-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.application-section-form .progress-bar {
    margin: 16px auto 22px;
    width: 280px;
    height: 10px;
    background: #e9e9f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.application-section-form .progress-fill {
    height: 100%;
    width: 0%;
    background: #4F2FB8;
    transition: width 220ms linear;
}

.application-section-form .welcome-btn {
    background: #4F2FB8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 0 6px 14px rgba(79, 47, 184, 0.15);
    transition: background-color 0.2s, transform 0.1s;
}

.application-section-form .welcome-btn:hover {
    background: #3e2496;
}

.confetti {
    font-size: 64px;
    margin-bottom: 12px;
}

/* Actions Section */
.application-section-form .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.application-section-form .btn,
#nextBtn,
#backBtn {
    padding: 12px 24px !important;
    border-radius: 10px !important;
    border: none !important;
    font-size: 15px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: background-color 0.2s, color 0.2s !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.application-section-form .btn img,
#nextBtn img,
#backBtn img {
    height: 14px !important;
    width: auto !important;
    display: inline-block !important;
}

.application-section-form .btn.ghost,
#backBtn {
    background: transparent !important;
    color: #606266 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.application-section-form .btn.ghost:hover,
#backBtn:hover {
    background: #f5f5f7 !important;
}

.application-section-form .btn.primary,
#nextBtn {
    background: #4F2FB8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(79, 47, 184, 0.15) !important;
}

.application-section-form .btn.primary:hover,
#nextBtn:hover {
    background: #3e2496 !important;
}

.application-section-form .btn.disabled,
#nextBtn.disabled {
    background: #ededf7 !important;
    color: #9ea0ad !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Hidden elements */
.pane.hidden {
    display: none !important;
}

.pane.fade {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.pane.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* Password Set CSS styling (.password-set) */
.password-set h2 {
    font-size: 28px;
    font-weight: 600;
    color: #181C32;
    margin-bottom: 8px;
    line-height: 36px;
}

.password-set .lead {
    font-size: 14px;
    color: #94959A;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 24px;
}

.password-set .card {
    border: none;
    padding: 0;
}

.password-set .field {
    margin-bottom: 18px;
}

.password-set .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-set input[type="password"],
.password-set input[type="text"] {
    width: 100%;
    padding: 16px 46px 16px 18px;
    border-radius: 8px;
    border: 2px solid rgba(79, 47, 184, 0.15);
    background: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.password-set input[type="password"]:focus,
.password-set input[type="text"]:focus {
    border-color: #4F2FB8;
    box-shadow: 0 0 0 3px rgba(79, 47, 184, 0.1);
}

.password-set .input-invalid {
    border-color: #e04444 !important;
    box-shadow: 0 0 0 3px rgba(224, 68, 68, 0.08) !important;
}

.password-set .eye-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.password-set .btn,
#submitBtn {
    width: 100% !important;
    background: #4F2FB8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(79, 47, 184, 0.15) !important;
    transition: background-color 0.2s, transform 0.1s !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    line-height: normal !important;
}

.password-set .btn:hover,
#submitBtn:hover {
    background: #3e2496 !important;
}

.password-set .btn:active,
#submitBtn:active {
    transform: translateY(1px) !important;
}

.password-set .btn[disabled],
#submitBtn[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* User custom styles from password-rules.css */
ul.rules {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

ul.rules li.rule {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    color: #e04444 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

ul.rules li.rule::before,
ul.rules li.rule::after {
    content: none !important;
    display: none !important;
}

.rule .onboarding-rule-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.rule .onboarding-rule-icon::before {
    content: "!" !important;
    display: block !important;
}

.rule:not(.valid) .onboarding-rule-icon {
    background-color: #e04444 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}

ul.rules li.rule.valid {
    color: #28a745 !important;
}

.rule.valid .onboarding-rule-icon {
    background-color: #28a745 !important;
    clip-path: circle(50%) !important;
}

.rule.valid .onboarding-rule-icon::before {
    content: "✓" !important;
}

/* User custom styles from progress-bar.css */
#progress-bar-container {
    position: relative;
    width: 100%;
    background: #f3f3f8;
    height: 34px;
    border-radius: 17px;
    margin-bottom: 24px;
}

#progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 8px;
    background: #4d2fb7;
    width: 0%;
    transition: width 0.3s ease-in-out;
    border-radius: 4px;
    margin-left: 13px;
    max-width: calc(100% - 26px);
}

.step-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.step-indicator {
    position: relative;
    width: 34px;
    height: 34px;
    background: #f3f3f8;
    border: 2px solid #e9e7f2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    color: #9a9aa7;
    z-index: 10;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

.step-indicator.active {
    background: #4d2fb7;
    color: white;
    border-color: #4d2fb7;
}

.step-indicator.completed {
    background: #4d2fb7;
    color: white;
    border-color: #4d2fb7;
}