/* ============================================
   جمعية أهل الخير - ستايل محدث
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
    background: #1a1a1a;
}

/* ============================================
   خلفية الصفحة - ثابتة وكاملة
   ============================================ */
.full-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

/* ============================================
   طبقة التظليل
   ============================================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ============================================
   المحتوى الرئيسي
   ============================================ */
.main-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 30px 20px;
    width: 100%;
}

/* ============================================
   ترويسة
   ============================================ */
.charity-header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

.charity-name {
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 8px;
    letter-spacing: 0;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ============================================
   رسالة الحظر
   ============================================ */
.blocked-message {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    margin-top: 20px;
}

.blocked-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.blocked-message h2 {
    color: #c0392b;
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.blocked-message p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.ip-display {
    background: #f0f0f0;
    padding: 10px 25px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #333;
    display: inline-block;
    direction: ltr;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   كارت الفورم
   ============================================ */
.form-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.small-card-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
}

.form-header p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   حقول الفورم
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    background: #fafafa;
    color: #1f2937;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0e6a72;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 106, 114, 0.12);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230e6a72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 38px;
}

/* ============================================
   زر الاستمرار
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0e6a72 0%, #0a4f55 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(14, 106, 114, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 106, 114, 0.45);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.btn-submit:hover .arrow {
    transform: translateX(-5px);
}

/* ============================================
   فوتر
   ============================================ */
.form-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.form-footer p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ============================================
   رابط العودة
   ============================================ */
.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ffffff;
}

/* ============================================
   المحفظة
   ============================================ */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.wallet-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    gap: 12px;
}

.wallet-option:hover {
    border-color: #0e6a72;
    background: #f0f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 106, 114, 0.15);
}

.wallet-option img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.wallet-option span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-box .icon {
    font-size: 50px;
    margin-bottom: 12px;
}

.modal-box h3 {
    color: #c0392b;
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 800;
}

.modal-box p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 13px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-confirm {
    background: #0e6a72;
    color: #ffffff;
}

.modal-btn-confirm:hover {
    background: #0a4f55;
    transform: translateY(-2px);
}

.modal-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.modal-btn-cancel:hover {
    background: #d1d5db;
}

/* ============================================
   Loading
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #ffffff;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .main-container {
        padding: 20px 15px;
    }

    .charity-name {
        font-size: 2rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .form-card,
    .blocked-message {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .form-header h2 {
        font-size: 1.25rem;
    }

    .form-header p {
        font-size: 0.88rem;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 14px;
        font-size: 1.05rem;
    }

    .small-card-logo {
        width: 55px;
        height: 55px;
    }

    .modal-box {
        padding: 28px 22px;
    }

    .modal-btn {
        padding: 11px 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .charity-name {
        font-size: 1.7rem;
    }

    .form-card,
    .blocked-message {
        padding: 22px 16px;
    }

    .form-header h2 {
        font-size: 1.15rem;
    }
}