.hsas-embroidery-customization {
  display: flex;
  padding: 15px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--item-spacing-10_5, 10.5px);
  align-self: stretch;
  border-radius: 8.75px;
  border: var(--stroke-weight-1, 1px) solid
    var(--color-black-10, rgba(0, 0, 0, 0.1));
  background: var(--color-grey-98, #f9fafb);
  margin-bottom: 10px;
}
.hsas-embroidery-customization h4 {
    margin-top: 0;
    color: #333;
    font-size: medium;
    font-style: normal;
    font-weight: var(--font-weight-500, 500);
    line-height: var(--item-spacing-21, 21px); /* 161.345% */
    position: relative;
    padding-left: 30px; /* space for icon */
}

.hsas-embroidery-customization h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background: url("/wp-content/themes/hsas-child/images/embroider.svg") no-repeat center/contain;
    pointer-events: none;
}
.embroidery-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 10px;
  margin-top: 10px;
  border-radius: 3px;
}
.embroidery-notice p {
  margin: 0;
  color: #856404;
}
#embroidery_profession {
  border: unset;
  border-radius: 4px;
  padding: 0.5rem;
  width: 100%;
  font-size: 14px;
  background-color: white;
  margin-top: 5px;

  transition: all 0.3s ease;
}

#embroidery_profession:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.embroidery-acknowledge {
  margin-top: 10px;
}

/* Disabled add to cart button styles */
form.cart button[type="submit"].disabled,
form.cart input[type="submit"].disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #ccc !important;
  color: #666 !important;
}

/* Visual feedback for required fields */
.hsas-embroidery-customization .required-field {
  border-color: #dc3545;
}

.hsas-embroidery-customization .required-field:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Custom Checkbox Styles */
.hsas-embroidery-customization label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  position: relative;
  padding-left: 32px;
  margin-bottom: 8px;
  user-select: none;
}

.hsas-embroidery-customization input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.hsas-embroidery-customization label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hsas-embroidery-customization input[type="checkbox"]:checked + label::before,
.hsas-embroidery-customization label:has(input[type="checkbox"]:checked)::before {
  background-color: #3b82f6;
  border-color: #3b82f6;
  transform: translateY(-50%) scale(1.05);
}

.hsas-embroidery-customization label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg) scale(0);
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transition: all 0.3s ease;
}

.hsas-embroidery-customization input[type="checkbox"]:checked + label::after,
.hsas-embroidery-customization label:has(input[type="checkbox"]:checked)::after {
  transform: translateY(-50%) rotate(45deg) scale(1);
}

.hsas-embroidery-customization label:hover::before {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.hsas-embroidery-customization input[type="checkbox"]:focus + label::before,
.hsas-embroidery-customization label:has(input[type="checkbox"]:focus)::before {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Specific styling for embroidery acknowledge checkbox */
.embroidery-acknowledge label {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  margin-top: 5px;
}
