/* === المتغيرات الأساسية === */
:root {
    --primary-orange: #FB6D00;
    --primary-blue: #1A237E;
    --dark-blue: #000666;
    --bg-color: #FBF8FF;
    --input-bg: #F5F2FB;
    --pill-bg: #E4E1EA;
    --text-main: #454652;
    --text-dark: #1B1B21;
    --text-light: #757575;
    --border-color: #C6C5D4;
    --white: #FFFFFF;
    --font-main: 'Cairo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-main); line-height: 1.5; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === الهيدر والفوتر (موحد) === */
.header { background: var(--bg-color); border-bottom: 1px solid var(--border-color); box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05); height: 80px; }
.header-nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 20px; height: 20px; background-color: var(--primary-orange); }
.logo-text { font-size: 24px; font-weight: 700; color: var(--primary-blue); }
.nav-links { display: flex; gap: 32px; }
.nav-link { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 16px; padding-bottom: 4px; }
.nav-link.active { color: var(--primary-blue); font-weight: 700; border-bottom: 2px solid var(--primary-orange); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-login-text { color: var(--primary-blue); text-decoration: none; font-weight: 500; }
.btn-add-ad { background-color: var(--primary-orange); color: var(--white); padding: 8px 24px; border-radius: 8px; text-decoration: none; }

.footer { background-color: var(--primary-blue); color: var(--white); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.footer-col h4 { font-size: 20px; margin-bottom: 24px; color: var(--white); }
.footer-col p { font-size: 14px; color: #8690EE; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #8690EE; text-decoration: none; font-size: 16px; }
.contact-info p { margin-bottom: 16px; color: #8690EE; font-size: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: #8690EE; font-size: 14px; text-align: center; opacity: 0.6; }

/* === صفحة التسجيل === */
.register-section { display: flex; justify-content: center; align-items: stretch; min-height: calc(100vh - 80px); }
.register-container { display: flex; width: 100%; max-width: 1280px; background: var(--white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* === قسم النموذج === */
.form-side { flex: 1; padding: 64px 96px; overflow-y: auto; background: var(--white); }
.form-header h1 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.form-header p { color: var(--text-main); font-size: 16px; margin-bottom: 40px; }

.register-form { display: flex; flex-direction: column; gap: 24px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 18px; font-weight: 600; color: var(--text-dark); text-align: right; }

/* حقول الإدخال */
.input-wrapper { position: relative; }
.input-wrapper input { width: 100%; padding: 9px 48px 10px 16px; height: 52px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; font-family: var(--font-main); font-size: 16px; color: var(--text-dark); }
.input-wrapper input:focus { outline: none; border-color: var(--primary-blue); background: var(--white); }
.input-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #767683; font-size: 16px; pointer-events: none; }

/* حقل رقم الهاتف */
.phone-wrapper { display: flex; gap: 8px; position: relative; }
.country-code-wrapper { position: relative; width: 170px; flex-shrink: 0; }
.country-code-select {
    width: 100%;
    height: 52px;
    padding: 0 38px 0 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.country-code-select:focus { outline: none; border-color: var(--primary-blue); background: var(--white); }
.country-code-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-main);
    font-size: 10px;
    pointer-events: none;
}
.phone-input-wrapper { position: relative; flex: 1; }
.phone-input-wrapper input { width: 100%; padding: 9px 48px 10px 16px; height: 52px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; font-family: var(--font-main); font-size: 16px; color: var(--text-dark); }
.phone-input-wrapper input:focus { outline: none; border-color: var(--primary-blue); background: var(--white); }
.phone-input-wrapper .input-icon { right: 16px; }

/* كلمة المرور */
.toggle-password { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #767683; }

/* الصناعات (الاختيار المتعدد) */
.industries-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; }
.pill-checkbox { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--pill-bg); border-radius: 9999px; cursor: pointer; transition: 0.2s; }
.pill-checkbox input { display: none; }
.pill-checkbox span { font-size: 12px; font-weight: 500; color: var(--text-dark); }
.pill-checkbox::before { content: ''; width: 16px; height: 16px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.pill-checkbox.checked { background: rgba(26, 35, 126, 0.1); }
.pill-checkbox.checked::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; background: var(--dark-blue); color: var(--white); font-size: 10px; border: none; }

/* الشروط والأحكام */
.terms-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.terms-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary-blue); cursor: pointer; }
.terms-check label { font-size: 14px; color: var(--text-main); line-height: 1.6; }
.terms-check a { color: var(--primary-blue); text-decoration: none; font-weight: 700; }

/* زر الإرسال */
.btn-submit { width: 100%; padding: 16px; background-color: var(--primary-orange); color: var(--white); border: none; border-radius: 8px; font-family: var(--font-main); font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05); margin-top: 16px; transition: 0.2s; }
.btn-submit:hover { background-color: #e56200; }

/* روابط أسفل النموذج */
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.login-link { color: var(--text-main); text-decoration: none; font-size: 14px; }
.login-link span { color: var(--primary-blue); font-weight: 700; }
.back-link { color: var(--primary-blue); text-decoration: none; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }

/* === القسم المرئي === */
.visual-side { width: 45%; background: linear-gradient(143.52deg, #1A237E 0%, #000666 100%); padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.visual-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover; opacity: 0.1; }
.visual-content { position: relative; z-index: 2; color: var(--white); }
.visual-content h2 { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.visual-content > p { opacity: 0.9; font-size: 16px; line-height: 1.6; margin-bottom: 48px; }

.features-list { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
.feature-item { display: flex; gap: 16px; }
.feature-icon { width: 44px; height: 44px; background: var(--primary-orange); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--white); flex-shrink: 0; }
.feature-text h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.feature-text p { font-size: 14px; opacity: 0.8; line-height: 1.6; }

.user-trust { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 32px; display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; align-items: center; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-blue); object-fit: cover; margin-left: -15px; }
.avatars .avatar-count { width: 40px; height: 40px; border-radius: 50%; background: #FFDBCB; border: 2px solid var(--primary-blue); color: #341100; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -15px; }
.user-trust span { font-size: 14px; opacity: 0.7; }

/* === التجاوب (Responsive) === */
@media (max-width: 1024px) {
    .visual-side { display: none; }
    .form-side { padding: 40px; }
    .register-container { max-width: 700px; margin: 40px auto; border-radius: 12px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .form-side { padding: 24px; }
    .form-footer { flex-direction: column; gap: 16px; align-items: center; }
}