
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.col-sm-4,
.col-sm-3 {
  flex: 1;
  min-width: 0;
}

.col-sm-4 {
  flex-basis: calc(40% - 12px);
}

.col-sm-3 {
  flex-basis: calc(30% - 12px);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  color: #0f172a;
  background: white;
  transition: all 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

.select-style {
  position: relative;
}

.select-style .old {
  display: none;
}

.select-style .selected {
  display: block;
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  color: #0f172a;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-style .selected:hover {
  border-color: #2563eb;
}

.select-style .carat {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  pointer-events: none;
  transition: all 0.2s;
}

.select-style:hover .carat {
  border-top-color: #2563eb;
}

.scrolling-ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.scrolling-ul li {
  padding: 10px 16px;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.scrolling-ul li:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.scrolling-ul li.active {
  background: #2563eb;
  color: white;
  font-weight: 600;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding-top: 12px;
}

.checkbox.hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: white;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-inline:hover .checkbox-custom {
  border-color: #2563eb;
}

.checkbox:checked + .checkbox-custom {
  background: #2563eb;
  border-color: #2563eb;
}

.checkbox:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox:disabled + .checkbox-custom {
  background: #f1f5f9;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.checkbox:disabled ~ span {
  color: #94a3b8;
  cursor: not-allowed;
}

.btn {
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #0f172a;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

@media (max-width: 1279px) {
  .row {
    gap: 12px;
  }

  .col-sm-4 {
    flex-basis: 100%;
  }

  .col-sm-3 {
    flex-basis: calc(50% - 6px);
  }

  .form-control,
  .select-style .selected {
    padding: 10px 14px;
    font-size: 15px;
  }

  .select-style .selected {
    padding-right: 36px;
  }

  .btn {
    width: 100%;
    padding: 14px;
  }

  .checkbox-inline {
    padding-top: 10px;
  }
}

@media (max-width: 767px) {
  .row {
    gap: 12px;
    margin-bottom: 16px;
  }

  .col-sm-4,
  .col-sm-3 {
    flex-basis: 100%;
  }

  .form-control,
  .select-style .selected {
    padding: 12px 14px;
    font-size: 14px;
  }

  .select-style .selected {
    padding-right: 40px;
  }

  .select-style .carat {
    right: 14px;
  }

  .scrolling-ul {
    max-height: 250px;
  }

  .scrolling-ul li {
    padding: 12px 14px;
    font-size: 13px;
  }

  .checkbox-inline {
    font-size: 13px;
    padding-top: 0;
  }

  .checkbox-custom {
    width: 18px;
    height: 18px;
  }

  .checkbox:checked + .checkbox-custom::after {
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
  }

  .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }
}
