* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1666214280557-f1b5022eb634?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: rgba(255,255,255,0.95);
    padding: 15px 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-container i {
    font-size: 2.2rem;
    color: #2e7d32;
}

.site-name {
    font-size: 2rem;
    color: #1b5e20;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: #2e7d32;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,125,50,0.3);
}

.main-content {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    backdrop-filter: blur(3px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* رأس الصفحة */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* بطاقة التسجيل */
.register-card {
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

/* مؤشر الخطوات */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s;
}

.step.active .step-number {
    background: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

.step.completed .step-number {
    background: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

.step-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.step.active .step-title {
    color: #2e7d32;
}

/* أقسام النموذج */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e8f5e9;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #1b5e20;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #2e7d32;
}

/* شبكة النموذج */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    color: #1b5e20;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d32;
    font-size: 1.1rem;
    z-index: 1;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46,125,50,0.1);
}

/* مواعيد العمل */
.working-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.day-hours {
    background: #f8faf8;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.day-hours__day {
    display: block;
    color: #1b5e20;
    font-weight: 600;
    margin-bottom: 10px;
}

.day-hours__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.day-hours__label {
    display: inline-block;
    margin-bottom: 0;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.day-hours__sep {
    color: #666;
    font-weight: 600;
}

.day-hours input {
    flex: 1;
    min-width: 110px;
    max-width: 140px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
}

/* رفع الملفات */
.file-upload {
    border: 2px dashed #2e7d32;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8faf8;
}

.file-upload:hover {
    background: #e8f5e9;
    border-color: #1b5e20;
}

.file-upload i {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 10px;
}

.file-upload p {
    color: #666;
    margin-bottom: 5px;
}

.file-upload small {
    color: #999;
    font-size: 0.8rem;
}

/* التخصصات الفرعية */
.form-section:has(.subspecialties-grid) .section-title {
    color: #000000;
}

.form-section:has(.subspecialties-grid) .section-title i {
    color: #000000;
}

.subspecialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.subspecialty-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8faf8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: #000000;
}

.subspecialty-item:hover {
    background: #e8f5e9;
    color: #000000;
}

.subspecialty-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2e7d32;
}

/* الشروط */
.terms-group {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2e7d32;
}

.checkbox-item a {
    color: #2e7d32;
    text-decoration: none;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

/* أزرار التنقل */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn.prev {
    background: #f8faf8;
    color: #666;
}

.nav-btn.next {
    background: #2e7d32;
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-btn.prev:hover {
    background: #e0e0e0;
}

.nav-btn.next:hover {
    background: #1b5e20;
}

/* زر الإرسال */
.submit-btn {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46,125,50,0.4);
}

/* التذييل */
.footer {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 60px 30px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2e7d32;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #2e7d32;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .steps-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .steps-indicator::before {
        display: none;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}