.wpol-form-wrapper {
    direction: rtl;
    font-family: inherit;
    max-width: 470px;
    margin: 30px auto;
    padding: 0 15px;
}

.wpol-form-container {
    background: #ffffff;
    padding: 25px 30px 30px;
    border: 2px solid #D0E4EC;
    border-radius: 10px;
    box-shadow: 0 0px 10px rgba(0,0,0,0.03);
}

.wpol-form-step {
    display: none;
}
.wpol-form-step.active-step {
    display: block;
}

.wpol-form-row {
    margin-bottom: 20px;
}
.wpol-form-row:last-of-type {
    margin-bottom: 0;
}

.wpol-form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.wpol-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #D0E4EC;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    direction: ltr;
}
.wpol-input-group:focus-within {
    border-color: #2575fc; /* استفاده از رنگ آبی اصلی برای فوکوس */
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
}

.wpol-input-prefix {
    padding: 10px 12px;
    background-color: #F4FAFC;
    border-right: 1px solid #D0E4EC; /* اصلاح شده از cbd5e0 */
    color: #4a5568;
    font-size: 16px;
    white-space: nowrap;
    font-weight: 500;
}

.wpol-input,
input[type="tel"].wpol-input,
input[type="text"].wpol-input,
input[type="password"].wpol-input,
input[type="email"].wpol-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    color: #2d3748;
    background-color: #fff;
    line-height: 1.5;
}
.wpol-input.ltr-input {
    direction: ltr;
    text-align: left;
}
.wpol-input:focus {
    outline: none;
}
.wpol-input::placeholder {
    color: #a0aec0;
    font-size: 15px;
}

.wpol-field-desc {
    font-size: 15px;
    color: #718096;
    margin-top: 6px;
    display: block;
}

.wpol-required {
    color: #e53e3e;
    margin-right: 3px;
    font-weight: bold;
}

.wpol-button {
    display: inline-block;
    width: 100%;
    background-color: #009ACD;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    box-sizing: border-box;
    line-height: 1.5;
}
.wpol-button:hover:not(:disabled) {
    background-color: #004C70;
}
.wpol-button:disabled {
    background-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.8;
}

.wpol-button-link {
    background: none;
    border: none;
    color: #004C70;
    text-decoration: none;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}
.wpol-button-link:hover {
    color: #004C70;
    text-decoration: underline;
}

.wpol-submit-row {
    margin-top: 25px;
}

.wpol-message-area {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    border-width: 1px;
    border-style: solid;
    line-height: 1.6;
}
.wpol-message-area .wpol-message.success {
    background-color: #f0fff4;
    color: #2f855a;
    border-color: #D0E4EC;
}
.wpol-message-area .wpol-message.error {
    background-color: #fff5f5;
    color: #c53030;
    border-color: #D0E4EC;
}
.wpol-message-area .wpol-message.info {
    background-color: #ebf8ff;
    color: #2c5282;
    border-color: #D0E4EC;
}

.wpol-form-info {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    padding: 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    
}
.wpol-form-info .wpol-displayed-mobile {
    font-weight: 400;
    direction: ltr;
    display: inline-block;
    color: #009ACD;
}

.wpol-otp-timer-message,
.wpol-resend-timer {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-top: 8px;
    text-align: center;
}
.wpol-resend-otp-row {
    margin-top: 15px;
    text-align: center;
}

.wpol-otp-input-row {
}

.wpol-otp-inputs {
    display: flex;
    justify-content: space-between;
    direction: ltr;
    margin-top: 5px;
    margin-bottom: 5px;
}

.wpol-otp-digit-input {
    width: calc(25% - 10px);
    max-width: 50px;
    height: 55px;   
    text-align: center;
    font-size: 22px;
    border: 1px solid #D0E4EC;
    border-radius: 6px;
    padding: 0;
    line-height: 55px;
    box-sizing: border-box;
    direction: ltr;
    font-weight: 500;
    color: #2d3748;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpol-otp-digit-input:focus {
    border-color: #D0E4EC;
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
    outline: none;
}

/* === استایل‌های جدید برای بخش پیام قفل === */
.wpol-lockout-message {
    background-color: #fff3cd; /* زرد روشن برای هشدار */
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.wpol-lockout-message .wpol-lockout-text {
    margin: 0 0 10px 0;
    font-weight: 500;
}

.wpol-lockout-message .wpol-lockout-timer {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #c53030; /* قرمز برای تاکید روی زمان */
}
/* === پایان استایل‌های بخش قفل === */


@media (max-width: 480px) {
    .wpol-form-wrapper {
        margin: 15px auto;
        padding: 0 10px;
    }
    .wpol-form-container {
        padding: 20px;
    }
    .wpol-input,
    input[type="tel"].wpol-input,
    input[type="text"].wpol-input {
        font-size: 15px;
        padding: 9px 10px;
    }
    .wpol-button {
        padding: 10px 15px;
        font-size: 15px;
    }
    .wpol-input-prefix {
        padding: 9px 10px;
        font-size: 15px;
    }
    .wpol-otp-digit-input {
        max-width: 45px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        margin: 0 2px;
    }
    .wpol-otp-inputs {
        justify-content: space-around;
    }
    .wpol-lockout-message {
        font-size: 13px;
        padding: 10px;
    }
    .wpol-lockout-message .wpol-lockout-timer {
        font-size: 12px;
    }
}