@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&family=Sora:wght@300;400;500;600;700&display=swap');

.uc-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 27, 46, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Sora', sans-serif;
}
.uc-popup-overlay.uc-visible { opacity: 1; }

.uc-popup-modal {
  background: #FEFAF5;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(28, 27, 46, 0.28);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.uc-popup-overlay.uc-visible .uc-popup-modal {
  transform: translateY(0) scale(1);
}

.uc-popup-header {
  background: #4B2D8F;
  padding: 28px 28px 22px;
  position: relative;
}
.uc-popup-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.uc-popup-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8641A;
}
.uc-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.uc-popup-close:hover { background: rgba(255,255,255,0.25); }

.uc-popup-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.uc-popup-subheadline {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.uc-popup-progress {
  height: 4px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.uc-popup-progress-bar {
  height: 100%;
  background: #E8641A;
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

.uc-popup-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.uc-popup-question {
  font-size: 15px;
  font-weight: 600;
  color: #1C1B2E;
  margin: 0 0 16px;
}
.uc-popup-instruction {
  font-size: 12px;
  color: #7B7A8E;
  margin: -8px 0 14px;
}

.uc-step-content {
  animation: uc-slide-in 0.35s ease forwards;
}
@keyframes uc-slide-in {
  from { transform: translateX(16px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.uc-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.uc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #E2DDF0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #1C1B2E;
  transition: all 0.2s;
  user-select: none;
  -webkit-user-select: none;
  min-height: 44px;
}
.uc-chip:hover { border-color: #6040A8; background: #EEE8F8; }
.uc-chip.uc-selected {
  border-color: #4B2D8F;
  background: #EEE8F8;
  color: #4B2D8F;
  font-weight: 600;
}
.uc-chip.uc-disabled {
  pointer-events: none;
  opacity: 0.6;
}
.uc-chip-emoji { font-size: 18px; flex-shrink: 0; }
.uc-chip-label { line-height: 1.3; }

.uc-auto-hint {
  text-align: center;
  font-size: 13px;
  color: #4B2D8F;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.uc-auto-hint.uc-show { opacity: 1; }

.uc-textarea {
  width: 100%;
  border: 1.5px solid #E2DDF0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: #1C1B2E;
  background: #fff;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.uc-textarea:focus { border-color: #6040A8; }
.uc-textarea::placeholder { color: #7B7A8E; }

.uc-reward-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.uc-reward-card {
  border: 1.5px solid #E2DDF0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}
.uc-reward-card.uc-selected { border-color: #4B2D8F; background: #EEE8F8; }
.uc-reward-main {
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
}
.uc-reward-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #E2DDF0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s;
}
.uc-reward-card.uc-selected .uc-reward-check {
  border-color: #4B2D8F;
  background: #4B2D8F;
  color: #fff;
}
.uc-reward-emoji { font-size: 20px; flex-shrink: 0; }
.uc-reward-name {
  font-size: 14px;
  font-weight: 600;
  color: #1C1B2E;
  flex: 1;
}
.uc-reward-expand {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #EEE8F8;
  color: #4B2D8F;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}
.uc-reward-expand:hover { background: #E2DDF0; }
.uc-reward-card.uc-expanded .uc-reward-expand { transform: rotate(180deg); }
.uc-reward-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.uc-reward-card.uc-expanded .uc-reward-detail {
  max-height: 120px;
  padding: 0 14px 14px;
}
.uc-reward-detail p {
  margin: 0;
  font-size: 12.5px;
  color: #7B7A8E;
  line-height: 1.6;
}

.uc-email-wrap {
  position: relative;
  margin-top: 12px;
}
.uc-email-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #7B7A8E;
}
.uc-email-input {
  width: 100%;
  border: 1.5px solid #E2DDF0;
  border-radius: 12px;
  padding: 12px 14px 12px 38px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: #1C1B2E;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.uc-email-input:focus { border-color: #6040A8; }
.uc-email-input::placeholder { color: #7B7A8E; }

.uc-optional-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #6040A8;
  background: #EEE8F8;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 10px;
  font-weight: 500;
}
.uc-fine-print {
  font-size: 11px;
  color: #7B7A8E;
  margin-top: 10px;
}

.uc-body-text {
  font-size: 13.5px;
  color: #7B7A8E;
  line-height: 1.65;
  margin: 0 0 16px;
}

.uc-popup-footer {
  padding: 16px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2DDF0;
  background: #FEFAF5;
}
.uc-popup-footer.uc-hidden { display: none; }

.uc-step-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.uc-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #E2DDF0;
  transition: all 0.3s;
}
.uc-dot.uc-active {
  width: 20px;
  background: #4B2D8F;
}
.uc-dot.uc-done { background: #E8641A; }

.uc-skip-btn {
  background: none;
  border: none;
  color: #7B7A8E;
  font-size: 13px;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
}
.uc-skip-btn:hover { color: #4B2D8F; }

.uc-next-btn {
  background: #E8641A;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  position: relative;
  min-height: 44px;
}
.uc-next-btn:active { transform: scale(0.97); }
.uc-next-btn.uc-locked {
  opacity: 0.45;
  cursor: default;
}
.uc-next-btn.uc-pulse {
  animation: uc-btn-pulse 0.5s ease;
}
@keyframes uc-btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 100, 26, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(232, 100, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 100, 26, 0); }
}

.uc-done-btn {
  background: #E8641A;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 16px auto 0;
  display: block;
  min-height: 44px;
  transition: transform 0.15s;
}
.uc-done-btn:active { transform: scale(0.97); }

.uc-thankyou {
  text-align: center;
  padding: 20px 0;
}
.uc-thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4B2D8F, #E8641A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  animation: uc-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes uc-pop-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.uc-thankyou h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: #1C1B2E;
  margin: 0 0 10px;
}
.uc-thankyou p {
  font-size: 13.5px;
  color: #7B7A8E;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 480px) {
  .uc-popup-modal {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .uc-popup-header { padding: 22px 20px 18px; }
  .uc-popup-headline { font-size: 19px; }
  .uc-popup-subheadline { font-size: 12px; }
  .uc-popup-body { padding: 20px; }
  .uc-popup-question { font-size: 14px; }
  .uc-chip { padding: 10px 12px; font-size: 12px; }
  .uc-popup-footer { padding: 14px 20px 16px; }
  .uc-reward-name { font-size: 13px; }
}

@media (max-width: 360px) {
  .uc-popup-footer {
    flex-direction: column;
    gap: 10px;
  }
  .uc-next-btn { width: 100%; }
}
