/* ============================================================================
   PHARMAPULSE ERP - INTERACTIVE PHARMACIST CHARACTER & CARD SIGNUP SYSTEM
   Matches Design Reference (media_1791269608454.jpg)
   Deterministic Field-to-Card Animation Engine & Responsive Layout
   ============================================================================ */

:root {
  --pp-primary: #0284c7;
  --pp-primary-dark: #0369a1;
  --pp-success: #10b981;
  --pp-success-dark: #059669;
  --pp-bg-warm: #f8fafc;
  --pp-card-bg: #ffffff;
  --pp-text-main: #0f172a;
  --pp-text-muted: #64748b;
  --pp-border: #e2e8f0;
  --pp-border-active: #38bdf8;
  --pp-box-blue: #93c5fd;
  --pp-box-dark: #3b82f6;
  --pp-desk-wood: #e2d1bd;
  --pp-shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 20px rgba(15, 23, 42, 0.04);
  --pp-shadow-float: 0 14px 28px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.04);
  --pp-radius-card: 24px;
  --pp-radius-input: 14px;
}

/* Page Reset & Container */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f1f5f9;
  color: var(--pp-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pp-signup-page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 20% 25%, #f0fdf4 0%, #f8fafc 40%, #e0f2fe 100%);
  overflow-x: hidden;
}

/* Pharmacy Ambient Background Elements */
.pp-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}

.pp-ambient-bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.pp-bokeh-1 {
  width: 500px;
  height: 500px;
  background: rgba(167, 243, 208, 0.35);
  top: -100px;
  left: -50px;
}
.pp-bokeh-2 {
  width: 450px;
  height: 450px;
  background: rgba(186, 230, 253, 0.4);
  bottom: 50px;
  left: 20%;
}
.pp-bokeh-3 {
  width: 400px;
  height: 400px;
  background: rgba(254, 215, 170, 0.25);
  top: 10%;
  right: 5%;
}

/* Pharmacy Shelves Background Silhouette */
.pp-pharmacy-shelves {
  position: absolute;
  top: 60px;
  left: 0;
  width: 60%;
  height: 500px;
  opacity: 0.22;
  background-image: 
    linear-gradient(#cbd5e1 2px, transparent 2px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 100% 70px, 45px 100%;
}

/* Header Bar */
.pp-top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.pp-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pp-text-main);
}

.pp-cross-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pp-cross-vertical {
  position: absolute;
  width: 10px;
  height: 32px;
  background: linear-gradient(180deg, #0284c7 0%, #10b981 100%);
  border-radius: 5px;
}

.pp-cross-horizontal {
  position: absolute;
  width: 32px;
  height: 10px;
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: 5px;
}

.pp-brand-text h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}
.pp-brand-text h1 span {
  color: var(--pp-primary);
}
.pp-brand-text p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pp-text-muted);
  letter-spacing: 0.2px;
}

.pp-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pp-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pp-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.pp-nav-link:hover {
  color: var(--pp-primary);
}

.pp-nav-login-btn {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pp-primary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}
.pp-nav-login-btn:hover {
  background: var(--pp-primary);
  color: #ffffff;
}

/* Main Content Grid */
.pp-main-stage {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(520px, 1.15fr);
  gap: 32px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 40px 20px;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
}

/* Left Hero & Scene Area */
.pp-scene-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 580px;
}

/* Floating Information Cards Area */
.pp-cards-floating-col {
  position: absolute;
  right: -10px;
  top: 40px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 250px;
}

/* Individual Floating Info Card */
.pp-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  transform: translateX(30px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
}

.pp-info-card.extracted {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.pp-info-card.updating {
  animation: cardPulse 0.4s ease-out;
}

@keyframes cardPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { transform: scale(1.04); box-shadow: 0 0 20px rgba(16, 185, 129, 0.35); }
  100% { transform: scale(1); }
}

.pp-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pp-card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.pp-info-card[data-card="name"] .pp-card-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}
.pp-info-card[data-card="email"] .pp-card-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}
.pp-info-card[data-card="mobile"] .pp-card-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}
.pp-info-card[data-card="password"] .pp-card-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}

.pp-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pp-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pp-text-muted);
  text-transform: capitalize;
}

.pp-card-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.pp-card-check-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Dynamic Speech Bubble */
.pp-speech-bubble-wrap {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 20;
  max-width: 230px;
  animation: floatBubble 4s ease-in-out infinite;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pp-speech-bubble {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
.pp-speech-bubble strong {
  color: var(--pp-primary-dark);
}

.pp-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 36px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

/* SVG Scene Container */
.pp-character-stage-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-pharmacist-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(15, 23, 42, 0.08));
  overflow: visible;
}

/* Natural Pharmacist Animations - Enhanced Visible Motion */
#char-torso-breathe {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: naturalBreathe 3.8s ease-in-out infinite;
}

@keyframes naturalBreathe {
  0%, 100% { transform: translateY(0px) scale(1, 1); }
  50% { transform: translateY(-4.5px) scale(1.012, 1.015); }
}

#char-eyes-blink {
  transform-box: fill-box;
  transform-origin: center center;
  animation: naturalBlink 4.2s ease-in-out infinite;
}

@keyframes naturalBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 97% { transform: scaleY(0.08); }
}

#char-head-tilt {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: naturalHeadTilt 5.6s ease-in-out infinite;
}

@keyframes naturalHeadTilt {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(2deg) translateY(-1.5px); }
  75% { transform: rotate(-1.8deg) translateY(-1px); }
}

/* Character Reaching Box Animation */
.char-reaching #char-right-arm {
  transform-box: fill-box;
  transform-origin: 30% 20%;
  animation: reachIntoBox 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes reachIntoBox {
  0% { transform: rotate(0deg); }
  40% { transform: translate(10px, 15px) rotate(8deg); }
  80% { transform: translate(15px, 20px) rotate(12deg); }
  100% { transform: rotate(0deg); }
}

/* Character Waving Bye-Bye Animation */
.char-waving #char-right-arm {
  transform-box: fill-box;
  transform-origin: 30% 20%;
  animation: friendlyWave 1.4s ease-in-out infinite;
}

@keyframes friendlyWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-16deg); }
  75% { transform: rotate(14deg); }
}

/* Pill Mascot Idle Animation */
#pill-mascot-group {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: mascotWiggle 4.6s ease-in-out infinite;
}

@keyframes mascotWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-3.5px) rotate(3deg); }
  70% { transform: translateY(-1.5px) rotate(-3deg); }
}

/* Emerging Card Animation from the Box Slot */
#card-emerging-box {
  transform-origin: 200px 340px;
  opacity: 0;
  transform: translateY(30px) scale(0.85);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.box-ejecting #card-emerging-box {
  opacity: 1;
  animation: cardFlyOut 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardFlyOut {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.85);
  }
  40% {
    opacity: 1;
    transform: translateY(-40px) rotate(-4deg) scale(1.08);
  }
  80% {
    opacity: 0.95;
    transform: translateY(-55px) rotate(-2deg) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(0.9);
  }
}

/* Active Box Divider Tab Pulse */
.tab-active {
  animation: tabGlow 0.6s ease-out;
}

@keyframes tabGlow {
  0% { filter: drop-shadow(0 0 0 rgba(2, 132, 199, 0)); }
  50% { filter: drop-shadow(0 0 8px rgba(2, 132, 199, 0.6)); }
  100% { filter: drop-shadow(0 0 0 rgba(2, 132, 199, 0)); }
}

/* Right Signup Card */
.pp-signup-card {
  background: var(--pp-card-bg);
  border-radius: var(--pp-radius-card);
  padding: 22px 28px;
  box-shadow: var(--pp-shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.85);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.pp-signup-header {
  margin-bottom: 14px;
}
.pp-signup-header h2 {
  margin: 0 0 4px 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--pp-text-main);
}
.pp-signup-header h2 span.text-green {
  color: var(--pp-success);
}
.pp-signup-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pp-text-muted);
  line-height: 1.35;
}

/* Responsive 2-Column Field Rows */
.pp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

/* Form Groups & Inputs */
.pp-field-group {
  margin-bottom: 0;
  position: relative;
}

.pp-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--pp-border);
  border-radius: var(--pp-radius-input);
  padding: 2px 12px;
  min-height: 40px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.pp-input-box:focus-within {
  border-color: var(--pp-border-active);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.pp-input-box.valid {
  border-color: var(--pp-success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.pp-input-box.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.pp-field-icon {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-right: 8px;
  width: 16px;
  text-align: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.pp-input-box:focus-within .pp-field-icon {
  color: var(--pp-primary);
}

.pp-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pp-text-main);
  outline: none;
  font-family: inherit;
  width: 100%;
}
.pp-input-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.85rem;
}

/* Mobile +91 Prefix */
.pp-country-prefix {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 8px;
  margin-right: 8px;
  border-right: 1px solid var(--pp-border);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--pp-text-main);
  cursor: default;
  flex-shrink: 0;
}
.prefix-arrow {
  font-size: 0.6rem;
  color: #94a3b8;
}

/* Validation Check Status Indicator */
.pp-field-status {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--pp-success);
  margin-left: 6px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.pp-input-box.valid .pp-field-status {
  opacity: 1;
  transform: scale(1);
}

/* Eye Show/Hide Toggle */
.pp-eye-toggle-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}
.pp-eye-toggle-btn:hover {
  color: var(--pp-primary);
}

/* Password Strength Bar */
.pp-pwd-strength {
  margin-top: 3px;
  padding: 0 2px;
}
.pp-pwd-bar {
  height: 3px;
  width: 100%;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
}
.pp-pwd-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}
.pp-pwd-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pp-text-muted);
  margin-top: 2px;
}

/* Referral Tip */
.pp-referral-tip {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
  padding-left: 3px;
  line-height: 1.25;
}

/* Field Error Messages */
.pp-field-error {
  font-size: 0.72rem;
  color: #ef4444;
  margin-top: 3px;
  padding-left: 3px;
  display: none;
  font-weight: 600;
}
.pp-field-error.visible {
  display: block;
}

/* Store Name Secondary Group */
.store-optional-group {
  margin-bottom: 0;
}

/* Security CAPTCHA Section (Inline Compact) */
.pp-captcha-section {
  background: #f8fafc;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.pp-captcha-row {
  display: grid;
  grid-template-columns: 130px 42px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.pp-captcha-img-box {
  height: 38px;
  background: #0f172a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.72rem;
}
.pp-captcha-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pp-captcha-refresh-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  height: 38px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pp-captcha-refresh-btn:hover {
  background: #f1f5f9;
  color: var(--pp-primary);
}
.pp-captcha-input-wrap {
  min-height: 38px;
  height: 38px;
  padding: 0 10px;
}
.pp-captcha-input-wrap input {
  padding: 6px 0;
  font-size: 0.88rem;
}

/* DPDP Consent Row */
.pp-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.pp-consent-row input[type="checkbox"] {
  accent-color: var(--pp-primary);
  width: 15px;
  height: 15px;
  margin-top: 1px;
  cursor: pointer;
  flex-shrink: 0;
}
.pp-consent-row label {
  font-size: 0.72rem;
  color: var(--pp-text-muted);
  line-height: 1.35;
  cursor: pointer;
}
.pp-consent-row label a {
  color: var(--pp-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Primary Submit Button */
.pp-submit-btn {
  width: 100%;
  padding: 10px 20px;
  min-height: 42px;
  background: linear-gradient(90deg, #10b981 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--pp-radius-input);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px -4px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}
.pp-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -4px rgba(2, 132, 199, 0.45);
}
.pp-submit-btn:active {
  transform: translateY(0);
}
.pp-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Social Divider */
.pp-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0 8px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pp-social-divider::before,
.pp-social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--pp-border);
}
.pp-social-divider span {
  padding: 0 10px;
}

/* Social Login Buttons */
.pp-social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.pp-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pp-social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.social-icon {
  width: 16px;
  height: 16px;
}

/* Login Redirect Footer */
.pp-login-redirect {
  text-align: center;
  font-size: 0.8rem;
  color: var(--pp-text-muted);
  font-weight: 500;
}
.pp-login-redirect a {
  color: var(--pp-primary);
  font-weight: 700;
  text-decoration: none;
}
.pp-login-redirect a:hover {
  text-decoration: underline;
}

/* Bottom Trust Banner (4 Pillars) */
.pp-trust-banner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 30px;
  padding: 16px 48px;
  width: 100%;
  box-sizing: border-box;
}

.pp-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.pp-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
}
.pp-trust-icon.blue { background: #0284c7; }
.pp-trust-icon.purple { background: #6366f1; }
.pp-trust-icon.green { background: #10b981; }
.pp-trust-icon.red { background: #f43f5e; }

.pp-trust-info h4 {
  margin: 0 0 3px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pp-text-main);
}
.pp-trust-info p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--pp-text-muted);
}

/* Form Alert Box */
.pp-form-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}
.pp-form-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  display: block;
}
.pp-form-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  display: block;
}

/* ============================================================================
   RESPONSIVE DESIGN SYSTEM (1920x1080 -> 360x800)
   ============================================================================ */

/* Large Desktop (1920x1080) */
@media (min-width: 1441px) {
  .pp-main-stage {
    padding: 16px 80px 24px;
  }
}

/* Standard Desktop / Laptop (1366x768 & 1280x720) - Compact Zero-Scroll Fit */
@media (max-width: 1366px) {
  .pp-top-nav {
    padding: 12px 32px;
  }
  .pp-main-stage {
    grid-template-columns: minmax(380px, 1fr) minmax(460px, 1.25fr);
    gap: 20px;
    padding: 4px 32px 14px;
    align-items: center;
  }
  .pp-scene-area {
    min-height: 440px;
  }
  .pp-character-stage-svg-wrap {
    max-width: 440px;
  }
  .pp-cards-floating-col {
    width: 200px;
    gap: 8px;
    top: 10px;
    right: -5px;
  }
  .pp-info-card {
    padding: 7px 10px;
    border-radius: 12px;
  }
  .pp-card-icon-wrap {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .pp-card-title {
    font-size: 0.68rem;
  }
  .pp-card-val {
    font-size: 0.78rem;
    max-width: 110px;
  }
  .pp-card-check-badge {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  .pp-signup-card {
    padding: 16px 20px;
    border-radius: 16px;
  }
  .pp-signup-header {
    margin-bottom: 10px;
  }
  .pp-signup-header h2 {
    font-size: 1.45rem;
  }
  .pp-signup-header p {
    font-size: 0.78rem;
  }
  .pp-input-box {
    min-height: 38px;
    padding: 1px 10px;
  }
  .pp-input-box input {
    padding: 7px 0;
    font-size: 0.85rem;
  }
  .pp-captcha-section {
    padding: 6px 8px;
    margin-bottom: 6px;
  }
  .pp-captcha-img-box {
    height: 34px;
  }
  .pp-captcha-refresh-btn {
    height: 34px;
  }
  .pp-captcha-input-wrap {
    min-height: 34px;
    height: 34px;
  }
  .pp-submit-btn {
    padding: 9px 16px;
    min-height: 40px;
    font-size: 0.92rem;
  }
  .pp-social-divider {
    margin: 8px 0 6px;
  }
  .pp-social-btns {
    margin-bottom: 8px;
  }
  .pp-social-btn {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 0.8rem;
  }
  .pp-trust-banner {
    padding: 8px 32px 14px;
    gap: 12px;
    margin: 0 auto 10px;
  }
  .pp-trust-item {
    padding: 8px 12px;
    border-radius: 12px;
  }
  .pp-trust-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .pp-trust-info h4 {
    font-size: 0.78rem;
  }
  .pp-trust-info p {
    font-size: 0.68rem;
  }
}

/* Small Laptop / Tablet Landscape (1024x768) */
@media (max-width: 1024px) {
  .pp-top-nav {
    padding: 12px 24px;
  }
  .pp-main-stage {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 6px 20px 20px;
  }
  .pp-cards-floating-col {
    display: none !important;
  }
  .pp-scene-area {
    min-height: auto;
    margin-bottom: 0;
  }
  .pp-character-stage-svg-wrap {
    max-height: 180px;
    max-width: 380px;
    margin: 0 auto;
  }
  .pp-pharmacist-svg {
    max-height: 180px;
  }
  .pp-speech-bubble-wrap {
    position: static;
    max-width: 100%;
    margin: 0 auto 8px;
    text-align: center;
  }
  .pp-speech-bubble::after {
    display: none;
  }
  .pp-signup-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 18px 20px;
  }
  .pp-trust-banner {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 20px 20px;
    gap: 10px;
  }
}

/* Tablet Portrait & Large Phones (768x1024 & below) */
@media (max-width: 768px) {
  .pp-top-nav {
    padding: 10px 16px;
  }
  .pp-brand-text h1 {
    font-size: 1.25rem;
  }
  .pp-brand-text p {
    font-size: 0.7rem;
  }
  .pp-main-stage {
    padding: 4px 14px 16px;
    gap: 10px;
  }
  .pp-cards-floating-col {
    display: none !important;
  }
  .pp-scene-area {
    min-height: auto;
    margin-bottom: 0;
  }
  .pp-character-stage-svg-wrap {
    max-height: 135px;
    max-width: 290px;
    margin: 0 auto;
  }
  .pp-pharmacist-svg {
    max-height: 135px;
  }
  .pp-speech-bubble-wrap {
    position: static;
    margin: 0 auto 6px;
    max-width: 100%;
  }
  .pp-speech-bubble {
    font-size: 0.74rem;
    padding: 6px 12px;
    border-radius: 12px;
    text-align: center;
  }
  .pp-speech-bubble::after {
    display: none;
  }
  .pp-signup-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .pp-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }
  .pp-captcha-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .pp-captcha-input-wrap {
    grid-column: 1 / -1;
  }
  .pp-social-btns {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .pp-trust-banner {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px 20px;
  }
}

/* Mobile Screens (390x844 & 360x800) */
@media (max-width: 480px) {
  .pp-top-nav {
    padding: 8px 12px;
  }
  .pp-brand-logo {
    gap: 8px;
  }
  .pp-cross-icon {
    width: 28px;
    height: 28px;
  }
  .pp-cross-vertical {
    width: 8px;
    height: 26px;
  }
  .pp-cross-horizontal {
    width: 26px;
    height: 8px;
  }
  .pp-brand-text h1 {
    font-size: 1.15rem;
  }
  .pp-brand-text p {
    font-size: 0.65rem;
  }
  .pp-main-stage {
    padding: 2px 10px 14px;
    gap: 8px;
  }
  .pp-character-stage-svg-wrap {
    max-height: 110px;
    max-width: 230px;
  }
  .pp-pharmacist-svg {
    max-height: 110px;
  }
  .pp-signup-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .pp-signup-header h2 {
    font-size: 1.35rem;
  }
  .pp-signup-header p {
    font-size: 0.76rem;
  }
  .pp-social-btns {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pp-trust-banner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px 10px 14px;
  }
}

/* Reduced Motion Mode (Accessibility) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .pp-info-card {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
  .pp-info-card.extracted {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Step 2: OTP Verification Step */
.pp-otp-step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
  animation: ppFadeIn 0.3s ease-out;
}

@keyframes ppFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pp-otp-step-header {
  margin-bottom: 20px;
}

.pp-otp-badge-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.pp-otp-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.pp-otp-step-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 340px;
  margin: 0 auto;
}

.pp-otp-step-desc strong {
  color: #0284c7;
}

.pp-otp-input-wrap {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
}

.pp-otp-large-input {
  width: 100%;
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 10px;
  padding: 10px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.pp-otp-large-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.pp-otp-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  width: 100%;
}

.pp-otp-timer-wrap {
  font-size: 0.85rem;
  color: #64748b;
}

.pp-text-action-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.pp-text-action-btn:hover {
  color: #0369a1;
  text-decoration: underline;
}

.pp-back-action-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.pp-back-action-btn:hover {
  color: #475569;
}
