/* =========================
   기본 리셋 & 베이스 스타일
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f3f3;
  color: #333;
  line-height: 1.4;
}

/* =========================
   레이아웃
   ========================= */
.page-wrap {
  max-width: 980px;
  width: 100%;
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content {
  padding: 40px 50px 50px;
  background: #ffc81d;
  color: #fff;
}

/* =========================
   상단 헤더
   ========================= */
.header {
  position: relative;
  height: 200px;
  background: #3a3735 url("/img/bg-image.avif") center/cover no-repeat;
  color: #fdfdfd;
  font-weight: 800;
  display: flex;
  align-items: flex-end;
  padding: 40px 50px;
}

.header-title {
  font-size: 32px;
  color: #ffffff;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.header-character {
  position: absolute;
  right: 40px;
  bottom: 0;
  width: 220px;
  height: 230px;
  /* 이미지가 있다면 background 로 입히면 됨 */
  /* background: url('/img/character.png') bottom right/contain no-repeat; */
}

/* =========================
   공통 버튼 스타일
   ========================= */
.btn-primary {
  min-width: 90px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  background: #c0a06b;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  height: 44px;
}

.btn-primary:hover {
  background: #b08e57;
}

.btn-outline {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: #666;
}

.btn-outline-without-cursor {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #fff;
  font-size: 13px;
}

/* =========================
   번호 입력 영역
   ========================= */
.receipt-input-area {
  margin-bottom: 30px;
}

.receipt-input-label {
  font-size: 18px;
  letter-spacing: -1px;
  color: #0c0901;
  margin-bottom: 8px;
  font-weight: 700;
}

.receipt-input-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* 인풋/셀렉트 공통 스타일 */
.receipt-input-row select,
.receipt-input-row input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  outline: none;
}

.receipt-input-row input::placeholder {
  color: #999;
}

/* =========================
   공통 섹션
   ========================= */
.section {
  margin-top: 30px;
}

.section-title {
  font-size: 18px;
  color: #0c0901;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-body {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #AB8616;
    margin-bottom: 12px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* 유의사항 박스 */
.notice-box {
  background: #0c0901;
  border: #0c0901;
  padding: 18px 20px;
  letter-spacing: -1px;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
}

.notice-box ul {
  padding-left: 16px;
}

.notice-box li {
  margin-bottom: 6px;
  list-style: disc;
}

/* =========================
   단계 안내
   ========================= */
.steps {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap; /* 좁은 화면에서 줄바꿈 */
}

.step {
  flex: 1;
  min-width: 0;
  border: 1px solid #010f3d;
  padding: 20px 18px;
  background: #0c0901;
  letter-spacing: -1px;
  text-align: center;
  font-size: 16px;
  color: #fff;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #c0a06b;
  line-height: 28px;
  margin: 0 auto 8px;
  font-weight: 700;
}

.step-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc {
  line-height: 1.5;
  margin-bottom: 14px;
}

/* 구글 링크 버튼 영역 */
.google-link-area {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.google-link-area a {
  text-decoration: none;
}

/* =========================
   하단 안내
   ========================= */
.footer-note {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -1px;
  color: #f2f5e6;
  background: #0c0901;
  border: 1px solid #010f3d;
  padding: 14px 16px;
}

.footer-note ul {
  padding-left: 14px;
}

.footer-note li {
  margin-bottom: 4px;
  list-style: disc;
}

/* =========================
   레이어 팝업 (모달)
   ========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none; /* 기본은 숨김 */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.modal-body {
  font-size: 14px;
  color: #333;
}

.modal-body-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.modal-body-row span.label {
  font-weight: 600;
  color: #555;
}

.modal-body-row span.value {
  text-align: right;
  margin-left: 12px;
  color: #222;
  word-break: break-all;
}

.modal-footer {
  margin-top: 16px;
  text-align: right;
}

.modal-footer button {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* 모달 안의 primary 버튼은 파란색으로 */
.modal-footer .btn-primary {
  background: #4b7bec;
  color: #fff;
  min-width: 80px;
  height: auto;
}

.modal-footer .btn-primary:hover {
  background: #3867d6;
}

.modal-footer .btn-secondary {
  background: #e0e0e0;
  color: #333;
  margin-right: 8px;
}

/* 에러 메시지용 */
.modal-error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 4px;
}

/* =========================
   반응형 조정
   ========================= */
@media (max-width: 768px) {
  .page-wrap {
    margin: 20px auto;
  }

  .header {
    padding: 24px 20px;
    height: 160px;
  }

  .header-character {
    width: 160px;
    height: 170px;
    right: 10px;
  }

  .content {
    padding: 24px 20px 30px;
  }

  .steps {
    flex-direction: column;
  }

  .flex-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .google-link-area {
    justify-content: flex-start;
  }

  .receipt-input-row {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }
}