:root {
  --guestbook-accent: #ff4500;
  --guestbook-accent-dark: #c93400;
  --guestbook-ink: #20242c;
  --guestbook-muted: #68707d;
  --guestbook-border: #e3e7ed;
  --guestbook-surface: #ffffff;
  --guestbook-background: #f5f7fa;
  --guestbook-success: #16794b;
  --guestbook-danger: #b42318;
}

.guestbook-page {
  background: var(--guestbook-background);
  color: var(--guestbook-ink);
}

.guestbook-hero {
  overflow: hidden;
  position: relative;
  padding: 76px 0 72px;
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.17), transparent 24rem),
    linear-gradient(135deg, #bb2f00 0%, var(--guestbook-accent) 58%, #ff7a00 100%);
  color: #fff;
}

.guestbook-hero::after {
  position: absolute;
  right: -90px;
  bottom: -135px;
  width: 340px;
  height: 340px;
  border: 48px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.guestbook-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.guestbook-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(86, 18, 0, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guestbook-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  line-height: 1.05;
}

.guestbook-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.guestbook-content {
  padding: 70px 0 92px;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.45fr);
  gap: 34px;
  align-items: start;
}

.guestbook-panel {
  border: 1px solid var(--guestbook-border);
  border-radius: 18px;
  background: var(--guestbook-surface);
  box-shadow: 0 18px 45px rgba(32, 36, 44, 0.07);
}

.guestbook-form-panel {
  position: sticky;
  top: 145px;
  padding: 30px;
}

.guestbook-form-panel h2,
.guestbook-list-heading h2 {
  margin: 0;
  color: var(--guestbook-ink);
  font-size: 1.55rem;
  line-height: 1.25;
}

.guestbook-form-intro {
  margin: 10px 0 24px;
  color: var(--guestbook-muted);
  line-height: 1.65;
}

.guestbook-field {
  margin-bottom: 20px;
}

.guestbook-field label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--guestbook-ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.guestbook-field__hint {
  color: var(--guestbook-muted);
  font-size: 0.77rem;
  font-weight: 600;
}

.guestbook-field input,
.guestbook-field textarea {
  width: 100%;
  border: 1px solid #cfd5de;
  border-radius: 10px;
  background: #fff;
  color: var(--guestbook-ink);
  font: inherit;
  line-height: 1.55;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guestbook-field input {
  min-height: 50px;
  padding: 11px 13px;
}

.guestbook-field textarea {
  min-height: 175px;
  padding: 12px 13px;
  resize: vertical;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
  border-color: var(--guestbook-accent);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.13);
}

.guestbook-field input[aria-invalid="true"],
.guestbook-field textarea[aria-invalid="true"] {
  border-color: var(--guestbook-danger);
}

.guestbook-field-error {
  margin: 7px 0 0;
  color: var(--guestbook-danger);
  font-size: 0.85rem;
  font-weight: 700;
}

.guestbook-captcha {
  min-height: 65px;
  margin: 6px 0 18px;
}

.guestbook-captcha-status {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: var(--guestbook-muted);
  font-size: 0.82rem;
}

.guestbook-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--guestbook-accent), #ff6a00);
  box-shadow: 0 10px 24px rgba(255, 69, 0, 0.22);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.guestbook-submit:hover,
.guestbook-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 69, 0, 0.29);
}

.guestbook-submit:focus-visible {
  outline: 3px solid rgba(255, 69, 0, 0.3);
  outline-offset: 3px;
}

.guestbook-publish-note {
  display: flex;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--guestbook-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.guestbook-publish-note i {
  margin-top: 3px;
  color: var(--guestbook-accent);
}

.guestbook-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.guestbook-list-heading p {
  margin: 6px 0 0;
  color: var(--guestbook-muted);
}

.guestbook-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0eb;
  color: var(--guestbook-accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.guestbook-entry {
  padding: 26px 28px;
  margin-bottom: 16px;
}

.guestbook-entry__header {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 17px;
}

.guestbook-entry__avatar {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe4da, #fff2e7);
  color: var(--guestbook-accent-dark);
  font-size: 1rem;
  font-weight: 900;
}

.guestbook-entry h3 {
  margin: 0 0 2px;
  color: var(--guestbook-ink);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guestbook-entry time {
  color: var(--guestbook-muted);
  font-size: 0.8rem;
}

.guestbook-entry__message {
  margin: 0;
  color: #3d444f;
  font-size: 0.98rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.guestbook-empty {
  padding: 44px 30px;
  text-align: center;
}

.guestbook-empty i {
  display: block;
  margin-bottom: 13px;
  color: var(--guestbook-accent);
  font-size: 2rem;
}

.guestbook-empty h3 {
  margin-bottom: 8px;
  color: var(--guestbook-ink);
}

.guestbook-empty p {
  margin: 0;
  color: var(--guestbook-muted);
}

.guestbook-alert {
  padding: 14px 16px;
  margin: 0 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.guestbook-alert--success {
  border-color: #a9dfc6;
  background: #eaf8f1;
  color: var(--guestbook-success);
}

.guestbook-alert--error {
  border-color: #f3b4ae;
  background: #fff0ef;
  color: var(--guestbook-danger);
}

.guestbook-alert ul {
  margin: 8px 0 0 18px;
}

.guestbook-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.guestbook-pagination a,
.guestbook-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--guestbook-border);
  border-radius: 9px;
  background: #fff;
  color: var(--guestbook-ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.guestbook-pagination a:hover,
.guestbook-pagination a:focus-visible {
  border-color: var(--guestbook-accent);
  color: var(--guestbook-accent-dark);
  text-decoration: none;
}

.guestbook-pagination span {
  border-color: var(--guestbook-accent);
  background: var(--guestbook-accent);
  color: #fff;
}

.guestbook-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.wsmenu a[aria-current="page"] {
  color: var(--guestbook-accent) !important;
}

@media (max-width: 991px) {
  .guestbook-hero {
    padding: 58px 0 60px;
  }

  .guestbook-content {
    padding: 52px 0 72px;
  }

  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .guestbook-form-panel {
    position: static;
  }
}

@media (max-width: 575px) {
  .guestbook-hero {
    padding: 45px 0 48px;
  }

  .guestbook-form-panel,
  .guestbook-entry {
    padding: 22px 19px;
    border-radius: 14px;
  }

  .guestbook-list-heading {
    display: block;
  }

  .guestbook-count {
    display: inline-flex;
    margin-top: 12px;
  }

  .guestbook-pagination {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-field input,
  .guestbook-field textarea,
  .guestbook-submit {
    transition: none;
  }
}
