﻿

/*.dropdown-menu li {
    cursor: pointer;
}

    .dropdown-menu li:hover {
        color: #212529;
        background-color: #e9ecef;*/ /* رمادي ناعم */
        /*border-radius: 6px;
        transition: background-color 0.3s ease;
    }


.container-registration.small-form {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}


    .container-registration.small-form header {
        font-size: 28px;
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 24px;
        border-bottom: 3px solid #007bff;
        padding-bottom: 8px;
    }





.fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

    .input-field.name-field {
        grid-column: span 2;
    }
    .input-field.all-span {
        grid-column: span 4;
    }
    .input-field.title-field {
        grid-column: span 4 ;
    }


.input-field label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #333;
}

    .input-field input,
    .input-field select {
        padding: 10px 14px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 8px;
        outline: none;
        transition: border 0.3s ease;
        background-color: #f9f9f9;
    }

        .input-field input:focus,
        .input-field select:focus {
            border: 1px solid #007bff;
            background-color: #fff;
        }





.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
}

#dropdown-menu-List {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
}


    #dropdown-menu-List.show {
        display: block !important;
    }


    #dropdown-menu-List.hide {
        display: none !important;
    }

.input-field textarea {
    width: 100%;
    min-height: 100px;*/ /* أو الارتفاع الذي تريد */
/*}

.input-field:has(textarea) {
    grid-column: 1 / -1;*/ /* يمتد على كامل الأعمدة */
/*}


.input-field.big-textarea textarea {
    resize: vertical;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #f9f9f9;
    transition: border 0.3s ease;
}


    .input-field.big-textarea textarea:focus {
        border: 1px solid #007bff;
        background-color: #fff;
    }

.file-label:hover {
    background-color: #e6f0ff;
}

.file-placeholder {
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
}

.file-icon {
    color: #007bff;
    font-size: 18px;
}*/


/* ======= الأزرار ======= */
/*button,
.btn-submit {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

    button:hover,
    .btn-submit:hover {
        background-color: #0056b3;
    }*/
/* إضافة spacing بعد العنوان */
/*span.title {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;*/ /* المسافة بين العنوان والـ label */
/*}

@media (max-width: 768px) {
    .form-row {
        display: flex;
        flex-direction: column;*/ /* إدخال واحد في كل سطر */
    /*}

        .form-row .form-group {
            width: 100%;*/ /* الحقول تأخذ كل العرض */
        /*}

    .input-field.name-field {
        grid-column: span 1;*/ /* في الهاتف يأخذ عمود واحد */
    /*}
}
.file-label.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #adb5bd;
    color: #adb5bd;
}*/










/* ======= Dropdown ======= */
.dropdown-menu li {
    cursor: pointer;
}

    .dropdown-menu li:hover {
        color: #212529;
        background-color: #f0f4ff;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

/* ======= Container ======= */
.container-registration.small-form {
    width: 100%;
    max-width: 1200px;
    margin: 28px auto;
    padding: 16px;
}

    .container-registration.small-form header {
        font-size: 26px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 6px;
        padding-bottom: 0;
        border-bottom: none;
        letter-spacing: -0.3px;
    }

        .container-registration.small-form header::after {
            content: '';
            display: block;
            width: 42px;
            height: 3px;
            background: #378ADD;
            border-radius: 2px;
            margin-top: 8px;
            margin-bottom: 24px;
        }

/* ======= Section Title ======= */
span.title {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ======= Fields Grid ======= */
.fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* ======= Input Field ======= */
.input-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .input-field.name-field {
        grid-column: span 2;
    }

    .input-field.all-span {
        grid-column: span 4;
    }

    .input-field.title-field {
        grid-column: span 4;
    }

    .input-field label {
        font-size: 13px;
        font-weight: 500;
        color: #495057;
    }

    .input-field input,
    .input-field select {
        padding: 10px 14px;
        font-size: 14px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        outline: none;
        background-color: #f8f9fa;
        color: #212529;
        transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }

        .input-field input:hover,
        .input-field select:hover {
            border-color: #adb5bd;
            background-color: #fff;
        }

        .input-field input:focus,
        .input-field select:focus {
            border-color: #378ADD;
            background-color: #fff;
            box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.12);
        }

    /* ======= Textarea ======= */
    .input-field textarea {
        width: 100%;
        min-height: 100px;
    }

    .input-field:has(textarea) {
        grid-column: 1 / -1;
    }

    .input-field.big-textarea textarea {
        resize: vertical;
        padding: 10px 14px;
        font-size: 14px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        outline: none;
        background-color: #f8f9fa;
        color: #212529;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        line-height: 1.6;
    }

        .input-field.big-textarea textarea:hover {
            border-color: #adb5bd;
            background-color: #fff;
        }

        .input-field.big-textarea textarea:focus {
            border-color: #378ADD;
            background-color: #fff;
            box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.12);
        }

/* ======= File Upload ======= */
.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    .file-label:hover {
        border-color: #378ADD;
        background-color: #f0f6ff;
    }

    .file-label.disabled {
        pointer-events: none;
        opacity: 0.45;
        cursor: not-allowed;
    }

.file-placeholder {
    color: #868e96;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
    font-size: 14px;
}

.file-icon {
    color: #378ADD;
    font-size: 17px;
    flex-shrink: 0;
}

/* ======= Dropdown List ======= */
#dropdown-menu-List {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

    #dropdown-menu-List.show {
        display: block !important;
    }

    #dropdown-menu-List.hide {
        display: none !important;
    }

/* ======= Buttons ======= */
button,
.btn-submit {
    background-color: #378ADD;
    color: #fff;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 20px;
    letter-spacing: 0.01em;
}

    button:hover,
    .btn-submit:hover {
        background-color: #185FA5;
    }

    button:active,
    .btn-submit:active {
        transform: scale(0.98);
    }

/* ======= Responsive ======= */
@media (max-width: 768px) {
    .form-row {
        display: flex;
        flex-direction: column;
    }

        .form-row .form-group {
            width: 100%;
        }

    .input-field.name-field {
        grid-column: span 1;
    }
}



.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* عند اللغة العربية */
[dir="rtl"] .close-button {
    right: auto;
    left: 10px;
}