/* ===================================================================
   Phol Pattay Landing Page Styles
   Brand Palette:
   - Berry Mauve (Buttons): #B54E79 / #9c3b63
   - Accent Rose: #D67295
   - Soft Cream/Pink Background: #FDF5F7 / #FAF0F2
   - Dark Plum Text: #2D1420
   =================================================================== */

:root {
  --color-primary: #B54E79;
  --color-primary-hover: #9c3b63;
  --color-primary-light: #F8E7EE;
  --color-accent: #D67295;
  --color-dark: #2A131E;
  --color-text-muted: #6B5660;
  --color-bg-page: #FAF0F3;
  --color-bg-card: #FFFFFF;
  --color-border: #F0D5DE;
  --radius-card: 28px;
  --radius-pill: 9999px;
  --shadow-card: 0 20px 60px rgba(181, 78, 121, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 8px 24px rgba(181, 78, 121, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg-page);
  color: var(--color-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Ambient glow accents for desktop screens */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}
.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, #f9c9dc 0%, rgba(255,255,255,0) 70%);
}
.glow-bottom {
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, #e6b2c9 0%, rgba(255,255,255,0) 70%);
}

/* Page Container */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  padding: 16px 12px 60px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-container {
    padding: 32px 16px 80px;
  }
}

/* Landing Card Frame */
.landing-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(240, 213, 222, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image Hotspot Wrapper */
.image-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.lp-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===================================================================
   INTERACTIVE BUTTON OVERLAYS
   Derived from 1080 x 3234px original:
   Button 1: top: 28.45%, left: 22.69%, width: 54.54%, height: 2.75%
   Button 2: top: 94.03%, left: 21.57%, width: 56.67%, height: 2.88%
   =================================================================== */

.interactive-btn {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-pill);
  outline: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* Button 1 Position */
.btn-hero {
  top: 28.448%;
  left: 22.685%;
  width: 54.537%;
  height: 2.752%;
}

/* Button 2 Position */
.btn-footer {
  top: 94.032%;
  left: 21.574%;
  width: 56.667%;
  height: 2.876%;
}

/* Hover and Active Micro-interactions */
.interactive-btn:hover {
  transform: scale(1.035);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85),
              0 8px 24px rgba(181, 78, 121, 0.5);
}

.interactive-btn:active {
  transform: scale(0.975);
}

.interactive-btn:focus-visible {
  outline: 3px solid #b54e79;
  outline-offset: 3px;
}

/* Animated Shimmer Sweep across the button */
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  border-radius: var(--radius-pill);
  animation: shineSweep 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shineSweep {
  0% { left: -100%; }
  25% { left: 160%; }
  100% { left: 160%; }
}

/* Ripple wave effect */
.btn-ripple {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: pulseWave 2.8s infinite;
}

@keyframes pulseWave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.08, 1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.08, 1.3);
    opacity: 0;
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===================================================================
   STICKY BOTTOM ACTION BAR (Shown on scroll)
   =================================================================== */

.sticky-cta-bar {
  position: fixed;
  bottom: -90px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  padding: 12px 16px 20px;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.sticky-cta-bar.visible {
  bottom: 0;
  pointer-events: auto;
}

.sticky-cta-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(181, 78, 121, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}

.sticky-text {
  font-size: 0.9rem;
  color: var(--color-dark);
}

.sticky-text strong {
  color: var(--color-primary);
  font-weight: 800;
}

.sticky-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.sticky-btn:hover {
  background: var(--color-primary-hover);
  transform: scale(1.03);
}

/* Footer Section */
.lp-footer {
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: #FCF8F9;
  border-top: 1px solid #F4E4EB;
}

.admin-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.75rem;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.admin-link:hover {
  opacity: 1;
}

/* ===================================================================
   MODAL / POPUP COMPONENT
   =================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 19, 30, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 28px 30px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #F8EDF1;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: #F0D5DE;
  transform: rotate(90deg);
}

.modal-view {
  display: none;
}

.modal-view.active {
  display: block;
}

.pill-badge {
  display: inline-block;
  background: #FDEBF2;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.modal-subtitle .highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/* Modal Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  background: #FCF8F9;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-dark);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(181, 78, 121, 0.15);
}

.submit-btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 6px;
}

.submit-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(181, 78, 121, 0.55);
}

.submit-btn:active {
  transform: translateY(1px);
}

.form-microtext {
  font-size: 0.75rem;
  color: #8C7B83;
  text-align: center;
  margin-top: 4px;
}

/* Success View */
.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bouncePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bouncePop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.coupon-box {
  background: #FDF1F5;
  border: 2px dashed var(--color-primary);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 16px;
}

.coupon-code {
  font-family: monospace;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.12em;
}

.copy-coupon-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.copy-coupon-btn:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
}

.coupon-instructions {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  line-height: 1.4;
}

.action-btn-primary {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.action-btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Leads Management Drawer */
.leads-card {
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.leads-list-container {
  max-height: 320px;
  overflow-y: auto;
  margin: 16px 0;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #FAF5F7;
  padding: 12px;
}

.lead-item {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid #F0D5DE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.lead-item:last-child {
  margin-bottom: 0;
}

.lead-info strong {
  display: block;
  color: var(--color-dark);
}

.lead-info span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.lead-date {
  font-size: 0.72rem;
  color: #9C8A93;
}

.leads-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.leads-action-btn {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.leads-action-btn.primary {
  background: var(--color-primary);
  color: #fff;
}

.leads-action-btn.secondary {
  background: #F0D5DE;
  color: var(--color-dark);
}

/* Toast Message */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2A131E;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  pointer-events: none;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
