﻿:root {
    --top: #1f2933;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #0a3b82;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

    /* PURE BACKGROUND IMAGE — NO FADE */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: url('/img/background_1920_1080.jpg') center center / cover no-repeat;
    }

/* Top Bar */
.top-bar {
    height: 56px;
    background: var(--top);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px;
}

    .top-bar img {
        height: 34px;
    }

/* Layout */
.hero {
    min-height: calc(100vh - 56px);
    display: flex;
    justify-content: flex-start; /* RTL => right side */
    align-items: center;
    padding: 60px 6vw;
}

    /* Content wrapper */
    .hero > div {
        max-width: 600px;
    }

/* Text */
.hero-text h1 {
    font-size: 28px;
    margin: 0 0 14px;
    font-weight: 900;
    line-height: 1.35;
    text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.hero-text p {
    font-size: 16px;
    line-height: 1.9;
    opacity: .97;
    margin: 0 0 22px;
    text-align: justify;
    text-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* Card */
.card {
    background: rgba(255,255,255,.98);
    color: var(--text);
    border-radius: 26px;
    box-shadow: 0 25px 55px rgba(0,0,0,.35);
  
    backdrop-filter: blur(2px); /* subtle, not a fade */
   
    margin-bottom: 60px;
}

/* Header (rounded all sides) */
.card-header {
    position: relative;
    width: 100%;
    padding: 18px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient( #001f40, #001f40 0%, #001f40 45%, #001f40 100% );
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(31,79,156,.35);
    margin-bottom: 18px;
    overflow: hidden;
}

    .card-header::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.08) 40%, transparent 70% );
        border-radius: 14px;
        pointer-events: none;
    }

/* Body padding */
.card-body {
    padding: 6px 20px 0px 20px;
}

/* Groups */
.f-group {
    margin: 0 0 12px;
}

/* Inputs */
.f-input, .f-select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 7px;
    border: 1px solid #e5e7eb;
    background: #fbfdff;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .08s ease, background .2s ease;
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

    .f-input::placeholder {
        color: #9ca3af;
    }

    .f-input:focus, .f-select:focus {
        border-color: rgba(10,59,130,.55);
        box-shadow: 0 0 0 4px rgba(10,59,130,.14);
        background: #ffffff;
    }

    .f-input:active {
        transform: scale(.998);
    }

/* Language row */
.lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 12px;
    padding-top: 4px;
}

    .lang-row label {
        font-size: 14px;
        font-weight: 800;
        color: var(--text);
    }

    .lang-row .f-select {
        max-width: 220px;
    }

/* Terms */
.terms {
    font-size: 12.5px;
    color: #4b5563;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f6ff;
    border: 1px solid #e6ecff;
    margin-top: 10px;
}

    .terms input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: var(--primary);
    }

/* Button */
.start-btn {
    width: 100%;
    background: #d1d5db;
    border: none;
    padding: 13px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    margin-top: 14px;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

    .start-btn.enabled {
        background: linear-gradient(#0b2c52, #092b52, #092b52);
        color: #fff;
        cursor: pointer;
        box-shadow: 0 14px 28px rgba(10,59,130,.25);
    }

        .start-btn.enabled:active {
            transform: scale(.99);
        }

/* Error */
#formError {
    color: var(--danger);
    font-size: 13px;
    margin-top: 10px;
    padding: 0 10px 8px;
    min-height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        justify-content: center;
        padding: 40px 5vw;
    }

        .hero > div {
            max-width: 100%;
        }

    .card {
        margin-bottom: 30px;
    }

    .lang-row .f-select {
        max-width: 200px;
    }
}

@media (max-width: 420px) {
    .lang-row {
        flex-direction: column;
        align-items: stretch;
    }

        .lang-row .f-select {
            max-width: 100%;
        }
}
