/* 입사지원 폼 — 지원자용, 모바일 우선.
   프리드라이프 파란 톤. 카드형 섹션. 테마와 충돌을 줄이려 .preed-apply 로 범위를 좁힌다. */

.preed-apply {
  --preed-blue: #1e6fd0;
  --preed-blue-dark: #14508f;
  --preed-blue-050: #eef5fd;
  --preed-ink: #1a2330;
  --preed-gray: #5a6675;
  --preed-line: #d7dee8;
  --preed-bg: #f4f7fb;
  --preed-radius: 14px;
  --preed-shadow: 0 2px 10px rgba(20, 60, 120, 0.08);

  box-sizing: border-box;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 12px 40px;
  /* 은은한 배경 장식(과하지 않은 그라데이션). */
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(30, 111, 208, 0.06), transparent 60%),
    var(--preed-bg);
  color: var(--preed-ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
.preed-apply *,
.preed-apply *::before,
.preed-apply *::after { box-sizing: border-box; }

.preed-apply-form { margin: 0; }

/* ---- 헤더 배너 ---- */
.preed-hero {
  position: relative;
  margin: 0 -12px 18px;
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--preed-radius) var(--preed-radius);
  /* 이미지가 없거나 로딩 전에도 배경이 채워지게 그라데이션 폴백 */
  background: linear-gradient(135deg, var(--preed-blue), var(--preed-blue-dark));
}
.preed-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preed-hero__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 18px 16px;
  color: #fff;
  /* 이미지 위 글자 가독성용 하단 그늘 */
  background: linear-gradient(to top, rgba(9, 33, 66, 0.55), rgba(9, 33, 66, 0) 80%);
}
.preed-hero__eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.preed-hero__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.preed-hero__desc {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.92;
}

/* ---- 카드 섹션 ---- */
.preed-card {
  background: #fff;
  border: 1px solid var(--preed-line);
  border-radius: var(--preed-radius);
  box-shadow: var(--preed-shadow);
  margin: 0 0 14px;
  overflow: hidden;
}
.preed-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  background: var(--preed-blue-050);
  border-bottom: 1px solid var(--preed-line);
}
.preed-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--preed-blue);
  color: #fff;
  flex: none;
}
.preed-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--preed-blue-dark);
}
.preed-card__body { padding: 14px 16px 16px; }

/* ---- 입력 필드 ---- */
.preed-field {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--preed-gray);
}
.preed-field:last-child { margin-bottom: 0; }
.preed-apply input[type="text"],
.preed-apply input[type="email"],
.preed-apply input[type="password"],
.preed-apply select,
.preed-apply textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid var(--preed-line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px; /* 16px 이상이라야 모바일에서 자동 확대(zoom)가 안 일어남 */
  font-weight: 500;
  color: var(--preed-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.preed-apply textarea { min-height: 60px; resize: vertical; }
.preed-apply select {
  /* 기본 화살표 대신 커스텀 화살표 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6675' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.preed-apply input:focus,
.preed-apply select:focus,
.preed-apply textarea:focus {
  outline: none;
  border-color: var(--preed-blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 208, 0.15);
}
.preed-apply input::placeholder,
.preed-apply textarea::placeholder { color: #a4adba; font-weight: 400; }

.req { color: #e5484d; }

/* 주소검색: 우편번호 칸 + 검색 버튼 */
.preed-addr-search {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.preed-addr-search > input {
  flex: 1;
  min-width: 0;
  margin-top: 0 !important;
  background: #f7f9fc;
}
.preed-addr-btn {
  flex: none;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--preed-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.preed-addr-btn:active { background: var(--preed-blue-dark); }
/* 읽기전용 주소칸은 회색 배경으로 "직접 입력 아님"을 알린다 */
.preed-apply input[readonly] { background: #f7f9fc; color: var(--preed-ink); cursor: default; }

.preed-row { display: flex; gap: 12px; }
.preed-row > .preed-field { flex: 1; min-width: 0; }

.preed-radios {
  display: inline-flex;
  gap: 10px;
  margin-top: 6px;
}
.preed-radios > label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border: 1px solid var(--preed-line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--preed-ink);
  cursor: pointer;
}
.preed-radios input { width: auto; margin: 0; accent-color: var(--preed-blue); }

/* ---- 서명 ---- */
.preed-hint { color: var(--preed-gray); font-size: 13px; margin: 0 0 8px; font-weight: 500; }
.preed-sign-wrap { position: relative; }
.preed-sign {
  display: block;
  width: 100%;
  height: 190px;
  border: 1px dashed #9fb2c8;
  border-radius: 10px;
  background: #fff;
  touch-action: none; /* 서명 중 화면 스크롤 방지 */
  cursor: crosshair;
}
.preed-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--preed-line);
  border-radius: 8px;
  background: #fff;
  color: var(--preed-gray);
  cursor: pointer;
}
.preed-clear:active { background: #f0f3f7; }

/* ---- 동의 + 제출 ---- */
.preed-consent {
  margin: 4px 2px 16px;
  font-size: 14px;
}
.preed-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
  color: var(--preed-ink);
  cursor: pointer;
}
.preed-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--preed-blue);
}

.preed-submit {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--preed-blue), var(--preed-blue-dark));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(30, 111, 208, 0.28);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.15s;
}
.preed-submit:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(30, 111, 208, 0.24); }
.preed-submit:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

.preed-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: none;
}
.preed-result.ok { display: block; background: #e7f6ec; color: #1a7a3f; }
.preed-result.err { display: block; background: #fdecec; color: #c0362e; }

/* ---- 아주 좁은 화면: 2열을 1열로 ---- */
@media (max-width: 440px) {
  .preed-row { flex-direction: column; gap: 0; }
  .preed-row > .preed-field { margin-bottom: 12px; }
  .preed-hero__title { font-size: 20px; }
}

/* ---- 넓은 화면(태블릿+): 살짝 여유 ---- */
@media (min-width: 561px) {
  .preed-apply { padding-top: 8px; }
  .preed-hero { border-radius: var(--preed-radius); margin-top: 6px; }
}
