/* ==========================================================================
   SAR Redirect Form - Smart Frontend Styles - V2.4.0
   ========================================================================== */

.sar-smart-form-container {
    direction: rtl;
    font-family: "iranyekanwebmedium_FaNum", Sans-serif;
    position: relative;
    width: 100%;
}

.sar-redirect-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.sar-form-row {
    margin-bottom: 18px;
}

.sar-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.sar-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--e-global-color-accent);
    border-radius: 999px;
    font-size: 15px;
    background-color: #fafafa;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.sar-form-select:focus {
    border-color: var(--e-global-color-accent);
    background-color: #fff;
}

.sar-form-select:disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
}

/* Action Buttons */
.sar-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.sar-action-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s;
}

.sar-action-btn:hover {
    opacity: 0.85;
}

/* ==========================================================================
   Modals (Popups) - Perfectly Centered Flexbox Layout
   ========================================================================== */

.sar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    direction: rtl;
    
    /* Modern Flexbox Centering */
    display: flex;
    justify-content: center;
    align-items: center;
}

.sar-modal-box {
    background-color: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    
    /* Basic animation */
    transform: scale(0.95);
    animation: sarPop 0.3s forwards;
}

@keyframes sarPop {
    to { transform: scale(1); }
}

.sar-modal-close {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.sar-modal-close:hover {
    color: #ff3b30;
}

.sar-modal-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: right;
    margin-top: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sar-call-buttons-list,
.sar-chat-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sar-app-btn,
.sar-call-btn-dynamic {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    transition: opacity 0.3s;
}

.sar-app-btn:hover,
.sar-call-btn-dynamic:hover {
    opacity: 0.9;
}