:root {
    --orange: #e0752d;
    --text-dark: #2C1A0E;
    --text-mid: #5C3D2A;
    --input-bg: rgba(255,255,255,0.82);
    --input-border: rgba(224,117,45,0.25);
    --input-focus: rgba(224,117,45,0.6);
  }
 
  * { margin: 0; padding: 0; box-sizing: border-box; }
 
  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ddd3;
    font-family: 'Be Vietnam Pro', sans-serif;
  }
 
  .demo-trigger {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
  }
 
  /* Overlay */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(44,26,14,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .overlay.active { opacity: 1; pointer-events: all; }
 
  /* Popup */
  .popup {
    position: relative;
    width: 360px;
    height: 560px;
    max-width: 95vw;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(44,26,14,0.32);
    transform: translateY(24px);
    transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease;
    opacity: 0;
  }
  .overlay.active .popup { transform: translateY(0); opacity: 1; }
 
  /* ==============================
     BACKGROUND SLOT
     Thay src="" bằng đường dẫn ảnh của bạn
     Ví dụ: src="background.png"
  ================================ */
  .popup-bg {
    position: absolute;
    border-radius: 8px;
    inset: 0;
    z-index: 0;
    background: #f5ede4;
  }
  .popup-bg img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    display: block;
  }
  /* Đã xoá ::after — ảnh hiện đầy đủ */
 
  /* Nội dung chung */
  .popup-inner {
    position: relative;
    z-index: 2;
    padding: 32px 28px 0;
  }

 
  /* Chuyển step — slide ngang */
  .steps-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
  }
  .step {
    width: 100%;
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  }
  .step.hidden-left  { transform: translateX(-100%); opacity: 0; position: absolute; top: 0; left: 0; pointer-events: none; }
  .step.hidden-right { transform: translateX(100%);  opacity: 0; position: absolute; top: 0; left: 0; pointer-events: none; }
  .step.active       { transform: translateX(0);     opacity: 1; position: relative; pointer-events: all; }
 
  /* ===== STEP 1 ===== */
  .headline {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--orange);
    margin-bottom: 24px;
  }
  .headline strong {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-style: italic;
  }
 
  .field { margin-bottom: 14px; }
  .field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
  }
  .field label span { color: var(--orange); }
 
  .field input {
    width: 100%;
    padding: 11px 15px;
    border-radius: 8px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .field input::placeholder { color: #b0956f; font-weight: 300; }
  .field input:focus {
    border-color: var(--input-focus);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 0 0 3px rgba(224,117,45,0.12);
  }
  .field input.error {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224,82,82,0.1);
  }
  .field .err-msg { font-size: 11.5px; color: #c94040; margin-top: 4px; display: none; }
  .field.has-error .err-msg { display: block; }
 
  /* Button row chung */
  .btn-row {
    display: flex;
    justify-content: flex-end;
    padding: 18px 0 22px;
    position: relative;
    z-index: 3;
  }
 
  .btn-submit {
    background: #e0752d;
    color: #fff;
    border: none;
    padding: 12px 34px;
    border-radius: 8px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.18s, transform 0.12s;
  }
  .btn-submit:hover  { background: #c8601e; transform: translateY(-1px); }
  .btn-submit:active { transform: translateY(0); }
 
  /* Khoảng dưới để ảnh bg lộ ra */
  .popup-bottom-space {
    position: relative;
    z-index: 1;
    height: 210px;
  }
 
  /* ===== STEP 2 — survey ===== */
  .survey-headline {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--orange);
    margin-bottom: 20px;
  }
 
  .choice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
  }
 
  .choice-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.78);
    justify-content: center; 
    text-align: start;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(224,117,45,0.18);
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    color: var(--text-dark);
    line-height: 1.45;
    transition: background 0.18s, border-color 0.18s, transform 0.12s;
    user-select: none;
  }
  .choice-item:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(224,117,45,0.5);
    transform: translateX(3px);
  }
  .choice-item.selected {
    background: rgba(224,117,45,0.12);
    border-color: #e0752d;
    color: var(--orange);
    font-weight: 500;
  }

  .text-center {
  text-align: center;
}

.success-title {
  color: #c85a17; /* Màu cam đậm/nâu của tiêu đề */
  margin-bottom: 20px;
  margin-top: 10px;
}

.success-title .line1 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.success-title .line2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 4px;
}

.success-desc {
  font-size: 14.5px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 0 10px;
}

.btn-row.justify-center {
  justify-content: center;
}

.btn-explore {
  background: #c85a17;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 8px; /* Bo góc mượt giống thiết kế */
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.1s;
}

.btn-explore:hover {
  background: #a84910;
  transform: translateY(-1px);
}
 
  /* Lỗi survey */
  .survey-err {
    font-size: 11.5px;
    color: #c94040;
    margin-top: 6px;
    display: none;
  }
  .survey-err.show { display: block; }
 
  /* Success */
  .success-msg {
    display: none;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 36px 24px 14px;
  }
  .success-msg .check-icon {
    width: 52px; height: 52px;
    background: #e0752d;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(224,117,45,0.3);
  }
  .success-msg .check-icon svg { width: 26px; height: 26px; }
  .success-msg h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--text-dark); margin-bottom: 8px; }
  .success-msg p { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; }