/* Job Detail Page Styles */
.job-detail-main {
  background-color: #000000;
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

.job-detail-hero {
  padding: 120px 0 80px;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.job-detail-hero .decor-cube {
  transform: translateX(-50%);
  top: 100px;
  left: calc(50% + -580px);
}

.job-detail-hero .decor-rectangle {
  transform: translateX(-50%);
  top: 185px;
  left: calc(50% + 680px);
}

.job-title-hero {
  font-weight: 700;
  text-align: center;
  letter-spacing: -1px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.job-sidebar {
  position: sticky;
  top: 120px;
}

.skills-card,
.responsibilities-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skills-list,
.responsibilities-list,
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li,
.responsibilities-list li,
.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.skills-list li svg,
.responsibilities-list li svg,
.sidebar-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-list li img {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Tick icon with custom color using CSS mask */
.sidebar-list li .tick-icon-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: url('../images/icons/tick_red.svg');
  -webkit-mask-image: url('../images/icons/tick_red.svg');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.btn-apply-job {
  display: block;
  width: 100%;
  background-color: #ef4444;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.job-intro {
  line-height: 1.8;
  margin-bottom: 50px;
}

.job-intro p {
  margin-bottom: 20px;
}

.job-section {
  margin-bottom: 50px;
}

.section-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.section-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #da0203;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.7;
}

.job-apply-section {
  padding: 100px 0;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.apply-form-title {
  font-weight: 700;
  margin-bottom: 50px;
  color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.job-apply-form {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.job-apply-form .form-group input,
.job-apply-form .form-group select,
.job-apply-form .form-group textarea {
  padding: 20px 2px 4px;
  border: none;
  border-bottom: 1px solid rgba(162, 173, 195, 0.5);
  border-radius: 0;
}

.job-apply-form input:focus,
.job-apply-form textarea:focus,
.job-apply-form select:focus {
  border-bottom: 1px solid rgba(218, 2, 3, 0.5);
  box-shadow: none;
}

.job-apply-form select:invalid {
  opacity: 0.5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.form-group-full {
  width: 100%;
}

@media (max-width: 900px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group-upload {
  display: flex;
  align-items: center;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f8fafc;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group .custom-select-search input.custom-select-input::placeholder {
  color: #94a3b8;
  opacity: 0.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ef4444;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.upload-label {
  cursor: pointer;
}

.upload-link {
  color: #ef4444;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

.cv-file-name {
  display: none;
  font-size: 0.9rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .job-sidebar {
    position: static;
    margin-bottom: 40px;
  }

  .job-apply-form {
    grid-template-columns: 1fr;
  }

  .section-list li::before {
    top: -7px;
  }
}
