/*
Theme Name:     WorkScout Child
Theme URI:      https://careerinde.com/workscout-child
Description:    A child theme for the WorkScout WordPress theme.
Author:         Parsa Heidari
Template:       workscout
Version:        1.0.2
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    workscout-child

*/

.experience-block {
    background: #fdfdfd;
    padding: 15px 15px 15px 15px; /* top right bottom left */
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}
.exp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.exp-fields input { padding: 10px; border-radius: 6px; border: 1px solid #ccc; width: 100%; font-size: 14px; }
    .remove-exp {
        background: transparent;
        border: none;
        color: #b00020;
        padding: 4px;
        border-radius: 6px;
        cursor: pointer;
    }
.add-exp-btn { background: #28a745; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; margin-top: 10px; }
.add-exp-btn:hover { background: #218838; }
  .exp-fields + .exp-fields {
    margin-top: 15px;
}
.exp-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  
}
  .education-block {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}
.edu-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.edu-fields input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 14px;
}
.edu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.edu-current {
    display: flex;
    align-items: center;
    gap: 8px;
}
.remove-edu {
    background: transparent;
    border: none;
    color: #b00020;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}
.add-edu-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}
.add-edu-btn:hover {
    background: #218838;
}
.careerinde-resume-form {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e2e2;
    font-family: Arial, sans-serif;
  
}
.tab-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: transparent;
  border-bottom: 2px solid #e2e2e2;
}

.tab-btn {
  background-color: #f9f9f9;
  color: #444;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  top: 1px;
}

.tab-btn:hover {
  background-color: #e0e0e0;
}

.tab-btn.active {
  background-color: #ffffff;
  color: #28a745;
  border-bottom: 3px solid transparent;
}

.tab {
  display: none;
  padding: 20px 10px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.tab.active {
  display: block;
}

.select2-container--default .select2-selection__clear {
    color: white !important; /* رنگ ضربدر همیشه سفید */
}

.select2-container--default .select2-selection__clear:hover {
    color: #e0e0e0 !important; /* وقتی موس روش هست رنگ روشن‌تر */
}
.ui-datepicker {
    z-index: 99999 !important;
    position: absolute !important;
}
.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.form-buttons .button {
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

/* استایل دکمه Preview */
.button-secondary {
  background-color: #28a745; /* سبز */
  color: white;
  flex-shrink: 0; /* اندازه ثابت */
  min-width: 100px;
}

.button-secondary:hover {
  background-color: #218838;
}

/* استایل دکمه Submit */
.button-primary {
  background-color: #218838; /* سبز تیره‌تر */
  color: white;
  min-width: 160px;
  flex-shrink: 0;
}

.button-primary:hover {
  background-color: #19692c;
}

/* آیکون داخل دکمه submit (اگر لازم بود) */
.button i {
  margin-left: 8px;
  vertical-align: middle;
}




.resume-preview-container {
    width: 80%;
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resume-preview-container h1 {
    text-align: center;
    color: #28a745;
    font-size: 2em;
    margin-bottom: 20px;
}

.resume-section {
    margin-bottom: 20px;
}

.resume-section h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.resume-section p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin: 5px 0;
}





.careerinde-btn-choice {
    background: linear-gradient(112deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 36px;
    cursor: pointer;
    margin: 0 10px 10px 0;
    box-shadow: 0 4px 18px rgba(58,123,213,0.10);
    transition: background 0.22s, transform 0.14s;
}
.careerinde-btn-choice:hover {
    background: linear-gradient(112deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.careerinde-btn-choice:active {
    background: linear-gradient(112deg, #2b5876 0%, #4e4376 100%);
    color: #fff;
}

.careerinde-btn-submit,
.careerinde-btn-next,
.careerinde-btn-back {
  min-width: 120px;
  padding: 15px 0 13px 0;
  border: none;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.14s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 3px 14px rgba(60,130,230,0.08);
  margin: 0 12px 0 0;
  letter-spacing: 0.02em;
  outline: none;
}


.careerinde-btn-submit {
  background: linear-gradient(100deg,#2ecc71 50%,#27ae60 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(46,204,113,0.12);
}
.careerinde-btn-submit:hover {
  background: linear-gradient(100deg,#1abc9c 50%,#16a085 100%);
}

/* دکمه بعدی */
.careerinde-btn-next {
  background: linear-gradient(100deg,#3498db 60%,#2980b9 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(52,152,219,0.12);
}
.careerinde-btn-next:hover {
  background: linear-gradient(100deg,#2980b9 60%,#3498db 100%);
}

/* دکمه بازگشت */
.careerinde-btn-back {
  background: linear-gradient(100deg,#f7f7f7 50%,#e7eaf1 100%);
  color: #222;
  border: 1.3px solid #e5e7ef;
  margin-right: 0;
  box-shadow: 0 3px 14px rgba(0,0,0,0.03);
  font-weight: 700;
}
.careerinde-btn-back:hover {
  background: linear-gradient(100deg,#ffe082 50%,#fff9c4 100%);
  color: #ad7900;
  border-color: #ffe082;

}

/* حالت flex برای ردیف دکمه‌ها */
.interview-buttons-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  justify-content: flex-start;
}




/* تنظیمات کلی صفحه */
.interview-container {
  position: relative;
  background-image: url('https://careerinde.com/wp-content/uploads/2025/06/wp6323857.jpg');
  background-size: cover;
  background-position: center 1px;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0;
  font-family: 'Arial', sans-serif;
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* لایه شفاف پشت تصویر */
.interview-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* شفافیت */
  z-index: 0; /* قرار گرفتن زیر محتوای صفحه */
}

/* تنظیمات برای بخش انتخاب نوع سوال */
#interview-type-select {
  position: relative;
  z-index: 1; /* قرار گرفتن بالای لایه شفاف */
  text-align: center;
  margin-bottom: 50px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* شیشه‌ای شدن */
  border-radius: 8px;
  width: 60%;
}

/* تنظیمات دکمه‌ها */
#btn-general-questions,
#btn-technical-questions {
  padding: 12px 24px;
  margin: 10px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}


#btn-general-questions {
  background: #3498db; /* رنگ آبی */
}

#btn-technical-questions {
  background: #2ecc71; /* رنگ سبز */
}

#btn-general-questions:hover,
#btn-technical-questions:hover {
  background: #2980b9; /* رنگ آبی تیره یا سبز تیره */
}
#interview-type-select h3 {
    color: #fff;
}

#interview-step-wrapper {

  z-index: 1; /* برای اطمینان از قرار گرفتن در بالا */
}


#user-answer {
  background-color: rgba(244, 244, 244, 0.8); /* تغییر opacity با استفاده از رنگ شفاف */
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  margin-bottom: 20px;
  width: 100%;
  border: 1px solid #ccc; /* خط مرزی */
  color: #000; /* رنگ متن سیاه */
}

#ai-feedback {
    max-height: 120px; /* حداکثر ارتفاع فیدبک */
    overflow-y: auto; /* اجازه اسکرول دادن */
    background: rgba(0, 0, 0, 0.7); /* پس‌زمینه شفاف */
    color: #fff !important;;
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 10px;
    position: sticky; /* فیدبک ثابت می‌شود */
    top: -10px; /* 10px بالاتر از دکمه‌ها قرار می‌گیرد */
    transition: max-height 0.3s ease; /* انیمیشن */
}
