.form-container {
  width: 900px !important;
  max-width: calc(100% - 30px) !important;
  display: none;
}

.form-wrapper {
  background: white;
  border-radius: 8px;

  animation: slideIn 0.5s ease-out;
  /* height: 500px; */
  /* overflow-y: scroll; */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product.highlight {
  border-color: var(--error-main, #eb3b3b) !important;
}
.item-table.highlight {
  border-left-color: var(--error-main, #eb3b3b) !important;
  border-right-color: var(--error-main, #eb3b3b) !important;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 0;
}

/* .progress {
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background-color: #667eea;
  transition: width 0.3s ease;
  z-index: 1;
} */

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: #667eea;
  border-color: #667eea;
  color: white;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.progress-step.done .step-number {
  background-color: #4caf50;
  border-color: #4caf50;
  color: white;
}

.progress-step.done .step-number::after {
  content: "✓";
  position: absolute;
}

.step-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease;
}

.progress-step.active .step-label {
  color: #667eea;
  font-weight: 600;
}

.progress-step.done .step-label {
  color: #4caf50;
}

/* Error Container */
.error-container {
  margin-bottom: 20px;
  min-height: 0;
}

.error-message {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 15px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.error-message strong {
  display: block;
  margin-bottom: 5px;
}

/* #multiStepFormContainer {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
} */

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.form-step.active {
  display: block;
}
.fancybox-inner .fancybox-slide--html .fancybox-close-small {
  color: currentColor;
  padding: 10px;
  right: 30px;
  top: 10px;
}
.fancybox-inner .fancybox-slide--html .fancybox-close-small svg {
  width: 30px;
  height: 30px;
}
.radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-label .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #6b7280;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.radio-label:hover .checkmark {
  border-color: #4b5563;
}

.radio-label input:checked + .checkmark {
  border-color: #06aed4;
}

.radio-label .checkmark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #06aed4;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

/* Hiện chấm khi checked */
.radio-label input:checked + .checkmark::after {
  transform: translate(-50%, -50%) scale(1);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#successMessage .step-header {
  margin-bottom: 37px;
}
#successMessage .button.product_type_simple.add_to_cart_button {
  margin-top: 16px;
}
#successMessage .post-wrapper .tb-wrap {
  overflow-x: hidden !important;
  width: auto !important;
}
#successMessage .woocommerce-loop-product__link {
  margin-bottom: 16px;
}
#successMessage del bdi {
  color: var(--text-primary, #111927);
  font-feature-settings:
    "liga" off,
    "clig" off;
  font-family: var(--Title-Typo, "Plus Jakarta Sans");
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 157%; /* 34.54px */
  text-decoration-line: line-through;
}

.form-step h2 {
  color: #111927;
  font-size: var(--Overall-H3, 36px);
  font-weight: 600;
  line-height: 120%;
  margin-bottom: 20px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  color: #111927;
  margin-bottom: 15px;
  padding: 0;
  display: block;
  width: 100%;
}
fieldset .checkbox-group {
  flex-wrap: wrap;
  gap: 0;
  row-gap: 8px;
}
.checkbox-label {
  width: 50%;
}
.checkbox-group input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
}
/* Radio Group */
.radio-group,
.checkbox-group {
  display: flex;
  /* flex-direction: column; */
  gap: 12px;
}
.radio-label {
  width: fit-content;
}
.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 9px;
  border-radius: 6px;
  transition: all 0.3s ease;
  user-select: none;
  margin: 0;
  gap: 9px;
}
#multiStepFormContainer::-webkit-scrollbar {
  display: none;
}
.radio-label:hover,
.checkbox-label:hover {
  /* border-color: #667eea;
  background-color: #f5f5f5; */
}
.radio-label input[type="radio"] {
  border-radius: 50%;
}
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;

  /* accent-color: #667eea; */
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}
.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkbox-label:hover .checkmark {
  border-color: #6c737f;
}
.checkbox-label .checkmark {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 2px solid var(--action-active, #6c737f);
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}
.checkbox-label input:checked ~ .checkmark {
  background-color: #06aed4;
  border-color: #06aed4;
}

/* Dấu tick */
.checkbox-label .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

/* Hiện tick khi checked */
.checkbox-label input:checked ~ .checkmark::after {
  display: block;
}

/* Style dấu tick */
.checkbox-label .checkmark::after {
  left: 3px;
  top: 1px;
  width: 6px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.radio-label span,
.checkbox-label span {
  font-size: 16px;
  color: #111927;
  /* flex: 1; */
}

.radio-label input[type="radio"]:checked + span,
.checkbox-label input[type="checkbox"]:checked + span {
  /* color: #667eea;
  font-weight: 600; */
}

.radio-label input:checked,
.checkbox-label input:checked {
  background-color: #f0f0f0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 37px;
  justify-content: space-between;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

/* .btn-primary,
.btn-success {
  background-color: #667eea;
  color: white;
} */
.btn.bt-blue {
  background-color: #fecc65;
  color: #1b1f3b;
}
.btn.bt-blue:hover {
  color: #1b1f3b;
}
.btn-primary:hover,
.btn-success:hover {
  background-color: #fecc65;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active,
.btn-success:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #d0d0d0;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 600px) {
  #multiStepFormContainer ins .woocommerce-Price-amount.amount {
    font-size: 42px !important;
  }
  .bt-bottom-ss {
    margin-top: 48px !important;
  }
  #multiStepFormContainer .btn {
    padding: 8px 18px;
  }
  .success-message .step-header h2 {
    font-size: var(--Overall-H3, 24px);
  }
  label.checkbox-label {
    width: 100%;
  }
  .radio-group,
  .checkbox-group {
    flex-wrap: wrap;
    gap: 0;
  }
  .form-wrapper {
    padding: 20px;
  }
  #multiStepForm legend {
    font-size: var(--Overall-Body-1, 18px);
  }
  .fancybox-slide #multiStepFormContainer {
    padding: 32px 10px;
  }
  .progress-bar {
    margin-bottom: 30px;
  }

  .step-label {
    font-size: 10px;
  }

  .form-step .step-header h2 {
    font-size: 24px;
    line-height: 140%;
  }

  .btn {
    width: 100%;
  }

  .radio-label,
  .checkbox-label {
    padding: 10px;
  }

  .radio-label input[type="radio"],
  .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
  }
}
