* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d32f2f; /* Red for Tet */
  --primary-dark: #b71c1c;
  --primary-light: #ef5350;
  --success-color: #10b981;
  --error-color: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.form-wrapper {
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  background: #d32f2f; /* Red background */
  color: white;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #b71c1c; /* Darker red border */
}

/* Decorative corners */
.form-header::before,
.form-header::after {
  content: "✿"; /* Solid flower symbol */
  color: #ffeb3b; /* Bright Yellow */
  position: absolute;
  font-size: 80px;
  opacity: 0.4;
  top: -20px;
  z-index: 0;
}

.form-header::before {
  left: -10px;
  transform: rotate(-15deg);
}

.form-header::after {
  right: -10px;
  transform: rotate(15deg);
}

.header-logo {
  width: 150px; /* Bigger logo */
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  line-height: 1.1;
}

/* Banner Mode Styles */
.form-header.banner-mode {
    padding: 0;
    background: none;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.headline-main {
  font-size: 36px;
  font-weight: 800;
  display: block;
  letter-spacing: 1px;
  color: #ffffff; /* White text */
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.headline-sub {
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-top: 5px;
  color: #fffde7; /* Off-white/Cream text */
}

form {
  padding: 40px 30px;
}

.question-block {
  margin-bottom: 30px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.question-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: all 0.3s ease;
  min-width: 60px;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 0.7;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 27, 176, 0.4);
}

.step.completed .step-number {
  background: var(--success-color);
  color: white;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--primary-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  max-width: 60px;
  min-width: 20px;
}

/* Step Content */
.step-content {
  display: none;
  animation: fadeInSlide 0.4s ease-out;
}

.step-content.active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.required {
  color: #ff4444;
  font-weight: bold;
  margin-left: 3px;
}

.hint {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 5px;
  font-style: italic;
}

/* Intro Block */
.intro-block {
  padding: 20px 0;
}

.intro-block h2 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.intro-block p {
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.intro-block strong {
  color: var(--primary-color);
  font-weight: 600;
}

.gift-highlight {
  background: linear-gradient(
    135deg,
    rgba(0, 27, 176, 0.05) 0%,
    rgba(0, 82, 226, 0.05) 100%
  );
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 12px;
  margin: 25px 0;
}

.gift-highlight p {
  margin-bottom: 12px;
  text-align: left;
  font-size: 15px;
}

.gift-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.gift-list li {
  padding: 10px 0;
  color: #2d3748;
  font-size: 15px;
  line-height: 1.6;
}

.privacy-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 20px;
}

.intro-thanks {
  margin-top: 25px;
  font-style: italic;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
}

/* Promo Footer */
.promo-footer {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0 20px 0;
  text-align: center;
}

.promo-footer p {
  margin: 0;
  line-height: 1.6;
}

.promo-footer p:first-child {
  color: #c92a2a;
  font-size: 16px;
  margin-bottom: 8px;
}

.promo-footer p:last-child {
  color: #495057;
  font-size: 14px;
}

/* Feature Text */
.feature-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center !important;
  margin: 30px 0;
  line-height: 1.6;
}

/* Text Inputs */
.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 27, 176, 0.1);
}

.text-input::placeholder {
  color: #9ca3af;
}

/* Contact Inputs */
.contact-inputs {
  display: grid;
  gap: 20px;
}

#step1 .question-label {
  text-align: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.phone-prefix {
  background: #f3f4f6;
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.phone-input {
  border-radius: 0 12px 12px 0 !important;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.checkbox-option:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
  transform: translateX(5px);
}

.checkbox-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.checkbox-label {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.checkbox-label .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.checkbox-label strong {
  font-size: 15px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.checkbox-label .separator {
  width: 1px;
  height: 40px;
  background-color: #ddd;
  margin: 0 10px;
}

.promo-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.promo-details {
  flex: 1;
  font-size: 12px;
  color: #666;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-item {
  display: block;
  color: #555;
}

.promo-item::first-letter {
  color: #ffeb3b; /* Yellow arrow for Tet */
  font-size: 14px;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-label strong {
  color: var(--primary-dark);
}

/* Navigation Buttons */
.button-row {
  display: flex;
  gap: 15px;
  margin-top: 35px;
}

.nav-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.prev-btn {
  background: #f3f4f6;
  color: var(--text-primary);
}

.prev-btn:hover {
  background: #e5e7eb;
  transform: translateX(-3px);
}

.next-btn,
.submit-btn {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.next-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.next-btn:active,
.submit-btn:active {
  transform: translateY(0);
}

.next-btn:disabled,
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error Message */
.error-message {
  background: #fee2e2;
  color: var(--error-color);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
  font-weight: 500;
  border-left: 4px solid var(--error-color);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 30px;
  animation: fadeIn 0.5s ease-out;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color); /* Red background */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.success-message h2 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.success-message p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .form-header {
    padding: 30px 20px;
  }

  .form-header h1 {
    font-size: 22px;
  }

  .header-logo {
    width: 140px;
  }

  form {
    padding: 30px 20px;
  }

  .step-indicator {
    padding: 0 10px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .step-label {
    font-size: 10px;
  }

  .step-line {
    max-width: 30px;
    margin: 0 5px;
    min-width: 15px;
  }

  .question-label {
    font-size: 15px;
  }

  .button-row {
    flex-direction: column;
  }

  .nav-btn {
    width: 100%;
  }

  .prev-btn:hover {
    transform: none;
  }

  .next-btn:hover,
  .submit-btn:hover {
    transform: none;
  }

  .gift-list li {
    font-size: 14px;
  }

  .phone-input-wrapper {
    flex-direction: row;
  }

  .phone-prefix {
    font-size: 14px;
    padding: 12px 14px;
  }
}
/* Intro Promo List */
.intro-promo-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.intro-promo-item {
  background: #f8faff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px;
}

.promo-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 15px;
}

.intro-promo-item ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.intro-promo-item ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #4b5563;
}

.intro-promo-item ul li::before {
  content: "-";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.tagline {
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}
