.apply-header,
.apply-content,
.apply-title,
.apply-sidebar,
.apply-main,
.apply-status,
.apply-mobile-info,
body {
  font-family: "Apple SD Gothic Neo", "Pretendard", Arial, sans-serif;
  font-weight: 400;
}

.apply-header {
  max-width: 1100px;
  margin: 6rem auto 0 auto;
  padding: 32px 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px 32px;
}

.apply-status {
  font-weight: bold;
  padding: 8px 6px;
  border-radius: 4px;
  font-size: 18px;
  white-space: nowrap;
  text-align: center;
  min-width: 4.5rem;
  max-width: 80px;
}

.apply-status.minishtech-apply-tag--blue {
  background-color: #e6f0ff;
  color: #232176;
}

.apply-status.minishtech-apply-tag--gray {
  background-color: #f0f0f0;
  color: #999;
}

.apply-title {
  font-size: 2.1rem;
  font-weight: 700;
  flex: 1 1 100%;
  margin: 0 0 0 0;
  line-height: 1.2;
  text-wrap: wrap !important;
}

.apply-header-meta-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #c0bdb9;
  padding-bottom: 1.5rem;
}

.apply-date-range {
  color: rgb(94, 95, 95);
  font-size: 18px;
  margin-right: 18px;
}

.apply-copy-btn {
  all: unset;
  background: none !important;
  color: inherit !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* active 상태 무효화 */
.apply-copy-btn:active,
.apply-copy-btn:focus,
.apply-copy-btn:focus-visible,
.mobile-apply-btn .apply-copy-btn:active,
.mobile-apply-btn .apply-copy-btn:focus,
.mobile-apply-btn .apply-copy-btn:focus-visible {
  background: #f1f1f1 !important;
  color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

/* svg 아이콘 컬러도 고정 */
.apply-copy-btn svg {
  transition: none !important;
}

.apply-copy-btn {
  width: 30px;
  height: 30px;
  background-color: #f1f1f1 !important;
  /* 연회색 배경 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px #e0e0e0;
  /* 바깥 테두리 */
  cursor: pointer;
  padding: 5px;
  /* border: 1px solid #e0e0e0 */
}

.apply-copy-btn:active {
  background: #f1f1f1 !important;
}

.apply-copy-btn:hover {
  background: #e0e0e0 !important;
}

.apply-body {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  align-items: flex-start;
}

.apply-main {
  flex: 1 1 0;
  min-width: 0;
}

.apply-content {
  margin-top: 0;
  line-height: 1.7;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.apply-sidebar {
  width: 300px;
  position: sticky;
  top: 48px;
  /* JS로 동적으로 헤더 높이만큼 조정 */
  align-self: flex-start;
  border: 1px solid #c0bdb9;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.apply-sidebar .side-label {
  color: #888;
  font-size: 18px;
  margin-bottom: 12px;
}

.apply-sidebar .side-value {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.apply-sidebar .side-row {
  margin-bottom: 18px;
}

.apply-sidebar .apply-btn {
  width: 100%;
  background: #232176;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 13px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.apply-sidebar .apply-btn:hover:not(:disabled) {
  background: #1b1a61;
}

.apply-sidebar .apply-btn[disabled],
.apply-sidebar .apply-btn:disabled {
  background: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  pointer-events: none;
}

.apply-footer {
  max-width: 1100px;
  /* apply-body와 동일 */
  margin: 80px auto 80px auto;
  /* 위쪽 간격 확보 */
  padding-top: 40px;
  border-top: 1px solid #cfcfcf;
  text-align: center;
}

.apply-back-btn {
  background: #fff;
  color: #000;
  border: 1px solid #333;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.apply-back-btn:hover {
  background: #f7f7f7;
}

.apply-mobile-info {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
}

.mobile-info-row {
  margin-bottom: 16px;
}

.mobile-info-row:last-child {
  margin-bottom: 0;
}

.mobile-info-label {
  color: #888;
  font-size: 16px;
  margin-bottom: 8px;
}

.mobile-info-value {
  font-size: 18px;
  font-weight: 600;
}

.mobile-apply-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #232176 !important;
  color: #fff;
  border: none;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.mobile-apply-btn:hover:not(:disabled) {
  background: #1b1a61;
}

.mobile-apply-btn[disabled],
.mobile-apply-btn:disabled {
  background: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  pointer-events: none;
}

.minishtech-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.minishtech-modal {
  background: white;
  width: 90%;
  max-width: 540px;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.minishtech-modal h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 16px;
  text-align: center;
}

.minishtech-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #232176;
}

.minishtech-close-btn:hover {
  background-color: #232176;
  color: #fff;
}

.minishtech-modal fieldset {
  border: none;
  margin-bottom: 20px;
}

.minishtech-modal legend {
  font-weight: bold;
  margin-bottom: 8px;
}

.minishtech-modal label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.minishtech-modal input[type="text"],
.minishtech-modal input[type="email"],
.minishtech-modal select,
.minishtech-modal input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 4px;
}

#minishtechApplyModal .minishtech-submit-btn {
  width: 100%;
  background: #232176;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#minishtechApplyModal .minishtech-submit-btn:hover:not(:disabled) {
  background: #1b1a61;
}

#minishtechApplyModal .minishtech-submit-btn[disabled],
#minishtechApplyModal .minishtech-submit-btn:disabled {
  background: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  pointer-events: none;
}

.minishtech-open-btn {
  background: #232176;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

.minishtech-modal hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.minishtech-modal em {
  color: #777;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .apply-header,
  .apply-body {
    padding: 0 100px;
  }

  .apply-header {
    gap: 0;
    margin-top: 6rem;
  }

  .apply-footer {
    padding-top: 40px;
    margin: 0 100px;
  }

  .apply-body {
    flex-direction: column;
    gap: 0;
  }

  .apply-sidebar {
    width: 100%;
    position: static;
    margin-top: 32px;
  }

  .apply-sidebar {
    display: none;
  }

  .apply-mobile-info {
    display: block;
    width: 100%;
    background: #fff;
  }

  .apply-body {
    flex-direction: column;
    gap: 0;
  }

  .apply-main {
    width: 100%;
  }

  /* 모바일에서 하단 여백 추가 */
  .apply-footer {
    margin-bottom: 80px;
  }

  .apply-title {
    font-size: 24px;
    margin-top: 12px;
  }

  .apply-header-meta-inline .apply-date-range {
    font-size: 14px;
  }
  .apply-copy-btn {
    width: 26px;
    height: 26px;
    margin-top: 4px;
  }
  .apply-status {
    font-size: 14px;
    padding: 6px 0px;
    min-width: 3.8rem;
  }
}

@media (max-width: 768px) {
  .apply-header,
  .apply-body {
    padding: 0 20px;
  }

  .apply-footer {
    padding-top: 40px;
    margin: 0 20px;
    margin-bottom: 80px;
  }
}
