/* ============================================================ */
/* ======= نموذج الخدمة (Service Form) ======= */
/* ============================================================ */

.sf-wrapper {
    max-width: 650px;
    margin: 0 auto;
    text-align: right;
}

.sf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sf-field label {
    display: block;
    font-family: 'Amiri', serif;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
}

.sf-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0d5c8;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Amiri', serif;
    background-color: #faf8f5;
    transition: border-color 0.3s;
}

.sf-input:focus {
    border-color: #f5c842;
    outline: none;
}

textarea.sf-input {
    resize: vertical;
}

/* ======= أزرار الاختيار (choice) ======= */
.sf-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-choice-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 2px solid #e0d5c8;
    background-color: #ffffff;
    color: #2c3e50;
    font-family: 'Amiri', serif;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.sf-choice-btn i {
    color: #ccc;
    transition: color 0.3s;
}

.sf-choice-btn:hover {
    border-color: #f5c842;
}

.sf-choice-btn.selected {
    background-color: #f5c842;
    border-color: #f5c842;
    color: #1a2a3a;
    font-weight: 700;
}

.sf-choice-btn.selected i {
    color: #1a2a3a;
}

/* ======= رسالة الخطأ ======= */
.sf-error {
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
}

/* ======= زر الإرسال ======= */
.sf-submit-btn {
    padding: 14px;
    background-color: #f5c842;
    color: #1a2a3a;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Amiri', serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sf-submit-btn:hover {
    background-color: #e0b032;
    transform: scale(1.02);
}

.sf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ======= حالة "يجب تسجيل الدخول" ======= */
.sf-login-required {
    text-align: center;
    padding: 50px 20px;
}

.sf-login-required i {
    font-size: 40px;
    color: #f5c842;
    margin-bottom: 15px;
    display: block;
}

.sf-login-required p {
    font-family: 'Amiri', serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.sf-login-btn {
    padding: 12px 30px;
    background-color: #f5c842;
    color: #1a2a3a;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Amiri', serif;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.sf-login-btn:hover {
    background-color: #e0b032;
}

/* ======= حالة "امتلاء الحصة" (طلبان كل 24 ساعة) ======= */
.sf-quota-blocked {
    text-align: center;
    padding: 50px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.sf-quota-blocked > i {
    font-size: 46px;
    color: #f5c842;
    margin-bottom: 15px;
    display: block;
}

.sf-quota-blocked p {
    font-family: 'Amiri', serif;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.sf-quota-countdown {
    background-color: #fff8e1;
    border: 2px solid #f5c842;
    border-radius: 14px;
    padding: 14px;
    font-size: 18px !important;
    font-weight: 700;
    color: #7a5c00;
}

#sfQuotaTimer {
    font-family: 'Tahoma', sans-serif;
    font-size: 22px;
    color: #594c03;
    direction: ltr;
    display: inline-block;
    letter-spacing: 1px;
}

/* ======= حالة النجاح بعد الإرسال ======= */
.sf-success {
    text-align: center;
    padding: 50px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.sf-success > i {
    font-size: 50px;
    color: #43a047;
    margin-bottom: 15px;
    display: block;
}

.sf-success p {
    font-family: 'Amiri', serif;
    font-size: 18px;
    margin-bottom: 15px;
}

.sf-paid-note {
    background-color: #fff8e1;
    border: 1px solid #f5c842;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    color: #7a5c00;
}

.sf-goto-requests {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 28px;
    background-color: #594c03;
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Amiri', serif;
    font-weight: 700;
    transition: background-color 0.3s;
}

.sf-goto-requests:hover {
    background-color: #453a02;
}

/* ============================================================ */
/* ======= الوضع المظلم ======= */
/* ============================================================ */

body.dark-mode .sf-field label {
    color: #e0e0e0;
}

body.dark-mode .sf-input {
    background-color: #2d2d3d;
    border-color: #4a4a5a;
    color: #e0e0e0;
}

body.dark-mode .sf-input:focus {
    border-color: #f5c842;
}

body.dark-mode .sf-choice-btn {
    background-color: #2d2d3d;
    border-color: #4a4a5a;
    color: #e0e0e0;
}

body.dark-mode .sf-choice-btn.selected {
    background-color: #f5c842;
    color: #1a2a3a;
}

body.dark-mode .sf-error {
    background-color: #3d2626;
    color: #ff8a80;
    border-color: #5c3535;
}

body.dark-mode .sf-login-required p,
body.dark-mode .sf-success p,
body.dark-mode .sf-quota-blocked p {
    color: #e0e0e0;
}

body.dark-mode .sf-paid-note {
    background-color: #3d3420;
    border-color: #f5c842;
    color: #f5c842;
}

body.dark-mode .sf-quota-countdown {
    background-color: #3d3420;
    border-color: #f5c842;
    color: #f5c842;
}

body.dark-mode #sfQuotaTimer {
    color: #f5c842;
}