@charset "utf-8";

:root {
  --text: #1a1a1a;
  --sub: #6b6b6b;
  --accent: #1f2937;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: #f3f4f6;
}

.landing {
  max-width: 700px;
  margin: 0 auto;
}

.hero {
  width: 100%;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
}

.apply {
  padding: 28px 20px 40px;
}

.apply__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.apply__desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sub);
  text-align: center;
}

.apply__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.apply__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply__field label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.apply__field select,
.apply__field input {
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fafafa;
}

.apply__field select::placeholder,
.apply__field input::placeholder {
  color: #9ca3af;
}

.apply__field select:focus,
.apply__field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.apply__date-trigger {
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  color: #9ca3af;
  background: #fafafa;
  text-align: left;
  cursor: pointer;
}

.apply__date-trigger.is-filled {
  color: var(--text);
}

.apply__date-status {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}

.apply__date-status.is-filled {
  color: var(--accent);
}

.apply__date-trigger:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.cal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.cal[hidden] {
  display: none;
}

.cal--inline {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  background: none;
}

.cal--inline .cal__sheet {
  max-width: none;
  max-height: none;
  overflow-y: visible;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px 24px;
}

.cal__sheet {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px 24px;
}

@media (min-width: 520px) {
  .cal {
    align-items: center;
  }
  .cal__sheet {
    border-radius: 16px;
  }
}

.cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal__title {
  font-size: 16px;
  font-weight: 800;
}

.cal__nav {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 4px;
}

.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal__day {
  aspect-ratio: 1 / 1;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.cal__day--empty {
  cursor: default;
}

.cal__day--disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.cal__day--today {
  font-weight: 800;
  color: var(--accent);
}

.cal__day--selected {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.cal__times {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.cal__times-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.cal__times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cal__time {
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.cal__time--selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.cal__close {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.apply__agree {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin-top: 4px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.apply__agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.apply__agree a {
  margin-left: auto;
  color: var(--accent);
  text-decoration: underline;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.apply__submit {
  margin-top: 4px;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.25);
}

.apply__submit:active {
  opacity: 0.9;
}

/* 예약 날짜·시간 선택 UI */
.apply__date-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-color: #cbd5e1;
  border-radius: 12px;
  padding: 0 48px 0 50px;
  font-weight: 600;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}
.apply__date-trigger::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 21px;
  height: 21px;
  border: 2px solid #64748b;
  border-radius: 6px;
  background: linear-gradient(#64748b, #64748b) center 5px / 100% 2px no-repeat, linear-gradient(#64748b, #64748b) 5px -3px / 2px 7px no-repeat, linear-gradient(#64748b, #64748b) 13px -3px / 2px 7px no-repeat;
}
.apply__date-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg) translateY(-3px);
}
.apply__date-trigger.is-filled {
  border-color: var(--accent);
  color: var(--text);
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 41, 55, .1);
}
.apply__date-trigger.is-filled::before {
  border-color: var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) center 5px / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) 5px -3px / 2px 7px no-repeat, linear-gradient(var(--accent), var(--accent)) 13px -3px / 2px 7px no-repeat;
}
.apply__date-trigger:hover { border-color: #94a3b8; transform: translateY(-1px); }

.cal { padding: 16px; background: rgba(15, 23, 42, .58); backdrop-filter: blur(3px); }
.cal--inline { padding: 0; background: none; backdrop-filter: none; }
.cal__sheet { border-radius: 24px 24px 16px 16px; padding: 24px 20px 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .28); }
.cal--inline .cal__sheet { box-shadow: none; border-radius: 16px; }
.cal__header { margin-bottom: 18px; }
.cal__title { font-size: 18px; letter-spacing: -.03em; }
.cal__nav { border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.cal__nav:hover { border-color: #94a3b8; background: #f8fafc; transform: translateY(-1px); }
.cal__weekdays { font-weight: 700; color: #94a3b8; margin-bottom: 8px; }
.cal__weekdays span:first-child { color: #ef4444; }
.cal__weekdays span:last-child { color: #3b82f6; }
.cal__days { gap: 6px 4px; }
.cal__day { border: 1px solid transparent; background: #fff; border-radius: 12px; font-weight: 600; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.cal__day:not(:disabled):not(.cal__day--selected):hover { border-color: #cbd5e1; background: #f8fafc; transform: translateY(-1px); }
.cal__day--today { border-color: #94a3b8; }
.cal__day--selected { border-color: var(--accent); background: linear-gradient(135deg, #334155, #111827); box-shadow: 0 5px 10px rgba(31, 41, 55, .2); }
.cal__times { margin-top: 22px; border-top-color: #e2e8f0; padding-top: 18px; }
.cal__times-title { position: relative; margin-bottom: 12px; padding-left: 11px; font-size: 15px; font-weight: 800; }
.cal__times-title::before { content: ""; position: absolute; left: 0; top: 4px; width: 4px; height: 14px; border-radius: 4px; background: var(--accent); }
.cal__times-grid { gap: 9px; }
.cal__time { border: 1px solid #dbe2ea; border-radius: 10px; background: #f8fafc; font-weight: 600; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.cal__time:hover { border-color: #94a3b8; background: #fff; transform: translateY(-1px); }
.cal__time--selected { box-shadow: 0 4px 9px rgba(31, 41, 55, .18); }
.cal__close { height: 48px; margin-top: 22px; border-radius: 12px; background: #eef2f7; transition: background .2s ease, transform .2s ease; }
.cal__close:hover { background: #e2e8f0; transform: translateY(-1px); }
@media (min-width: 520px) { .cal__sheet { border-radius: 24px; } }

/* 상담 신청 폼 UI */
.apply { padding: 32px 20px 44px; }
.apply__title { margin-bottom: 10px; font-size: 25px; letter-spacing: -.045em; }
.apply__desc { margin-bottom: 26px; color: #64748b; }
.apply__form {
  gap: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 26px 20px 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .09);
}
.apply__field { gap: 8px; }
.apply__field label { padding-left: 2px; font-size: 18px; letter-spacing: -.02em; }
.apply__field select,
.apply__field input {
  height: 56px;
  border: 1.5px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  background: #f8fafc;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.apply__field select {
  appearance: none;
  padding-right: 46px;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 21px) 24px, calc(100% - 16px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.apply__field select:focus,
.apply__field input:focus {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 41, 55, .1);
}
.apply__field select::placeholder,
.apply__field input::placeholder { color: #94a3b8; font-weight: 400; }
.apply__date-trigger { height: 56px; border-radius: 14px; }
.apply__agree {
  gap: 9px;
  margin-top: 2px;
  padding: 14px 15px;
  border-color: #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.45;
}
.apply__agree input[type="checkbox"] { width: 19px; height: 19px; }
.apply__agree a { color: #334155; font-weight: 700; }
.apply__submit {
  height: 58px;
  margin-top: 2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #334155, #111827);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .24);
  transition: box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}
.apply__submit:hover { box-shadow: 0 13px 24px rgba(15, 23, 42, .3); transform: translateY(-1px); }
.apply__submit:active { transform: translateY(0); }
@media (max-width: 374px) {
  .apply { padding-right: 14px; padding-left: 14px; }
  .apply__form { padding-right: 16px; padding-left: 16px; }
  .apply__agree { font-size: 12px; }
}

/* 예약 신청 화면 시각 보강 */
.apply {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 12%, rgba(148, 163, 184, .16), transparent 28%),
    radial-gradient(circle at 95% 4%, rgba(96, 165, 250, .12), transparent 24%);
}
.apply__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.apply__eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
  box-shadow: 0 0 0 4px rgba(51, 65, 85, .1);
}
.apply__form-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 2px;
  padding: 11px 13px 11px 15px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: linear-gradient(115deg, #f8fafc 0%, #f1f5f9 100%);
}
.apply__form-intro div { display: flex; flex-direction: column; gap: 3px; }
.apply__form-intro strong { color: #1e293b; font-size: 14px; letter-spacing: -.02em; }
.apply__form-intro span { color: #94a3b8; font-size: 12px; }
.apply__form-intro b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  letter-spacing: .03em;
}
.apply__field:focus-within label { color: #334155; }
.apply__field:focus-within label::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0 2px 4px;
  border-radius: 50%;
  background: #64748b;
}
.apply__date-status {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-top: 0;
  padding-left: 2px;
}
.apply__date-status.is-filled::before {
  content: "✓";
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  place-items: center;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  font-size: 10px;
}
.cal--inline .cal__sheet { background: rgba(255, 255, 255, .78); }
@media (max-width: 374px) {
  .apply__form-intro { padding-right: 11px; padding-left: 12px; }
}
/* 모바일에서는 날짜와 시간을 한 화면에 보여 주되, 세로 길이는 줄입니다. */
@media (max-width: 520px) {
  .cal--inline .cal__sheet {
    padding: 16px 14px 18px;
    border-radius: 14px;
  }
  .cal__header { margin-bottom: 10px; }
  .cal__title { font-size: 16px; }
  .cal__nav {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .cal__weekdays {
    margin-bottom: 4px;
    font-size: 11px;
  }
  .cal__days { gap: 2px; }
  .cal__day {
    aspect-ratio: auto;
    height: 36px;
    border-radius: 9px;
    font-size: 13px;
  }
  .cal__times {
    margin-top: 14px;
    padding-top: 14px;
  }
  .cal__times-title {
    margin-bottom: 9px;
    font-size: 14px;
  }
  .cal__times-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .cal__time {
    height: 38px;
    border-radius: 8px;
    font-size: 12px;
  }
}
/* 지난 시간은 표시하되 선택할 수 없습니다. */
.cal__time--disabled,
.cal__time:disabled {
  border-color: #eef2f6;
  background: #f8fafc;
  color: #cbd5e1;
  cursor: not-allowed;
  text-decoration: line-through;
  box-shadow: none;
}
.cal__time--disabled:hover,
.cal__time:disabled:hover {
  border-color: #eef2f6;
  background: #f8fafc;
  transform: none;
}
/* 선택된 시간은 마우스를 올려도 선택 색상을 유지합니다. */
.cal__time--selected,
.cal__time--selected:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #334155, #111827);
  color: #fff;
  cursor: pointer;
}
/* 시간 영역은 항상 노출해 다음 선택 단계를 안내합니다. */
.cal__times-empty {
  display: grid;
  min-height: 54px;
  margin: 0;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}
.cal__times-empty[hidden] { display: none; }