/* Custom overrides for barrel label images */
.hero__barrel-label-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 4px auto;
}

/* Lab Order Modal */
#lab-order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-order-modal-dialog {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.lab-order-form-group {
  margin-bottom: 15px;
}

.lab-order-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.lab-order-error {
  color: #d32f2f;
  background: #ffebee;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.lab-order-submit {
  width: 100%;
  padding: 12px 20px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.lab-order-submit:hover {
  background: #45a049;
}

.lab-order-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Order form error */
.form__error {
  color: #d32f2f;
  background: #ffebee;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Privacy Policy Modal */
#privacy-policy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog--large {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  position: relative;
}

.modal-dialog--large .form__button_container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* Checkbox */
.form__checkbox {
  display: flex;
  align-items: center;
  gap: var(--gap-small);
  cursor: pointer;
  text-align: left;
  font-size: var(--fs-base);
  color: var(--color-white);
  margin: 15px 0;
}

.form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.form__checkbox-mark {
  width: 28px;
  height: 28px;
  background: var(--color-input-bg);
  flex-shrink: 0;
  transition: background 0.2s;
  position: relative;
}

.form__checkbox input[type="checkbox"]:checked ~ .form__checkbox-mark {
  background: var(--color-cyan-accent);
}

.form__checkbox input[type="checkbox"]:checked ~ .form__checkbox-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--color-text);
  border-radius: 2px;
}

.form__checkbox-text {
  font-size: var(--fs-base);
  color: var(--color-white);
}

.form__checkbox-text a {
  color: var(--color-cyan-accent);
  text-decoration: underline;
}

.form__checkbox-text a:hover {
  text-decoration: none;
}

/* Modal close button */
.modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-close img {
  width: 16px;
  height: 16px;
  filter: brightness(0);
  opacity: 0.6;
}

.modal-close:hover img {
  opacity: 1;
}

.modal-close img {
  width: 16px;
  height: 16px;
  filter: brightness(0);
}
