:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #22d3ee;
    --secondary-dark: #06b6d4;
    --accent: #fbbf24;
    --text: #25324a;
    --muted: #64748b;
    --border: #ddd6fe;
    --surface: #ffffff;
    --danger: #b91c1c;
    --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(167,139,250,.24), transparent 34%), radial-gradient(circle at bottom left, rgba(34,211,238,.20), transparent 34%), radial-gradient(circle at 50% 100%, rgba(251,191,36,.10), transparent 28%), linear-gradient(135deg, #faf7ff, #f2fdff 55%, #fffcf2);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.splash-body {
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(167,139,250,.34), transparent 38%), radial-gradient(circle at 85% 80%, rgba(34,211,238,.30), transparent 38%), radial-gradient(circle at 80% 10%, rgba(251,191,36,.16), transparent 25%), linear-gradient(135deg, #f5f0ff, #effcff 55%, #fffaf0);
    color: var(--text);
}

.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(124,58,237,.14);
    border-radius: 34px;
    text-align: center;
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 80px rgba(124,58,237,.14), inset 0 1px 0 rgba(255,255,255,.92);
    animation: enter .7s ease both;
}

.splash-logo {
    width: min(100%, 310px);
    height: auto;
    display: block;
    margin: 0 auto 24px;
    filter: drop-shadow(0 16px 22px rgba(124,58,237,.15));
}

.splash-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 6vw, 44px);
}

.splash-card p {
    margin: 0 auto 30px;
    max-width: 420px;
    color: var(--muted);
    line-height: 1.9;
}

.loader {
    width: 54px;
    height: 54px;
    margin: auto;
    border: 5px solid rgba(124,58,237,.14);
    border-top-color: var(--accent);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: var(--primary-dark);
    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);
    border: 1px solid rgba(124,58,237,.08);
    box-shadow: 0 30px 80px rgba(124,58,237,.12);
}

.visual-panel {
    padding: 42px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text);
    background: radial-gradient(circle at 15% 15%, rgba(251,191,36,.20), transparent 28%), linear-gradient(145deg, #eee8ff, #dcfaff 58%, #f8f1ff);
    position: relative;
    isolation: isolate;
}

    .visual-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: radial-gradient(circle at 85% 85%, rgba(167,139,250,.20), transparent 32%), linear-gradient(120deg, transparent 55%, rgba(255,255,255,.30));
    }

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .brand img {
        width: 125px;
        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: var(--muted);
    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: var(--muted);
    line-height: 2;
}

.job-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

    .job-highlights span {
        padding: 7px 12px;
        border: 1px solid rgba(124,58,237,.18);
        border-radius: 999px;
        background: rgba(255,255,255,.76);
        color: var(--primary-dark);
        box-shadow: 0 8px 20px rgba(124,58,237,.08);
        font-size: 12px;
        font-weight: 700;
    }

.hero-image {
    width: 100%;
    margin: 30px auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
}

.visual-note {
    color: var(--muted);
    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: #173f5f;
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font: inherit;
    color: var(--text);
    background: rgba(255,255,255,.78);
    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(124,58,237,.10);
}

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-dark), var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(124,58,237,.22);
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(124,58,237,.28);
        background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
    }

.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;
    border: 1px solid rgba(124,58,237,.10);
    box-shadow: 0 30px 80px rgba(124,58,237,.12);
}

    .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: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
}

    .secondary-button:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-light), var(--secondary));
    }

@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 var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(124,58,237,.10);
}

.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 var(--primary-dark);
        color: #fff;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
    }

    .report-table td {
        padding: 12px 10px;
        border: 1px solid #e5e5e5;
        color: #173f5f;
        font-size: 13px;
        text-align: center;
        vertical-align: middle;
    }

.table-row td {
    background: #fff;
}

.table-row-alt td {
    background: #faf8ff;
}

.report-table tr:hover td {
    background: #f2efff;
}

.report-table td:nth-child(10) {
    min-width: 250px;
    text-align: right;
    white-space: normal;
    line-height: 1.7;
}

.table-pager {
    background: #f6f3ff;
}

    .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: var(--primary-dark);
        background: #eee9ff;
    }

    .table-pager span {
        color: #fff;
        background: var(--primary);
    }

@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;
    }
}
