:root {
  --bg: #ffffff;
  --accent: #007bff;
  --text: #1a1a1a;
  --border: #dcdcdc;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 860px;
  text-align: center;
}

.title {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
}

/* Book Frame */
.book-frame {
  width: 760px;
  height: 380px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  border: 1px solid var(--border);
  background: #007bff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

/* Page Slots */
.page-slot {
  width: 360px;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  overflow: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.left-slot[aria-hidden="true"] {
  visibility: hidden;
}

/* Page Content */
.page {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  overflow: auto;
}

.page h2, .page h3 {
  color: var(--accent);
  margin-top: 0;
}

.page p, ul {
  color: var(--text);
  line-height: 1.5;
}

ul {
  padding-left: 18px;
  text-align: left;
}

.cover {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f4f6f8, #ffffff);
}

.cover-logo {
  width: 100px;
  height: auto;
  margin-bottom: 12px;
}

.cover-brand {
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
}

/* Contact form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0056cc;
}

/* Controls */
.controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.controls button {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.controls button:hover {
  background: var(--accent);
  color: #fff;
}

#progress {
  font-size: 14px;
  color: #555;
}

/* Split Layout */
.split-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.split-half {
  flex: 1;
  padding: 10px;
  border: 1px dashed var(--border);
  background: #fafafa;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 820px) {
  .book-frame {
    flex-direction: column;
    height: auto;
    width: 90%;
  }
  .page-slot {
    width: 100%;
    height: 320px;
  }
  /* --- WATERMARK STYLING --- */

.page:not(.cover) {
  position: relative;
  overflow: hidden;
}

.page:not(.cover)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: url("./images/2.jpg") center center no-repeat;
  background-size: contain;
  opacity: 0.15; /* Adjust to make more or less visible */
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: brightness(1.2) contrast(1.1);
  pointer-events: none;
}

.page > * {
  position: relative;
  z-index: 1;
}

}
/* ----- Package Table Styling ----- */
.pkg-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.pkg-table th, .pkg-table td {
  border: 1px solid var(--accent);
  padding: 8px 10px;
  text-align: left;
}

.pkg-table th {
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pkg-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.pkg-table tr:nth-child(odd) {
  background-color: #ffffff;
}
/* 🔐 SECURITY: Disable Selection, Drag, & Image Copy */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.service-item {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.service-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.service-item p {
  margin: 6px 0 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.service-item .price {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
}
/* =================== RESPONSIVE FIX =================== */

/* Tablet & Mobile */
@media (max-width: 820px) {
  html, body {
    display: block; /* let content flow naturally */
    height: auto;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 0;
  }

  .app {
    width: 95%;
    max-width: 100%;
  }

  .book-frame {
    flex-direction: column;
    height: auto;         /* auto to allow content expansion */
    width: 100%;
    max-height: none;
    gap: 12px;
    overflow: visible;
    padding: 0;
  }

  .page-slot {
    width: 100%;
    height: auto;        /* dynamic height */
    max-height: 80vh;    /* scrollable area */
    overflow-y: auto;    /* enable vertical scroll */
    padding: 12px;
  }

  .title {
    font-size: 18px;
  }

  .controls {
    flex-direction: column;
    gap: 8px;
  }

  .controls button {
    width: 80%;
    max-width: 200px;
    padding: 8px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .book-frame {
    width: 95%;
  }

  .page-slot {
    padding: 10px;
    max-height: 70vh; /* smaller max height on small screens */
  }

  button, .controls button {
    font-size: 13px;
    padding: 6px 10px;
  }
}
