/* إعدادات المتصفح الأساسية لتطابق الـ Pixel Perfect */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- تنسيق الشريط العلوي (Navbar) --- */
.navbar {
    background-color: #092254;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    height: 103px;
    border-radius: 99px;
    border: 1px solid #00000008;
    width: 90%;
    margin: 15px auto 0px auto;
}
.nav-right{
    width: 70%;
    justify-content: space-between;
}
.nav-right, .nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 80%;
}

.nav-links a {
   color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
     color: #b0c4de;
}

.nav-links i {
    font-size: 10px;
    margin-right: 5px;
}

/* أزرار النافبار */
.btn-login {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-register {
    background-color: #f7a416;
    border: none;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.search-icon {
    color: #f7a416;
    cursor: pointer;
    font-size: 16px;
}

/* --- تنسيق الحاوية الرئيسية والبطاقة --- */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.card-wrapper {
    width: 80%;
    max-width: 80%;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- تنسيق قسم الفورم (الأيمن) --- */
.form-section {
    padding: 40px 60px;
    border: 1px solid #00000012;
    border-radius: 10px;
    background-color: #FEFEFE;
}

.form-section h2 {
    color: #032472;
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.form-section .subtitle {
    color: #0600009E;
    font-size: 23px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #131728;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input, .input-wrapper select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 1px solid #00000008;
    background-color: #FAFAFA;
    border-radius: 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: #cbd5e1;
}
input::placeholder,.input-wrapper select::placeholder{
    color: #31025F69;
    font-size: 14px;
    font-weight: 500;
}

.input-icon {
    position: absolute;
    right: 15px;
    color: #94a3b8;
    font-size: 16px;
}

/* أيقونة إخفاء الباسورد على اليسار */
.toggle-password {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    cursor: pointer;
}

/* تنسيق حقل الاختيار (Select Arrow) */
.input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 20px;
}

/* شروط وأحكام الاستخدام */
.terms-container {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    gap: 7px;
}
input[type="checkbox"] {
    appearance: none;
    width: 25px;
    height: 25px;
    border: 2px solid #BFBFBF;
    border-radius: 10px;
    cursor: pointer;
     position: relative;
    display: inline-block;
}
input[type="checkbox"]:checked {
    background-color: #ffc107;
    border-color: #ffc107;
    z-index: 2;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
}

/* زر الإرسال البرتقالي عريض */
.btn-submit {
    width: 100%;
    background-color: #f7a416;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #e09210;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #0d234c;
    font-weight: 600;
}

.form-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.welcome-section {
    background-color: #F7F9FD;
    display: flex;
    flex-direction: column;
    justify-content:center;
    padding: 19px 35px 44px 29px;
    text-align: center;
    position: relative;
    border: 1px solid #00000012;
    border-radius: 10px;
}

.welcome-text {
    margin-top: 20px;
    margin-bottom: 30px;
}

.welcome-text h3 {
    color: #0C174E;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-text h1 {
    color: #032472;
    font-size: 40px;
    font-weight: 900;
    line-height: 44px;
}

.welcome-text h1 span {
    color: #f7a416;
}

.welcome-text p {
    color: #384972;
    font-size: 23px;
    font-weight: 300;
    margin-top: 5px;
}

.image-holder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-holder img {
    max-width: 85%;
    height: auto;
    display: block;
}

/* التجاوب مع الشاشات الصغيرة (Responsive) */
@media (max-width: 900px) {
    .card-wrapper {
        grid-template-columns: 1fr;
    }
    .welcome-section {
        display: none; /* إخفاء قسم الصورة في الشاشات الصغيرة للحفاظ على المظهر */
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* يمكن استبدالها بقائمة همبرغر برمجياً */
    }
    .form-section {
        padding: 30px 20px;
    }
}

/* Custom Dropdown Styles for Form Fields */
.form-section .custom-dropdown {
    position: relative;
    width: 100%;
}

.form-section .dropdown-header {
    width: 100%;
    padding: 15px 45px 15px 15px !important;
    border: 1px solid #00000008;
    background-color: #FAFAFA;
    border-radius: 14px;
    font-size: 14px;
    color: #31025F69; /* Default placeholder color */
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    height: 52px; /* same height as other inputs */
    box-sizing: border-box;
}

.form-section .dropdown-header.selected {
    color: #333 !important; /* Chosen option color */
}

.form-section .dropdown-header .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.form-section .dropdown-header .arrow-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.form-section .custom-dropdown.active .arrow-icon {
    transform: translateY(-50%) rotate(180deg);
}

.form-section .dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    list-style: none;
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.form-section .custom-dropdown.active .dropdown-list {
    display: block;
}

.form-section .dropdown-list li {
    padding: 12px 20px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s ease, color 0.2s ease;
}

.form-section .dropdown-list li:hover {
    background-color: #f4f7fc;
    color: #1e6bf1;
}

.input-wrapper img {
    position: absolute;
    right: 15px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    z-index: 10;
}

.form-section .dropdown-search-wrapper {
    position: sticky;
    top: -8px;
    background-color: #ffffff;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-top: -8px;
    z-index: 10;
}

.form-section .dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    text-align: right;
    box-sizing: border-box;
}

.form-section .dropdown-search-input:focus {
    border-color: #1e6bf1;
    box-shadow: 0 0 0 3px rgba(30, 107, 241, 0.15);
}

@media (max-width: 900px) {
  
    .main-container{
        padding-left: 0px;
        padding-right: 0px;
    }
}