:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dbe4f0;
    --surface: #ffffff;
    --danger: #dc2626;
    --success: #15803d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', Times New Roman, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(124,58,237,.16), transparent 30%), radial-gradient(circle at bottom left, rgba(37,99,235,.16), transparent 30%), linear-gradient(135deg, #eef4ff, #f8fafc);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.splash-body {
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(124,58,237,.4), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(37,99,235,.42), transparent 35%),
        linear-gradient(135deg, #081229, #101f46 55%, #111827);
    color: #fff;
}

.splash-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.splash-card {
    width: min(92vw, 560px);
    padding: 46px 32px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 34px;
    text-align: center;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: enter .7s ease both;
}

.splash-logo {
    width: min(100%, 420px);
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

.splash-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 6vw, 44px);
}

.splash-card p {
    margin: 0 auto 30px;
    max-width: 420px;
    color: #dbeafe;
    line-height: 1.9;
}

.loader {
    width: 54px;
    height: 54px;
    margin: auto;
    border: 5px solid rgba(255,255,255,.18);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.loading-text { margin-top: 15px; color: #bfdbfe; font-size: 14px; }

.form-page {
    width: min(100% - 32px, 1120px);
    min-height: calc(100vh - 56px);
    margin: 28px auto;
    display: grid;
    grid-template-columns: .95fr 1.25fr;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 80px rgba(15,23,42,.14);
}

.visual-panel {
    padding: 42px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #1d4ed8, #6d28d9);
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .brand img {
        width: 150px;
        max-width: 40%;
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }
    .brand span {
        margin: 0 0 0;
        font-size: clamp(15px, 5vw, 28px);
        font-weight: 800;
        line-height: 1.4;
        white-space: normal;
    }

.visual-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(10px, 3vw, 20px);
    line-height: 1.3;
}

.visual-copy p {
    margin: 0;
    color: #e0e7ff;
    line-height: 2;
}

.hero-image {
    width: 100%;
    margin: 30px auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}
.visual-copy p { margin: 0; color: #e0e7ff; line-height: 2; }

.hero-image {
    width: 100%;
    margin: 30px auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
}

.visual-note { color: #dbeafe; font-size: 13px; }

.form-panel { padding: 42px; }

.form-header { margin-bottom: 28px; }
.form-header .eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; }
.form-header h1 { margin: 8px 0 10px; font-size: 31px; }
.form-header p { margin: 0; color: var(--muted); line-height: 1.8; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px; /* المسافة الأفقية */
    row-gap: 6px; /* المسافة الرأسية */
}

.form-group {
    margin: 0;
    padding: 0;
}

    .form-group.full {
        grid-column: 1 / -1;
    }

.form-label {
    display: block;
    margin-bottom: 3px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 46px; /* بدلاً من 52px */
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font: inherit;
    color: var(--text);
    background: #f8fafc;
    transition: .2s ease;
}

.validation-error {
    display: block;
    color: var(--danger);
    font-size: 11px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 1px;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

textarea.form-control {
    min-height: 125px;
    resize: vertical;
    line-height: 1.8;
}

 

.submit-button,
.secondary-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: .2s ease;
}

.submit-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.submit-button:hover { transform: translateY(-2px); }

.message {
    display: block;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
}

.error { color: #991b1b; background: #fee2e2; border: 1px solid #fca5a5; }
.success { color: var(--success); background: #dcfce7; border: 1px solid #86efac; }

.success-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.success-card {
    width: min(100%, 560px);
    padding: 42px 32px;
    border-radius: 30px;
    text-align: center;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15,23,42,.14);
}

.success-card img { width: 180px; margin: 0 auto 22px; }
.success-card h1 { margin: 0 0 12px; }
.success-card p { margin: 0 0 24px; color: var(--muted); line-height: 1.9; }

.secondary-button {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter {
    from { opacity: 0; transform: translateY(22px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


.table-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.report-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

    .report-table th {
        padding: 14px 10px;
        border: 1px solid #31549b;
        color: #fff;
        background: linear-gradient(135deg, #1d4ed8, #4338ca);
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
    }

    .report-table td {
        padding: 12px 10px;
        border: 1px solid #e2e8f0;
        color: #334155;
        font-size: 13px;
        text-align: center;
        vertical-align: middle;
    }

.table-row td {
    background: #fff;
}

.table-row-alt td {
    background: #f8fafc;
}

.report-table tr:hover td {
    background: #eff6ff;
}

.report-table td:nth-child(10) {
    min-width: 250px;
    text-align: right;
    white-space: normal;
    line-height: 1.7;
}

.table-pager {
    background: #f1f5f9;
}

    .table-pager td {
        padding: 12px;
        border: none;
    }

    .table-pager a,
    .table-pager span {
        display: inline-block;
        min-width: 34px;
        margin: 2px;
        padding: 6px 10px;
        border-radius: 8px;
    }

    .table-pager a {
        color: #1d4ed8;
        background: #dbeafe;
    }

    .table-pager span {
        color: #fff;
        background: #2563eb;
    }

@media (max-width: 600px) {
    .table-card {
        border-radius: 12px;
    }

    .report-table {
        min-width: 1050px;
    }

        .report-table th,
        .report-table td {
            padding: 10px 8px;
            font-size: 12px;
        }
}








@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    .form-page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

    .visual-panel {
        width: 100%;
        padding: 24px 16px;
        text-align: center;
    }

    .brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        text-align: center;
    }

        .brand img {
            width: 160px;
            max-width: 70%;
            height: auto;
            margin: 0 auto;
            object-fit: contain;
        }

        .brand span {
            width: 100%;
            font-size: 22px;
            font-weight: 800;
            line-height: 1.5;
            white-space: normal;
            overflow-wrap: break-word;
        }

    .visual-copy {
        margin-top: 24px;
    }

        .visual-copy h2 {
            margin-bottom: 10px;
            font-size: 25px;
            line-height: 1.5;
        }

        .visual-copy p {
            font-size: 14px;
            line-height: 1.9;
        }

    .hero-image {
        width: 100%;
        max-width: 320px;
        max-height: 220px;
        margin: 20px auto;
        object-fit: contain;
        box-shadow: none;
    }

    .visual-note {
        margin-top: 15px;
        font-size: 12px;
        line-height: 1.7;
    }

    .form-panel {
        width: 100%;
        padding: 26px 16px 34px;
    }

    .form-header {
        margin-bottom: 18px;
    }

        .form-header h1 {
            font-size: 25px;
        }

        .form-header p {
            font-size: 14px;
        }

    .form-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 8px;
    }

    .form-group,
    .form-group.full {
        width: 100%;
        grid-column: auto;
    }

    .form-control {
        width: 100%;
        min-height: 44px;
        padding: 9px 11px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 110px;
    }

    .submit-button {
        min-height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .brand img {
        width: 140px;
    }

    .brand span {
        font-size: 19px;
    }

    .visual-copy h2 {
        font-size: 22px;
    }

    .form-panel {
        padding-left: 12px;
        padding-right: 12px;
    }
}