/* ── 방문예약 폼 ─────────────────────────────────────────── */

#reservation {
  padding: var(--section-gap) 0;
}

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
}

.form-group .required { color: #e74c3c; margin-left: 2px; }
.form-group .optional  { color: #888; font-size: 13px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  background: #faf9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.form-control:focus { border-color: #0052cc; }
.form-control:disabled {
  color: #777;
  background: #f1f1f1;
  cursor: not-allowed;
}
.form-control::placeholder { color: #aaa; }

select.form-control {
  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 d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── 체크박스 동의 ────────────────────────────────────────── */
.form-check-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #0052cc;
}
.form-check-label { font-size: 14px; margin: 0; cursor: pointer; }

/* ── 개인정보 공개 ───────────────────────────────────────── */
.form-privacy-disclosure {
  margin-bottom: 24px;
}
.form-privacy-disclosure summary {
  position: relative;
  padding-left: 15px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: #555;
}
.form-privacy-disclosure summary::-webkit-details-marker { display: none; }
.form-privacy-disclosure summary::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transform: translateY(-50%);
  transition: transform .2s;
}
.form-privacy-disclosure[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.form-privacy {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
  margin-top: 8px;
}
.form-privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}
.form-privacy-table th,
.form-privacy-table td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: center;
}
.form-privacy-table th { background: #f5f5f5; font-weight: 600; }

/* ── 오류 / 안내 메시지 ──────────────────────────────────── */
.form-error {
  max-width: 680px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c0392b;
  background: #fff3f3;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
  font-size: 14px;
}
.form-info {
  font-size: 13px;
  color: #0052cc;
  margin-top: 6px;
}
.form-info[hidden] { display: none; }

/* ── 제출 버튼 ───────────────────────────────────────────── */
.btn-submit {
  display: block;
  width: 60%;
  margin: 0 auto;
  padding: 15px;
  background: #0052cc;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background .2s;
}
.btn-submit:hover { background: #003d99; }

/* ── 완료 메시지 ─────────────────────────────────────────── */
.form-success {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 40px 20px;
  background: #f0f4ff;
  border-radius: 12px;
  border: 1px solid #c5d5f5;
}
.form-success__icon { font-size: 48px; margin-bottom: 16px; color: #048153; }
.form-success__title { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: #001241; }
.form-success__text { font-size: 15px; color: #444; line-height: 1.7; }

.form-success__coupon {
  max-width: 680px;
  margin: 20px auto 0;
  text-align: center;
  padding: 24px 20px;
  background: #fff8e1;
  border-radius: 12px;
  border: 1px solid #ffe082;
}
.form-success__coupon h3 {
  font-size: 16px;
  font-weight: 700;
  color: #7a4900;
  margin-bottom: 8px;
}

/* ── 예약 배너 / 타이틀 ──────────────────────────────────── */
.reservation-banner {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 8px;
  border-bottom: 4px solid #001241;
}
.reservation-page-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 0 4px; }
  .btn-submit { width: 80%; }
  .form-privacy {
    overflow-x: auto;
  }
  .form-privacy-table {
    min-width: 520px;
  }
}

/* ── 공용 예약 뷰(shared page.php) 클래스 호환 (2026-07-04) ── */
.rsv-page-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #001241;
  margin: 0 0 24px;
}

.rsv-complete {
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px 0 8px;
  text-align: center;
}

.rsv-complete__check {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
}

.check-circle { width: 80px; height: 80px; display: block; }

.check-circle__ring {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: ring-draw .55s cubic-bezier(.4, 0, .2, 1) .1s forwards;
}

@keyframes ring-draw { to { stroke-dashoffset: 0; } }

.check-circle__tick {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: tick-draw .35s cubic-bezier(.4, 0, .2, 1) .6s forwards;
}

@keyframes tick-draw { to { stroke-dashoffset: 0; } }

.rsv-complete__title {
  font-size: 22px;
  font-weight: 700;
  color: #001241;
  margin: 0 0 12px;
  animation: fade-up-in .45s ease .9s both;
}

.rsv-complete__lead {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin: 0 0 24px;
  animation: fade-up-in .45s ease 1s both;
}

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rsv-complete__coupon {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 18px 20px;
  background: #f4f7ff;
  border: 1px solid #d8e2f8;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #001241;
  text-align: center;
}

.rsv-complete__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 8px;
  animation: fade-up-in .45s ease 1.1s both;
}

.rsv-complete__btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.rsv-complete__btn--primary {
  background: #001241;
  color: #fff;
}

.rsv-complete__btn--primary:hover { background: #003d99; }
