* { margin: 0; padding: 0; box-sizing: border-box; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* BASE                                                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 70% 85% at 92% 2%, rgba(255, 185, 100, 0.42) 0%, rgba(255, 215, 150, 0.18) 35%, transparent 62%),
    linear-gradient(165deg, #F9F4EC 0%, #EDE5D6 100%);
  min-height: 100vh;
  color: #1B4D5C;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* BACKGROUND DECORATIONS                                                      */
/* ─────────────────────────────────────────────────────────────────────────── */

.bg-leaf {
  position: fixed;
  bottom: 44px;
  left: -60px;
  width: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.bg-ripple {
  position: fixed;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* PAGE LAYOUT                                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */

.page-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: calc(100vh - 52px);
  max-width: 1340px;
  margin: 0 auto;
}

/* ── LEFT COLUMN ── */
.left-col {
  padding: 52px 52px 52px 80px;
  display: flex;
  flex-direction: column;
}

/* Brand caps */
.brand-caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #C49B6E;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Main title */
.main-title {
  font-family: 'Playfair Display', serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.04;
  color: #1B4D5C;
  margin-bottom: 16px;
}

/* Gold diamond rule */
.gold-rule {
  font-size: 13px;
  color: #C49B6E;
  margin-bottom: 14px;
  letter-spacing: 4px;
}

/* Italic gold tagline */
.tagline-italic {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  color: #C49B6E;
  line-height: 1.45;
  margin-bottom: 13px;
}

/* Description */
.main-desc {
  font-size: 14px;
  color: #5A7880;
  line-height: 1.72;
  margin-bottom: 26px;
}

/* ── Feature list ── */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(27, 77, 92, 0.18);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-text {
  padding-top: 2px;
}

.feat-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #1B4D5C;
  display: block;
  margin-bottom: 2px;
}

.feat-text span {
  font-size: 12.5px;
  color: #5A7880;
  line-height: 1.5;
}

/* ── Quote ── */
.quote-block {
  padding-top: 22px;
  border-top: 1px solid rgba(196, 155, 110, 0.25);
  margin-top: auto;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 58px;
  color: #C49B6E;
  opacity: 0.45;
  line-height: 0.8;
  margin-bottom: 6px;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #5A7880;
  line-height: 1.65;
  margin-bottom: 6px;
}

.quote-author {
  font-size: 12px;
  color: #9BAFB5;
  font-style: normal;
}

/* ── RIGHT COLUMN ── */
.right-col {
  padding: 44px 72px 44px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* FORM CARD                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */

.form-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 38px 40px 36px;
  width: 100%;
  max-width: 468px;
  box-shadow:
    0 4px 8px rgba(27, 77, 92, 0.05),
    0 16px 48px rgba(27, 77, 92, 0.10),
    0 48px 80px rgba(27, 77, 92, 0.07);
}

/* Lotus icon */
.lotus-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  height: 80px;
}

.lotus-svg {
  position: relative;
  z-index: 1;
}

/* Card title */
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1B4D5C;
  text-align: center;
  margin-bottom: 8px;
}

/* Card diamond divider */
.card-divider {
  text-align: center;
  font-size: 10px;
  color: #C49B6E;
  margin-bottom: 22px;
  letter-spacing: 3px;
}

/* ── Form ── */
.report-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1B4D5C;
}

.scan-type-group {
  margin-bottom: 4px;
}

.scan-type-options {
  display: flex;
  gap: 16px;
  align-items: center;
}

.scan-type-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: #1A1A1A;
  font-weight: 500;
}

.scan-type-label input[type="radio"] {
  cursor: pointer;
  accent-color: #1B4D5C;
  width: 16px;
  height: 16px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #E8DFD4;
  border-radius: 10px;
  padding: 11px 14px;
  background: #FDFCFB;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
  border-color: #1B4D5C;
  box-shadow: 0 0 0 3px rgba(27, 77, 92, 0.08);
  background: #fff;
}

.field-icon {
  flex-shrink: 0;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #C2B8AC;
}

.input-wrap select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%231B4D5C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}

.input-wrap select option { color: #1A1A1A; }

.input-textarea {
  align-items: flex-start;
  padding-top: 11px;
  padding-bottom: 6px;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 86px;
  line-height: 1.55;
  font-size: 13px;
}

/* Generate button */
.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1E5568 0%, #2C7287 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.2px;
  margin-top: 4px;
  box-shadow: 0 4px 24px rgba(27, 77, 92, 0.32);
  transition: opacity 0.2s, transform 0.12s;
}

.btn-generate:hover  { opacity: 0.88; }
.btn-generate:active { transform: scale(0.98); }

/* Demo button */
.btn-demo {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: #5A7880;
  border: 1px solid rgba(90, 120, 128, 0.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.2px;
  margin-top: 10px;
  transition: all 0.2s;
}

.btn-demo:hover {
  border-color: rgba(90, 120, 128, 0.45);
  color: #1B4D5C;
  background: rgba(90, 120, 128, 0.04);
}

.btn-demo:active { transform: scale(0.98); }

/* Secure note */
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #B0A898;
  text-align: center;
  padding-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* LANGUAGE FOOTER BAR                                                         */
/* ─────────────────────────────────────────────────────────────────────────── */

.lang-footer {
  position: relative;
  z-index: 1;
  height: 52px;
  background: #1B4D5C;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-langs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-langs .sep {
  color: rgba(255, 255, 255, 0.28);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.65);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.lang-btn:hover,
.lang-btn.active {
  color: #fff;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* LOADING SCREEN                                                              */
/* ─────────────────────────────────────────────────────────────────────────── */

.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 48, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-screen.hidden { display: none; }

.loading-content {
  background: #FAFAF8;
  border-radius: 18px;
  padding: 52px 44px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.loading-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #1B4D5C;
  margin-bottom: 10px;
  font-weight: 600;
}

.loading-content p {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
  line-height: 1.6;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #EDE7D9;
  border-top: 3px solid #1B4D5C;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* PRINT / PDF                                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */

@page { margin: 12mm 10mm; }

@media print {
  body { background: white; }
  .no-print, button, .pdf-btn { display: none !important; }
  .wrap { max-width: 100%; margin: 0; padding: 20px; box-shadow: none; }
  .sec-title { page-break-after: avoid; }
  .section, .alert-card, .bio-box, .water-box, .prog-item, .prog-grid,
  .supp-item, .psycho-item, .organ-grid, .food-grid, .food-item,
  .gut-grid, .gut-item, .chakra-row, .chakra-detail, .ck-detail-item,
  .vit-row, .metal-item, .amino-item, .parasite-item, .doc-item,
  .action-item, .tips-category, .spine-box, .closing-box, .zodiac-grid, .footer {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }
  .section { margin-bottom: 20px; }
  .hdr { page-break-after: always; break-after: always; }
  img { max-width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; }
  .left-col { padding: 48px 28px 36px 28px; }
  .main-title { font-size: 44px; }
  .right-col { padding: 0 28px 48px; align-items: flex-start; }
  .form-card { max-width: 100%; }
  .bg-leaf { display: none; }
  .quote-block { margin-top: 28px; }
}

@media (max-width: 480px) {
  .main-title { font-size: 36px; }
  .form-card { padding: 32px 22px; }
  .tagline-italic { font-size: 18px; }
  .lang-footer { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 6px; text-align: center; }
}
