/* إعدادات الخطوط والصفحة الكاملة */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    width: 100%;
    direction: rtl;
    overflow-x: hidden;
}

/* خلفية الصفحة الكاملة باستخدام صورتك المرفوعة background.jpg */
.full-page-background {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

/* طبقة تظليل فوق الخلفية للحفاظ على تباين ونقاء العناصر */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* الحاوية الرئيسية */
.main-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* قسم الترويسة (تم تعديل اللون ليتوافق مع لون اللوقو البترولي) */
.charity-header {
    text-align: center;
    margin-bottom: 25px;
}

.charity-name {
    font-size: 2.8em;
    font-weight: 800;
    margin: 0;
    color: #0e6a72;
    /* اللون الأخضر البترولي من شعارك الرسمي */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    /* ظل فاتح خلف الخط ليكون واضحاً وبارزاً */
    letter-spacing: -1px;
}

.service-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #1f2937;
    margin: 8px 0 0 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* بطاقة النموذج العائمة */
.form-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    box-sizing: border-box;
}

/* ترويسة البطاقة الداخلية */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 20px;
}

/* تنسيق اللوقو الصغير داخل الكرت بدلاً من أيقونة المصاري */
.small-card-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.form-header h2 {
    color: #1f2937;
    margin: 0;
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1.4;
}

.form-header p {
    color: #6b7280;
    font-size: 1.05em;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* تنسيق الحقول والمدخلات */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1.05em;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0e6a72;
    /* تبريز الحقل باللون البترولي عند الضغط */
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 106, 114, 0.15);
}

/* زر الاستمرار الأخضر المتناسق مع هوية الجمعية */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0e6a72 0%, #0a4f55 100%);
    /* تدرج لوني بترولي متناسق مع الشعار */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.25em;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(14, 106, 114, 0.2);
}

.btn-submit:hover {
    box-shadow: 0 10px 15px -3px rgba(14, 106, 114, 0.3);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit .arrow {
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.btn-submit:hover .arrow {
    transform: translateX(-5px);
}

/* تذييل البطاقة */
.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #9ca3af;
    font-size: 0.9em;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
}

/* الاستجابة التلقائية للهواتف الذكية */
@media (max-width: 640px) {
    .full-page-background {
        background-attachment: scroll;
    }

    .charity-name {
        font-size: 2.1em;
    }

    .service-title {
        font-size: 1.1em;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.45em;
    }

    .form-group input,
    .form-group select {
        padding: 13px;
        font-size: 1em;
    }

    .btn-submit {
        padding: 15px;
        font-size: 1.15em;
    }
}