﻿/* استيراد خط كايرو */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* إعدادات عامة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(to bottom right, #f8f9fa, #f0e6ff);
    color: #222;
    line-height: 1.7;
    direction: rtl;
    /* لجعل المحتوى عموديًا مركّز */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* الحاوية العامة */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* الهيدر */
header {
    background: #6a0dad; /* بنفسجي غامق */
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 4px solid #4b0082; /* بنفسجي أغمق */
    flex-shrink: 0; /* يمنع الهيدر من الانكماش */
}

    header h1 {
        font-size: 2rem;
    }

nav {
    margin-top: 15px;
}

    nav a {
        color: white;
        font-weight: bold;
        text-decoration: none;
        margin: 0 10px;
    }

        nav a:hover {
            text-decoration: underline;
        }

/* الفقرة التمهيدية */
section.fade-in {
    background: #ffffffcc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 6px rgba(106, 13, 173, 0.15);
    animation: fadeIn 1s ease forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* النموذج - مركّز عموديًا وأفقيًا */
main.container {
    flex-grow: 1; /* يملأ المساحة بين الهيدر والفوتر */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.complaint-form {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #ddd;
    border-right: 5px solid #6a0dad; /* بنفسجي غامق */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(106, 13, 173, 0.15);
    max-width: 700px;
    width: 100%; /* ليملأ عرض الحاوية */
    box-sizing: border-box;
    margin-top: 30px;
}

    .complaint-form label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
        color: #4b0082; /* بنفسجي داكن */
    }

    .complaint-form input,
    .complaint-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        background-color: #f9f9f9;
        box-sizing: border-box;
    }

        .complaint-form input:focus,
        .complaint-form textarea:focus {
            border-color: #6a0dad; /* بنفسجي غامق */
            outline: none;
            background-color: #ffffff;
        }

    .complaint-form button {
        background: #6a0dad; /* بنفسجي غامق */
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 6px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
        width: 100%;
    }

        .complaint-form button:hover {
            background: #4b0082; /* بنفسجي داكن */
        }

/* الفوتر */
footer {
    background: #4b0082; /* بنفسجي داكن */
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 5px solid #6a0dad; /* بنفسجي غامق */
    flex-shrink: 0; /* لمنع انكماشه */
}

.footer-links {
    margin-top: 15px;
}

    .footer-links a {
        color: #9b30ff; /* بنفسجي متوسط */
        margin: 0 8px;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #d1b3ff; /* بنفسجي فاتح */
            text-decoration: underline;
        }

/* ظهور تدريجي */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة لجميع الأجهزة */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 15px;
    }

    .complaint-form {
        padding: 20px;
    }

        .complaint-form input,
        .complaint-form textarea {
            font-size: 0.95rem;
        }

    footer {
        font-size: 0.8rem;
    }
}
