﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #7b2ff7;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    header h1 {
        margin: 0 0 0.5rem;
        font-size: clamp(1.8rem, 4vw, 2.6rem);
    }

    header p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
        opacity: 0.9;
    }

.about {
    background-color: #f9f9f9;
    padding: 2rem 1rem;
    margin: 1rem auto;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

    .about h2 {
        text-align: center;
        color: #7b2ff7;
        margin-bottom: 1rem;
        font-size: clamp(1.4rem, 3vw, 2rem);
    }

    .about p {
        font-size: 1.05rem;
        color: #444;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.7;
        text-align: center;
    }

.services,
.statistics,
.form-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

    .services h2,
    .statistics h2,
    .form-section h2 {
        text-align: center;
        color: #7b2ff7;
        margin-bottom: 1.5rem;
        font-size: clamp(1.4rem, 3vw, 2rem);
    }

    .services ul {
        list-style: none;
        padding: 0;
        max-width: 600px;
        margin: auto;
    }

        .services ul li {
            padding: 0.6rem 0;
            border-bottom: 1px solid #ddd;
            font-size: 1.1rem;
        }

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.stat {
    background-color: #ede7f6;
    padding: 1.2rem;
    border-radius: 10px;
    width: 150px;
    box-shadow: 0 2px 6px rgba(123, 47, 247, 0.15);
}

    .stat .number {
        font-size: 2rem;
        color: #7b2ff7;
        font-weight: bold;
    }

    .stat span {
        display: block;
        margin-top: 0.3rem;
        font-size: 0.95rem;
    }

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 0.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    input:focus,
    textarea:focus {
        border-color: #7b2ff7;
        outline: none;
    }

button[type="submit"] {
    background-color: #7b2ff7;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button[type="submit"]:hover {
        background-color: #6926d9;
    }

footer {
    background-color: #f2f2f2;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto;
    color: #666;
}

    footer nav a {
        color: #7b2ff7;
        text-decoration: none;
        margin: 0 10px;
        font-weight: 600;
    }

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

@media (max-width: 720px) {
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 80%;
    }

    .form-section,
    .services,
    .statistics {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    .card .icon {
        font-size: 2.5rem;
        margin-bottom: 0.7rem;
        color: #7b2ff7;
    }

    .card h3 {
        font-size: 1.1rem;
        margin: 0;
    }
    .card p {
        font-size: 0.95rem;
        color: #555;
        margin-top: 0.5rem;
        line-height: 1.4;
    }
.scroll-button {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: #ffffff;
    color: #7b2ff7;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .scroll-button:hover {
        background-color: #ece6fc;
        color: #5c20be;
    }
#complaintForm {
    scroll-margin-top: 100px;
}
input[type="tel"]::placeholder {
    direction: rtl;
    text-align: right;
}

.error-message {
    color: #e74c3c; /* أحمر */
    font-size: 0.85rem;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
    direction: rtl;
    text-align: right;
    visibility: hidden; /* مخفية افتراضياً */
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .error-message.active {
        visibility: visible;
        opacity: 1;
    }

.form-error-message {
    color: #e74c3c;
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    min-height: 1.2rem;
}

/* Overlay لتغبيش الصفحة */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
}


/* نافذة الكوكيز بأسفل الصفحة */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #eee;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    border-radius: 10px 10px 0 0; /* تدوير الزوايا العلوية */
    z-index: 999;
}

    /* نص الكوكيز */
    .cookie-notice p {
        margin: 0 0 0.5rem;
        color: #444;
    }

/* أزرار الكوكيز */
.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .cookie-buttons button {
        background-color: #7b2ff7;
        color: #fff;
        border: none;
        padding: 0.5rem 1.2rem;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }

        .cookie-buttons button:hover {
            background-color: #5e23c9;
        }
