:root {
  --accent-primary: rgba(160, 210, 255, 0.85);
  --accent-secondary: rgba(160, 210, 255, 0.25);
  --bg-color: #e3e7ee;
  --text-color: #333;
}

/* Guestbook Page */
body.guestbook-page {
  overflow: auto;
  overflow-x: hidden;
  background: #000 url('../assets/images/guestbook-bg.png') center / cover fixed no-repeat;
  color: #fff;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  touch-action: manipulation;
}

.guestbook-page,
.guestbook-page * {
  box-sizing: border-box;
}

.guestbook-shell {
  width: 100%;
  max-width: none;
  margin: 2rem 0 3rem;
  padding: 0 1.25rem;
}

.guestbook-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.guestbook-back:hover {
  text-decoration: underline;
}

.guestbook-title {
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}

.guestbook-subtitle {
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.guestbook-form {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: transparent;
  resize: both;
  overflow: auto;
  min-width: 320px;
  min-height: 280px;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guestbook-form--compact {
  max-width: none;
}

.guestbook-field--comment {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guestbook-turnstile {
  margin: 0.35rem 0 0.15rem;
  max-width: 100%;
}

.guestbook-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.95rem;
}

.guestbook-textarea {
  resize: none;
  min-height: 140px;
  height: 100%;
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(160, 210, 255, 0.2);
}

.guestbook-submit {
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.guestbook-toggle {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.guestbook-toggle__icon {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 120ms ease;
}

.guestbook-toggle.is-open .guestbook-toggle__icon {
  transform: rotate(180deg);
}

.guestbook-form-wrap {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.guestbook-form-wrap[hidden] {
  display: none !important;
}

.guestbook-privacy-link {
  display: inline-block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
}

.guestbook-privacy-link:hover,
.guestbook-privacy-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.guestbook-comments {
  margin-top: 1rem;
  width: 100%;
}

.guestbook-comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 100%;
  width: 100%;
  overflow-wrap: break-word;
}


.guestbook-comment:last-of-type {
  border-bottom: none;
}

.guestbook-comment__header {
  margin: 0 0 0.35rem 0;
  font-weight: 700;
  color: #fff;
}

.guestbook-comment__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-left: 0.35rem;
  font-weight: 400;
}

.guestbook-comment__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #fff;
}
