/* === Reset === */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* === Page wrapper === */
.page { max-width: 1200px; margin: 0 auto; background: #fff; }

/* === Hero / Footer images === */
.hero-img, .footer-img { width: 100%; display: block; }

/* === Apply form === */
.apply { background: #fff; padding: 60px 0 60px; }
.apply-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 0 40px;
  align-items: start;
}
.apply-left { padding-top: 4px; }
.apply-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 80px;
  color: #1a1a1a;
  letter-spacing: -1px;
}
.apply-call .call-label {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-weight: 500;
}
.apply-call .call-num {
  font-size: 30px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.apply-form { display: flex; flex-direction: column; gap: 12px; }
.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  font-size: 16px;
  color: #333;
  background: #fff;
  border: 1.5px solid #d0d4d8;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.field input::placeholder { color: #333; letter-spacing: 1px; opacity: 1; }
.field input:focus,
.field select:focus { border-color: #194b7a; }
.field input.error,
.field select.error { border-color: #d33; background: #fff5f5; }

/* select 외관 */
.field-select { position: relative; }
.field-select::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b7178;
  border-bottom: 2px solid #6b7178;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.field select:invalid,
.field select option[value=""] { color: #333; }
.field select option { color: #333; }

.agree { margin-top: 18px; }
.agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 14px; color: #444; }
.agree input[type="checkbox"] { width: 16px; height: 16px; accent-color: #194b7a; cursor: pointer; }

.submit-btn {
  margin-top: 8px;
  width: 100%;
  height: 56px;
  background: #194b7a;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background .15s;
}
.submit-btn:hover { background: #133b62; }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* === Floating widgets === */
.widgets {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.widget {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid rgba(0,0,0,.05);
}
.widget:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.widget img { width: 32px; height: 32px; object-fit: contain; }
.widget span { font-size: 11px; font-weight: 700; color: #333; letter-spacing: -0.3px; }

/* === Responsive === */
@media (max-width: 768px) {
  .apply { padding: 36px 0 36px; }
  .apply-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px;
  }
  .apply-title { font-size: 32px; margin-bottom: 0; }
  .apply-left {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
  .apply-call .call-num { font-size: 22px; }
  .apply-call .call-label { font-size: 13px; }
  .field input[type="text"],
  .field input[type="tel"],
  .field select { height: 48px; font-size: 15px; }
  .field-select::after { right: 18px; }
  .submit-btn { height: 50px; font-size: 16px; }

  .widgets {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom)) 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
  }
  .widget {
    width: auto;
    height: auto;
    flex: 1;
    max-width: 90px;
    padding: 4px 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    border: 0;
    gap: 3px;
  }
  .widget:hover { transform: none; box-shadow: none; }
  .widget img { width: 28px; height: 28px; }
  .widget span { font-size: 11px; }

  /* 위젯 바에 본문이 가리지 않도록 하단 여백 */
  .footer { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .apply-title { font-size: 26px; }
  .apply-left { flex-direction: column; align-items: flex-start; }
}
