/* apply.css — 직원 연차 신청 폼 스타일 */

.apply-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.apply-header {
  text-align: center;
  margin-bottom: 28px;
}
.apply-header h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
}
.apply-sub {
  margin: 0;
  color: var(--gray-400);
  font-size: 13px;
}

.apply-form {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
}

.row { margin-bottom: 18px; }
.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.apply-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.req { color: var(--danger); }
.required { color: var(--danger); font-weight: 700; }
.optional { color: var(--gray-400); font-weight: 400; }

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="date"],
.apply-form input[type="number"],
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--gray-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.apply-form textarea { resize: vertical; min-height: 60px; }

.hint {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--gray-400);
}
.hint.warn { color: var(--warning); }

.checkbox-row { background: var(--gray-50); padding: 12px; border-radius: var(--radius); }
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.error-box {
  background: #fde8e8;
  color: var(--danger);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin: 12px 0;
  font-size: 13px;
  border-left: 3px solid var(--danger);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.actions button { min-width: 110px; padding: 11px 20px; font-size: 14px; }

.success-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 28px;
  text-align: center;
}
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-box h2 { color: var(--success); margin: 0 0 16px; font-size: 20px; }
.success-box p { color: var(--gray-600); line-height: 1.7; margin: 8px 0; }
.success-sub { font-size: 13px; color: var(--gray-400); margin: 16px 0 24px; }
.success-box button { margin-top: 8px; padding: 10px 24px; }

.apply-footer { text-align: center; margin-top: 24px; font-size: 13px; }
.apply-footer a { color: var(--gray-400); }

@media (max-width: 480px) {
  .row-2col { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .actions button { width: 100%; }
}

/* ── 일자별 entries 입력 ── */
.entries-list {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.entry-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  gap: 8px;
  align-items: center;
  background: white;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.entry-row.weekend {
  background: #fff7e6;
  opacity: 0.85;
}
.entry-date {
  font-weight: 600;
  color: var(--gray-800);
}
.entry-row.weekend .entry-date {
  color: var(--warning);
}
.entry-type {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  font-size: 13px;
  background: white;
}
.entry-time {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}

.total-display {
  background: linear-gradient(135deg, var(--blue-light) 0%, white 100%);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.total-label {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 600;
}
.total-value {
  font-size: 26px;
  color: var(--navy);
  font-weight: 700;
}
.total-unit {
  font-size: 16px;
  color: var(--gray-600);
  margin-left: auto;
}

@media (max-width: 480px) {
  .entry-row { grid-template-columns: 80px 1fr; }
  .entry-row .entry-time { grid-column: 1 / -1; }
}

/* 이용 안내 접이식 박스 */
.notice-box {
  background: #f5f7fa;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}
.notice-box summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  background: #eef3f9;
  list-style: none;
  user-select: none;
}
.notice-box summary::-webkit-details-marker { display: none; }
.notice-box summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s;
  font-size: 11px;
}
.notice-box[open] summary::before {
  transform: rotate(90deg);
}
.notice-box[open] summary {
  border-bottom: 1px solid #e0e6ee;
}
.notice-content {
  padding: 16px 20px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}
.notice-lead {
  background: #fff7e6;
  border-left: 3px solid #c97a1a;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 16px;
  font-size: 13px;
}
.notice-content h4 {
  font-size: 13px;
  margin: 18px 0 8px;
  color: var(--navy);
}
.notice-content h4:first-of-type {
  margin-top: 6px;
}
.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 4px 0 8px;
}
.notice-table th, .notice-table td {
  border: 1px solid #e0e6ee;
  padding: 6px 10px;
  text-align: left;
}
.notice-table th {
  background: #f0f4f9;
  font-weight: 600;
  color: var(--gray-800);
}
.notice-tip {
  background: #e8f0fb;
  border-left: 3px solid #1a73e8;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #1a4275;
  margin: 8px 0 0;
}
.notice-faq {
  margin: 0;
}
.notice-faq dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
  font-size: 12.5px;
}
.notice-faq dt:first-child { margin-top: 0; }
.notice-faq dd {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: #555;
}
.notice-contact {
  margin: 4px 0 0 0;
  padding-left: 18px;
  font-size: 12.5px;
}
.notice-contact li {
  margin: 4px 0;
}
.notice-foot {
  background: #fef2f2;
  border-left: 3px solid #b93a3a;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  margin: 16px 0 0;
  color: #6a2222;
}

/* 시작 카드 — "연차 신청하기" 버튼 */
.start-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.btn-start {
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 220px;
}
.start-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--gray-400);
}

/* 항상 펼쳐진 안내 (details 대신 section) */
.notice-static {
  cursor: default;
}
.notice-static .notice-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #eef3f9;
  border-bottom: 1px solid #e0e6ee;
}
.notice-static .notice-content {
  display: block;
}
