/* ==================== متغیرها ==================== */
:root {
  --primary: #4d6bfe;
  --text: #333;
  --light-bg: #f5f7ff;
  --white: #ffffff;
  --border: #e0e5ff;
}

/* ==================== تنظیمات پایه ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: Vazir, sans-serif;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--light-bg);
  min-height: 100vh;
}

/* ==================== لایه‌بندی اصلی ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ==================== هدر و لوگو ==================== */
.logo-container {
  text-align: center;
  padding: 20px 0;
}

.logo {
  width: 100px;
  height: auto;
}

/* ==================== ناوبری ==================== */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
  margin-bottom: 20px;
}

nav a {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
}

nav a:hover,
nav a.active {
  background-color: var(--primary);
  color: var(--white);
}

/* ==================== محتوای اصلی ==================== */
.content-box {
  background-color: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.content-box h1 {
  color: var(--primary);
  margin-bottom: 20px;
}

/* ==================== لیست‌های سفارشی ==================== */
.custom-list {
  list-style-type: none;
  padding-right: 0;
  margin: 20px 0;
}

.custom-list li {
  position: relative;
  padding-right: 25px;
  margin-bottom: 12px;
}

/* انواع بولت‌ها */
.square-bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 2px;
}

.circle-bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 50%;
}

.no-bullets li {
  padding-right: 0;
}

/* ==================== پاورقی ==================== */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text);
  font-size: 0.9rem;
}

/* ==================== رسپانسیو ==================== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  
  nav a {
    width: 100%;
    max-width: 300px;
  }
  
  .content-box {
    padding: 20px;
  }
}

/* ==================== همکاری سازمانی ==================== */
.contact-promo {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    margin: 35px 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-partner {
    background-color: var(--primary);
    color: white;
    margin-top: 15px;
}

.btn-partner:hover {
    background-color: #3a56d4;
    transform: translateX(-5px);
}

.partners-showcase {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border);
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.partner-logos img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

/* ==================== فرم درخواست شغلی ==================== */
.applicant-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 25px;
  border-radius: 12px;
  background-color: #f8f9ff;
  border: 1px solid var(--border);
}

.applicant-form > div {
  margin-bottom: 15px;
}

.applicant-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.applicant-form input,
.applicant-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: Vazir, sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.applicant-form input:focus,
.applicant-form select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.1);
}

.submit-btn {
  grid-column: 1 / -1;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-family: Vazir, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
  background-color: #3a56d4;
  transform: translateY(-2px);
}

/* ==================== بخش متقاضیان ==================== */
.applicants-section {
  margin-top: 40px;
  border-top: 1px dashed #e0e0e0;
  padding-top: 30px;
}

.applicants-section h2 {
  color: var(--primary);
  margin-bottom: 25px;
  text-align: center;
}

#applicants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.applicant-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}

.applicant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(77, 107, 254, 0.15);
}

.applicant-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #f8faff;
  border-bottom: 1px solid var(--border);
}

.applicant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 15px;
  background-color: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.applicant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.applicant-info {
  flex: 1;
}

.applicant-info h3 {
  color: #333;
  margin-bottom: 5px;
}

.applicant-info p {
  font-size: 0.85rem;
  color: #666;
  margin: 3px 0;
}

.applicant-contacts {
  padding: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.contact-item:hover {
  background-color: #f8f9ff;
}

.contact-item i {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 10px;
  color: white;
}

.contact-item.phone i {
  background-color: #4d6bfe;
}

.contact-item.whatsapp i {
  background-color: #25d366;
}

.contact-item.telegram i {
  background-color: #0088cc;
}

.contact-item.gender i {
  background-color: #ff6b6b;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==================== فرم حذف ==================== */
.delete-form {
  display: flex;
  padding: 0 20px 20px;
  gap: 10px;
}

.delete-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: Vazir, sans-serif;
}

.delete-btn {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: Vazir, sans-serif;
  cursor: pointer;
  transition: background-color 0.3s;
}

.delete-btn:hover {
  background-color: #d9363e;
}

/* ==================== پیام‌ها ==================== */
.message {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
}

.success-message {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.error-message {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

/* ==================== رسپانسیو ==================== */
@media (max-width: 768px) {
  .applicant-form {
    grid-template-columns: 1fr;
  }
  
  .delete-form {
    flex-direction: column;
  }
}

/* ==================== استایل‌های اختصاصی فرم تماس ==================== */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h1 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-header p {
    color: var(--text);
    line-height: 1.6;
    opacity: 0.8;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.contact-form .required:after {
    content: " *";
    color: #ff4d4f;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: Vazir, sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    background-color: var(--white);
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.8;
}

.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 25px 0;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.captcha-display {
    background: var(--white);
    border-radius: 6px;
    padding: 5px;
    min-width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.captcha-input {
    flex: 1;
}

.captcha-reload {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-reload:hover {
    background: #3a56d4;
    transform: rotate(90deg);
}

.contact-form .submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0;
    font-family: Vazir, sans-serif;
}

.contact-form .submit-btn:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 107, 254, 0.3);
}

.contact-form .error-message {
    color: #ff4d4f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.contact-form .success-message {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 20px;
    }
}

/* ==================== قوانین و مقررات ==================== */
.notice-box.blue {
    background: #e7f3fe;
    border-right: 4px solid #2196F3;
    color: #0c5460;
}

.notice-box.yellow {
    background: #fff8e6;
    border-right: 4px solid #ffc107;
}

.property-rules li strong {
    color: #d32f2f;
}
.notice-box {
  display: flex;
  align-items: center; /* عمودی وسط‌چین شود */
  gap: 10px; /* فاصله بین آیکون و متن */
  padding: 12px 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.notice-box i {
  font-size: 1.2em; /* اندازه آیکون */
  flex-shrink: 0; /* از فشرده شدن آیکون جلوگیری می‌کند */
}
