:root {
  --brand-blue: #0b1d4f;
  --bg-light: #f5f6fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: #111;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-link {
  line-height: 0;
}

.logo-img {
  height: 160px;
  display: block;
}

.home-link {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.quote-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px 20px 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e4ec;
}

/* =========================
   Product Spec (Static Text)
========================= */

.spec-box {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fafbff;
  border: 1px solid #dde0eb;
  font-size: 13px;
  line-height: 1.65;
}

.spec-static-text {
  color: #6b7280;
}

h1 {
  font-family: "Passion One", system-ui, sans-serif;
  font-size: 44px;
  margin: 0 0 6px;
  text-align: center;
}

.subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  text-align: center;
}

.buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-start;
}

.btn-primary,
.btn-order-wa {
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  font-family: "Passion One", system-ui, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #08163c;
  color: #fff;
}

.btn-order-wa {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue);
  flex: 1 1 280px;
}

.btn-order-wa:hover {
  background: #08163c;
  color: #fff;
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

footer {
  border-top: 1px solid #ddd;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #777;
  background: #fff;
  margin-top: 24px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field label {
  font-weight: 700;
  color: #222;
}

.field small {
  color: #777;
  font-size: 12px;
}

select,
input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  background: #fff;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px rgba(11, 29, 79, 0.15);
}

.spec-box {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fafbff;
  border: 1px solid #dde0eb;
  font-size: 13px;
  line-height: 1.65;
}

.spec-static-text {
  color: #6b7280;
}

.result-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #dde0eb;
  background: #fafbff;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.result-title {
  font-weight: 800;
  margin-bottom: 6px;
  color: #222;
}

.price-highlight {
  font-size: 22px;
  font-weight: 800;
  color: #0b1d4f;
  margin: 10px 0 4px;
}

.field-error {
  color: #d00;
  font-size: 12px;
  display: none;
  margin-top: 4px;
}

.official-order-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  line-height: 1.35;
}

.official-order-btn-main {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.official-order-btn-sub {
  color: #f6b918;
  font-size: 13px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.custom-order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.custom-order-modal.show {
  display: flex;
}

.custom-order-modal-box {
  background: #fff;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.custom-order-modal-title {
  margin: 0 0 12px;
  font-family: "Passion One", system-ui, sans-serif;
  font-size: 32px;
  color: #0b1d4f;
  letter-spacing: 0.02em;
}

.custom-order-modal-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.custom-order-modal-image {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 3px solid #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.custom-order-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-order-modal-close {
  background: #fff;
  color: #0b1d4f;
  border: 2px solid #0b1d4f;
}

.custom-order-modal-close:hover {
  background: #f8fafc;
}

body.modal-open {
  overflow: hidden;
}

.inline-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

input[type="number"],
input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  background: #fff;
}

/* =========================
   Instant Quote System Home
========================= */

#lps-iqs {
  --brand-blue: #0b1d4f;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#lps-iqs .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 34px;
}

#lps-iqs .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

#lps-iqs .topbar {
  padding: 24px 22px 18px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

#lps-iqs h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0.2px;
  color: var(--text);
  line-height: 1.15;
  font-weight: 900;
  font-family: "Passion One", system-ui, sans-serif;
}

#lps-iqs .sub {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  min-height: 10px;
}

#lps-iqs .content {
  background: var(--bg);
  padding: 26px 26px 30px;
}

#lps-iqs .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#lps-iqs .cardlink {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  padding: 22px 22px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

#lps-iqs .cardlink:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
  border-color: #d7deee;
}

#lps-iqs .title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

#lps-iqs .desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.6;
  max-width: 320px;
}

#lps-iqs .cardlink::after {
  content: "↗";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--brand-blue);
  background: rgba(11, 29, 79, 0.06);
  border: 1px solid rgba(11, 29, 79, 0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#lps-iqs .cardlink:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  #lps-iqs h1 {
    font-size: 30px;
  }

  #lps-iqs .grid {
    grid-template-columns: 1fr;
  }

  #lps-iqs .topbar {
    padding: 18px 16px 14px;
  }

  #lps-iqs .content {
    padding: 18px;
  }
}

/* =========================
   Paper Printing Category Page
========================= */

.center-block {
  text-align: center;
  margin-bottom: 22px;
}

.product-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.product-media {
  position: relative;
  background: #f3f4f6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.product-card:hover .overlay {
  opacity: 1;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
  filter: blur(0.2px);
}

.view-btn {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(11, 29, 79, 0.25);
  font-family: inherit;
}

.product-body {
  padding: 16px 14px 18px;
  text-align: center;
}

.product-name {
  font-family: "Passion One", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #111;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}