.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.hidden-input {
  display: none !important;
}

.modal.open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__inner {
  position: relative;
  background: #fff;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  pointer-events: auto;
}

.modal__close svg {
  pointer-events: none;
}

.modal__title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 20px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__form input,
.modal__form textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background-color: var(--light-background);
}

.modal__form .btn-submit {
  padding: 14px;
  background-color: var(--color-primary, #960047);
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.modal__form .btn-submit:hover {
  background-color: #7b003a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal__form .btn-submit:disabled {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(40%) brightness(0.9);
  transform: scale(0.98);
  transition: all 0.3s ease;
}

.my-checkbox-container {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.my-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
}

.my-checkbox-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}

.my-checkbox-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
}

.my-checkbox-icon-fill {
  stroke: #ccc;
  transition: stroke 0.3s;
}

.my-checkbox-icon-mark {
  stroke: white;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.3s;
}

.my-checkbox-input:checked + .my-checkbox-icon .my-checkbox-icon-fill {
  stroke: var(--color-primary, #960047);
}

.my-checkbox-input:checked + .my-checkbox-icon .my-checkbox-icon-mark {
  stroke-dashoffset: 0;
}

.my-checkbox-label {
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal__close {
    display: none;
  }
}