/* ========================================================
   8. 07 · SỔ LƯU BÚT & MODAL GỢI Ý LỜI CHÚC
   ======================================================== */
.guestbook-card { text-align: left; }

#guestbook .section-label { margin: 0 0 20px; }

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.form-label + .form-input,
.form-label + .form-textarea { margin-bottom: 6px; }

.form-input,
.form-textarea {
  width: 100%;
  color: var(--teal-ink);
  font-family: var(--font-body);
  font-variant-numeric: lining-nums tabular-nums;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.guestbook-form .form-input {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--teal-ink);
  background: transparent;
}

.guestbook-form .form-textarea {
  min-height: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 70, 83, 0.4);
  background: var(--cream-soft);
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(38, 70, 83, 0.55); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal-ink);
  box-shadow: 0 2px 0 var(--sage);
}

.guestbook-form .form-textarea:focus { box-shadow: 0 0 0 2px rgba(107, 144, 128, 0.45); }

.guestbook-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-wish-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal-ink) !important;
  color: var(--teal-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-wish-icon:hover {
  background: var(--teal-ink);
  color: var(--cream);
}

.btn-submit-wish {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  background: var(--teal-ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.btn-submit-wish:hover { background: var(--sage-deep); }

.btn-submit-wish.is-submitting {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.btn-wish-icon:focus-visible,
.btn-submit-wish:focus-visible {
  outline: 2px solid var(--teal-ink) !important;
  outline-offset: 3px;
}

/* Danh sách lời chúc */
.wishes-list {
  max-height: 520px;
  margin-top: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 2px solid var(--teal-ink);
}

.wishes-list::-webkit-scrollbar { width: 4px; height: 0; }
.wishes-list::-webkit-scrollbar:horizontal { display: none; height: 0; }
.wishes-list::-webkit-scrollbar-track { background: transparent; }
.wishes-list::-webkit-scrollbar-thumb { background: rgba(38, 70, 83, 0.35); }

.wish-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-peach);
}

.wish-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.wish-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-deep);
}

.wish-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: lining-nums tabular-nums;
}

.wish-message {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--teal-ink);
  overflow-wrap: anywhere;
}

/* Modal gợi ý lời chúc */
.wish-suggestions-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(38, 70, 83, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wish-suggestions-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.wish-modal-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 22px 20px;
  background: var(--cream);
  color: var(--teal-ink);
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.wish-suggestions-modal.open .wish-modal-card { transform: none; }

.wish-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.wish-modal-icon { display: none; }

.wish-modal-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.wish-modal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  color: var(--teal-ink);
  font-size: 1.1rem;
}

.wish-modal-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.wish-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  margin-bottom: 16px;
  padding-right: 4px;
  overflow-y: auto;
}

.wish-suggestion-item {
  padding: 12px 14px;
  border: 1px solid rgba(38, 70, 83, 0.25);
  background: var(--cream-soft);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wish-suggestion-item:hover {
  border-color: var(--teal-ink);
  background: var(--peach);
}

.wish-modal-footer {
  display: flex;
  gap: 10px;
}

.btn-modal-refresh,
.btn-modal-cancel {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--teal-ink) !important;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-modal-refresh { color: var(--teal-ink); }
.btn-modal-refresh:hover { background: var(--peach); }

.btn-modal-cancel {
  background: var(--teal-ink);
  color: var(--cream);
}

.btn-modal-cancel:hover { background: var(--sage-deep); }
