/* --- ACP Visitor Registration Styles --- */

.acp-reg-wrapper {
    max-width: 600px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    font-family: inherit;
    direction: rtl;
    text-align: right;
    transition: all 0.3s ease;
}

/* === دعم التحويل التلقائي للغة الإنجليزية (LTR) === */
[dir="ltr"] .acp-reg-wrapper,
[dir="ltr"] .acp-title,
[dir="ltr"] .acp-subtitle,
[dir="ltr"] .acp-form-row label,
[dir="ltr"] .acp-visitor-details,
[dir="ltr"] .acp-success-card {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .acp-form-row input[type="text"],
[dir="ltr"] .acp-form-row input[type="tel"],
[dir="ltr"] .acp-form-row input[type="email"],
[dir="ltr"] .acp-form-row select {
    direction: ltr;
    text-align: left;
}

/* زر تبديل اللغة واتجاهه التلقائي */
.acp-lang-switcher {
    margin-bottom: 20px;
    text-align: left;
}
[dir="ltr"] .acp-lang-switcher {
    text-align: right;
}

.acp-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.acp-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.acp-form-row {
    margin-bottom: 20px;
}

.acp-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* التنسيق الأساسي لمدخلات النص والقوائم المنسدلة */
.acp-form-row input[type="text"],
.acp-form-row input[type="tel"],
.acp-form-row input[type="email"],
.acp-form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fdfdfd;
    transition: all 0.3s;
}

/* إصلاح نهائي لعرض النص داخل القوائم المنسدلة وتجاوز تنسيقات قالب جنة */
.acp-form-row select {
    color: #333 !important;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    padding: 12px 15px !important;
    display: block !important;
    height: auto !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9999 !important;
    position: relative !important;
}

.acp-form-row select option {
    color: #333 !important;
    background-color: #ffffff !important;
}

.acp-form-row input:focus,
.acp-form-row select:focus {
    border-color: #ff3b30;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

/* إصلاح أزرار الاختيار (Radio Buttons) لتظهر بوضوح */
.acp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.acp-radio-group label {
    font-weight: normal;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    cursor: pointer;
    margin-left: 15px !important;
}

[dir="ltr"] .acp-radio-group label {
    margin-left: 0 !important;
    margin-right: 15px !important;
}

.acp-radio-group input[type="radio"] {
    display: inline-block !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-left: 5px !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.acp-form-submit button,
.acp-actions button {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

.acp-form-submit button:hover,
.acp-actions button:hover {
    background: #e03229;
}

/* === تعديل وتثبيت أبعاد صندوق السوشيال ميديا والأيقونات === */
.acp-social-follow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
    direction: rtl;
    text-align: right;
}

[dir="ltr"] .acp-social-follow {
    flex-direction: row-reverse;
    text-align: left;
}

.acp-social-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acp-social-icon {
    width: 38px;
    height: 38px;
    background: #ff3b30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acp-social-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: currentColor;
}

.acp-social-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 3px 0;
}

.acp-social-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.acp-social-buttons {
    display: flex;
    gap: 10px;
}

.acp-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.acp-social-btn svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: currentColor;
    flex-shrink: 0;
}

.acp-facebook {
    background-color: #1877f2;
}

.acp-instagram {
    background-color: #e4405f;
}

.acp-social-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Success Card Styling */
.acp-success-card {
    background: #f8f9fa;
    border: 2px dashed #28a745;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.acp-success-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    font-size: 30px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acp-success-card h3 {
    color: #28a745;
    font-size: 22px;
    margin-bottom: 10px;
}

.acp-visitor-details {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #eee;
}

.acp-visitor-details p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.acp-code-highlight {
    color: #ff3b30;
    font-weight: 700;
    font-size: 18px;
}

.acp-card-note {
    font-size: 14px;
    color: #666;
}