/* طراحی کلی فرم و نمایش رزومه
*/
/* تنظیم صفحه برای نمایش در حالت دسکتاپ */
/* Start of display resume css*/
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
.hmy-field {
    display: none;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
}
.hami-resume-display {
    width: 100%;
    max-width: 1200px; /* حداکثر عرض صفحه به اندازه یک صفحه دسکتاپ */
    margin: 0 auto; /* مرکز قرار گرفتن صفحه */
    padding: 20px;
}
.hami-resume-display,.hami-resume-form {
    direction: rtl;
    text-align: right;
    font-feature-settings: "numr";
    font-family: "Vazirmatn",'Iransansweb', sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 30px 30px 90px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}
b, strong {
    font-weight: 900 !important;
}
.hami-resume-display li {
    list-style: none;
    font-weight:400;
}
.hami-resume-display .section li {
    list-style: none;
    font-weight:600;
}
.hami-resume-display p:not(li) {
    font-weight:300;
}
.hami-resume-display ul {
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hami-resume-display h3 {
    font-size: 1em;
    font-weight: bold;
    border-bottom: 1px solid #dddd;
    padding-bottom: 10px;
    width: fit-content;
}
.hami-resume-display a {
    color:#335e89;
}
.resume-top-section, .resume-bottom-section {
    padding: 20px;
    border: 2px dashed #d9d9d9;
    border-radius: 25px;
}
.resume-top-left {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.resume-form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.resume-top-left {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.resume-photo {
    display: flex;
    flex-direction: column;
}
.resume-photo-container img{
    max-width: 100px;
    max-height: 100px;
    border: 2px solid #357abd;
    border-radius: 50%;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

/* زمانی که تایید شده باشد (علامت سبز نمایان شود) */
.resume-photo-container.approved img {
    border-color: #2ecc71; /* رنگ سبز */
}

.qrcode img {
    max-height: 90px;
}
/* نمایش علامت تأیید */
.hami-approved-badge {
    padding: 0px 10px;
    margin-top: -20px;
    background: #2ecc71;
    color: white;
    border-radius: 20px;
    width: auto;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
.qrcode {
    padding: 10px;
    background-color: #f0f0f1;
    border-radius: 15px;
    line-height: 0;
}
.resume-top-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.resume-personal-info, .resume-right-column {
    width: 65%;
    gap: 90px;
}
.language-info ul li:last-child {
    display:none;
}
.resume-bottom-section {
    display: flex;
    justify-content: space-between;
}
.resume-left-column, .resume-contact-info {
    width: 25%;
}
section.section.job-preference {
    margin-top: 15px;
}
.resume-personal-info li p {
    margin: 0;
}
.hami-resume-display .resume-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}
.hami-resume-display .resume-actions a, .hami-resume-display .resume-actions button {
    padding: 8px 15px;
    background-color: #335e89;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.hami-resume-display .resume-actions a:hover,
.hami-resume-display .resume-actions button:hover {
    background-color: #357ABD;
}
ul.cont li {
    display: flex;
    flex-direction: row;
    gap: 5px;
}
/* End of display resume css*/
/*.hami-resume-form{*/
/*    direction: rtl;*/
/*    text-align: right;*/
/*    font-family: 'Roboto', sans-serif;*/
/*    max-width: 900px;*/
/*    margin: 30px auto;*/
/*    background: #ffffff;*/
/*    border-radius: 12px;*/
/*    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);*/
/*    padding: 20px 30px;*/
/*}*/
/* فرم ویرایش رزومه */
.hami-resume-form h3 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 10px;
}
/* فرم نمایش رزومه */
.hami-resume-display h2 {
    font-size: 28px;
    font-weight: bold;
    color: #111;
    margin-top: 0;
}
/* فیلدهای ورودی و انتخاب */
.hami-resume-form input,
.hami-resume-form select,
.hami-resume-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    background: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}
.hami-resume-form input:focus,
.hami-resume-form select:focus,
.hami-resume-form textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.2);
}
/* دکمه‌ها */
.hami-resume-form button,
.hami-resume-display button {
    padding: 12px 25px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.hami-resume-form button:hover,
.hami-resume-display button:hover {
    background: #357ABD;
}
/* نوار پیشرفت */
.hami-progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  counter-reset: step;
  position: relative;
}
.hami-progress-bar li {
  width: 36px;
  height: 36px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6b7280;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.hami-progress-bar li.active,
.hami-progress-bar li.completed {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
}
.hami-progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  left: 18px;
  height: 4px;
  background: #e5e7eb;
  z-index: 0;
}
.hami-progress-bar li.completed ~ li::before {
  background: #06b6d4;
}

/* هر مرحله */
.resume-step {
  animation: fadeIn 0.5s ease;
}
.resume-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* نوار وضعیت (Progress Bar) */
/*.hami-progress-bar {*/
/*    display: none;*/
/*}*/

.hami-resume-form .nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

/* دکمه‌های ناوبری */
.hami-resume-form .nav button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hami-resume-form .nav button:hover {
    background-color: #357ABD;
}

/* حذف تصاویر */
.delete-image-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.delete-image-btn:hover {
    background: #c0392b;
}

/* فرم نمایش رزومه */
/*.hami-resume-display .resume-photo {*/
/*    width: 120px;*/
/*    height: 120px;*/
/*    border-radius: 50%;*/
/*    overflow: hidden;*/
/*    border: 2px solid #e1e4e8;*/
/*    margin-bottom: 20px;*/
/*}*/
/* دکمه‌های نمایش رزومه */
/* طراحی ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .hami-resume-form,
    .hami-resume-display {
        padding: 16px;
    }

    .hami-resume-form h3,
    .hami-resume-display h2 {
        font-size: 24px;
    }

    .hami-resume-form input,
    .hami-resume-form select,
    .hami-resume-form textarea {
        font-size: 14px;
    }

    .delete-image-btn {
        font-size: 14px;
        padding: 6px 15px;
    }

    .hami-resume-form .nav button {
        font-size: 14px;
        padding: 6px 15px;
    }
}

