﻿/* إعداد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
}

/* تنسيق الحاوية */
.container {
    max-width: 650px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

    /* العنوان */
    .container h2 {
        font-size: 28px;
        color: #222;
        margin-bottom: 25px;
        font-weight: 700;
        text-align: center;
    }

/* تنسيق الحقول */
.form-group label {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.form-control {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
    }

/* تنسيق زر التسجيل */
button[type="submit"] {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: block;
    width: 100%;
    margin-top: 20px;
}

    button[type="submit"]:hover {
        background: linear-gradient(90deg, #0056b3, #00449e);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

/* تنسيق الملاحظات */
.text-muted {
    font-size: 13px;
    color: #888;
}

/* الرسائل */
.alert {
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
}

.alert-success {
    background-color: #e6f7e6;
    color: #237a23;
    border: 1px solid #c3e6c3;
}

.alert-danger {
    background-color: #fbe5e5;
    color: #a94442;
    border: 1px solid #f5c2c2;
}

/* الصور المعروضة أسفل الحقول */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* تحسين عرض الحقول */
.input-group-text {
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    font-size: 15px;
    color: #555;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

/* تحسين العرض على الهواتف */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    h2 {
        font-size: 22px;
    }

    button[type="submit"] {
        font-size: 15px;
        padding: 10px 18px;
    }

    .form-control {
        font-size: 14px;
        padding: 10px;
    }
}

. /* General styling for the modal */
#termsModal .modal-content {
    font-family: 'Cairo', sans-serif; /* Use a modern, clean Arabic-friendly font */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header styling */
#termsModal .modal-header {
    background-color: #007bff; /* A calming blue for the header */
    color: #fff;
    padding: 15px;
}

    #termsModal .modal-header .modal-title {
        font-size: 1.5rem;
        font-weight: bold;
    }

    #termsModal .modal-header .btn-close {
        color: #fff;
        opacity: 0.8;
    }

/* Body styling */
#termsModal .modal-body {
    padding: 20px;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

    /* Headings in the body */
    #termsModal .modal-body h6 {
        font-size: 1.2rem;
        font-weight: bold;
        color: #007bff; /* Highlight section titles with blue */
        margin-bottom: 10px;
    }

    /* Paragraphs */
    #termsModal .modal-body p {
        margin-bottom: 15px;
        text-align: justify;
    }

    /* Bullet points */
    #termsModal .modal-body ul {
        padding-left: 20px;
        margin-bottom: 15px;
    }

        #termsModal .modal-body ul li {
            margin-bottom: 10px;
            color: #555; /* Subtle color for list items */
        }

/* Footer styling */
#termsModal .modal-footer {
    background-color: #f8f9fa; /* Light gray background for footer */
    padding: 15px;
}

    #termsModal .modal-footer .btn {
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 5px;
    }

    #termsModal .modal-footer .btn-secondary {
        background-color: #6c757d;
        border: none;
    }

        #termsModal .modal-footer .btn-secondary:hover {
            background-color: #5a6268;
        }

    #termsModal .modal-footer .btn-success {
        background-color: #28a745;
        border: none;
    }

        #termsModal .modal-footer .btn-success:hover {
            background-color: #218838;
        }

/* Responsive adjustments for small screens */
/* ضبط تمركز النافذة على الشاشة */
@media (max-width: 768px) {
    #termsModal .modal-dialog {
        margin: 10vh auto; /* تعديل المسافة من الأعلى والأسفل */
        max-width: 90%; /* تقليل العرض لتناسب الهواتف */
    }

    #termsModal .modal-content {
        border-radius: 10px;
        padding: 15px;
    }
}

/* التأكد من أن النافذة تظهر بشكل مركزي على جميع الأجهزة */
#termsModal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#termsModal .modal-content {
    margin: auto;
}





.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #0056b3;
    color: #fff;
    border-bottom: 2px solid #004085;
}

.modal-footer .btn-success {
    background-color: #28a745;
    border: none;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border: none;
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
}
